Hacked Gadgets Forum

November 3, 2006

PIC Dial Speed Controller

at 5:21 am. Filed under Electronic Hacks

Reconn’s World has an interesting article with sample code of a stepper motor speed controller.

“While the stepper motor could be completely computer-controlled, I’d like to be able to change the speed of the motor by turning a dial. for this i’m using a linear potentiometer from radioshack (10kohm, RadioShack #271-1715.) I’ll read the voltage off of the middle pin — turning the potentiometer will cause this middle-pin voltage to swing from ground to +Vcc (5v in my case). I will read this voltage in via the PIC’s analog-to-digital converter and control the motor’s speed accordingly.”