Posts

Showing posts from April, 2006

PIC programming continues….

I mentioned some basic PIC programming in the last article, now it is time to do something interesting. Lets build a small robotic arm. We can make a PIC rotate a web cam in horizontal as well as vertical direction. A servo motor attatched to the bottom side of the web cam facilitates the horizontal rotation and the servo attatched to the side is responsible vertical rotation. You can get a nice picture  here , which is the inspiration of this project.  A servo motor has 3 inputs, a red wire a white one and a black wire. As usual the red and black are for Vcc and GND. We provide the control pulse to the white wire. The total on-off time of the control pulse should be 20 ms and the on-time controls the postiion of the servo. In the servo i am using an on time of .5 ms positions the servo to one end and and an on-time of  2.2 ms to the other end. Hence we coul...