Jeremy Leach
Senior Member
I'm wondering how to accurately control the speed of a solar motor and thought I'd see if anyone had any tips
My requirements are: Speed variable from very slow to max speed (0 to 400 speed units). Motor reversible. No step changes in speed, but still needs to be pretty responsive and reach an accurate stable speed quickly (I know this is a bit vague!). The motor will have very little load and the load it does have will be pretty much constant.
So, my thinking is: PWM to L293 motor driver. Then optical slotted disc for feedback. Then use either Count command or Pulsin to measure the actual speed (although pulsin could be a bit ropey due to tolerance of slots in disc). Then ideally some form of simple PID control in code.
One thing I'm unsure about is whether I'd need two-sensor gray coded feedback from the slotted disc (to avoid glitches at the transitions) or whether I could just go for a single sensor tacho approach and have a low pass filter to remove glitches??
Also, overall I'm not sure if a current sense solution would be simpler?
So really, I'm just after people's advice/experiences for making a simpler but accurate speed controller/ESC
Oh, and I'm ALSO interested in anyone's plans to take advantage of the X2 higher clockrate with motor control - incremental encoders with counters etc !
My requirements are: Speed variable from very slow to max speed (0 to 400 speed units). Motor reversible. No step changes in speed, but still needs to be pretty responsive and reach an accurate stable speed quickly (I know this is a bit vague!). The motor will have very little load and the load it does have will be pretty much constant.
So, my thinking is: PWM to L293 motor driver. Then optical slotted disc for feedback. Then use either Count command or Pulsin to measure the actual speed (although pulsin could be a bit ropey due to tolerance of slots in disc). Then ideally some form of simple PID control in code.
One thing I'm unsure about is whether I'd need two-sensor gray coded feedback from the slotted disc (to avoid glitches at the transitions) or whether I could just go for a single sensor tacho approach and have a low pass filter to remove glitches??
Also, overall I'm not sure if a current sense solution would be simpler?
So really, I'm just after people's advice/experiences for making a simpler but accurate speed controller/ESC
Oh, and I'm ALSO interested in anyone's plans to take advantage of the X2 higher clockrate with motor control - incremental encoders with counters etc !