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