How to control Servo Motors with .NET MicroFramework

31. December 2009 16:00 | Peter F. Jørgensen

This post illustrates how you can control Servo Motors from .NET MicroFramework using only simple output pins and C# code.

I have this idea of making a walking robot, so in order to test the basic servo control from .NET MicroFramework, I have used 2 servo motors and built a leg. Each Servo motor controls a joint in a leg .

You can start out with a look at the short video on YouTube that I made to show the leg moving.

 

In my first test I have used the GHI USBizi development board, but no special hardware has been used, only simple GPIO pins. I wanted to use the built-in PWM feature of the GHI board, but the program locked up when I initialized the PWM feature! I don't know if this is an error in the GHI firmware or what, but instead of investigating this further I made my own Servo control class in C#, which implements the PWM control.

For now I just want to show you the video of the result and then later I will add some more detailed description about how it is done.

Peter

 

Tags: , ,

Categories: Hardware ; Project ; Software

How to control a Stepper Motor with .NET MicroFramework

31. December 2009 15:45 | Peter F. Jørgensen

This post illustrates how you can control a unipolar stepper motor from .NET MicroFramework using very simple hardware.

The motor which I have scavenged from an old 5 1/4" floppy disk drive (do you remember those?) is controlled by a dedicated Stepper Motor control class written in C#.

You can start out with a look at the short video on YouTube that I made to show the motor running:

 

For now I just want to show you the video of the result and then later I will add some more detailed description about how it is done.

Peter

 

Tags: ,

Categories: Hardware ; Project ; Software

Happy 1 Year Birthday to microframework.dk

31. December 2009 14:14 | Peter F. Jørgensen

Today (31th December 2009) it is exactly 1 year ago I registered the domain name microframework.dk

The reason why I did that was to have a place to blog about the world of my .NET MicroFramework discoverings especially in relation to the Microsoft Dare to Dream Different contest, which I at that time hoped to be part of. Luckily my entry was accepted as one to move on to round 2, but that was as far as it went. I had a great time developing my project (HACS - House Access Control System with fun doorbell, which you can read about in another article).

Time has shown that I did not find all the time to blog as much as I wanted to do, so I have not released as many articles as I had hoped. But that does not mean that I have not been working with the .NET MicroFramework!

In order to let you see some of what I have been doing (and maybe what will come) I will today on the last day of the year, release 2 videos illustrating that the MF can really control motors. One video shows the control of a Stepper Motor and the other video shows the control of 2 Servo Motors. For now the articles are meant as a teaser, so stay tuned to see more.

Happy Birthday to microframework.dk and Happy New Year to everyone else

Peter

 

Tags:

Categories: Blog stuff ; Personal rambling