Thursday, January 20, 2011

Microcontroller Interfacing 1/20

Today I learned how to interface our microcontroller with transistors initially to light a Christmas light and ultimately a motor. We need to use transistors because our microcontroller is limited to only 50mA per channel.
In the first circuit you can see the light shining bright with the help from our transistor. Our transistor acts as a current multiplier. With the small current sent out from our microcontroller 8mA, we were able to get 200mA through our light because the transistor has a gain of 25.


Today I also was able to disassemble a mechanical stuffed animal and control its motors using the PIC. Here you see the skinned animal.
No animals were hurt during this experiment.
Here we see the inner workings of the animal. I will be removing the circuit board and replacing it with my own. After the project is complete, this duck will communicate with a computer through its serial port, and will allow the user to select a song to which the duck will sing and dance.
 Here is a video of the PIC controlling the motor.


No comments:

Post a Comment