Motor speed control with back EMF
mike bolton email (remove spam text)
Have just joined the list so this topic may have been covered before.
I am trying to design a motor controller for a model railroad loco
(DCC) with 16F872. This uses the PWM module for speed control
(15625Hz) and an A/D channel to sample the motor back emf for closed
loop stabilisation. Motor is driven by a H bridge. Sampling rate is
88Hz and the PWM is turned off during samples.
So far have implemented an integral only routine. Can anyone point me
to suitable code for PI or PID (other than AN532 which it too complex
for a 8 bit PIC)control algorithm. Has anyone else implemented a back
emf feedback loop for a small DC motor using a PIC?
I am pretty familiar with feedback principles, but not cramming it
into a PIC.
Dr Mike Bolton
Manchester M20 2LR UK
Phone (44) 161 291 3445
Fax (44) 161 291 3801
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads
See also: www.piclist.com/techref/microchip/ios.htm?key=motor
You must be a member of the
piclist mailing list
(not only a www.piclist.com member) to post to the