mmm, in all my motor speed control, i read the voltage on the motor with an A/D input of the PIC. Kinda feedback control.
Once you have the voltage reading from the motor, simply monitor it and do the according change in your PWM statement or routine.
10K in serie look a bit high... is 220 Ohms to 1K do the same with the same pull down on the gate?
May be a stupid question but, is your PIC output is an open drain?!? RA4 ???
Last edited by mister_e; - 20th February 2005 at 23:49.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks