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

HACS - House Access Control System with fun doorbell

19. May 2009 21:15 | Peter F. Jørgensen

This is the video presentation I submitted for round 2 of the Microsoft "Dare To Dream Different" competition.

The main functions of the system are:

  • Guard dog barks when guests arrive at the door. Activated by movement detected by a PIR sensor.
  • Doorbell playing different individual tunes, stored as MP3 files on USB memory stick. Using VMUSIC2 MP3 player module.
  • Door access control with electronic door lock and door open/close sensor.
  • Door access can be controlled remote by sending SMS to the system from a mobile phone. Using a GSM modem.
  • Door alarms are sent as SMS to predefined mobile phone number.
  • Guest can write a SMS message which is sent to a predefined mobile phone number.

Unfortunately some parts of the video is a little dark, but I hope that you can see it anyway.

As the length of the video for the competition could not be more than 10 minutes, I ran out of time to show all features in the system. Maybe I will add more video clips of this later.

Peter