PWM Motor control Question!
Jimbo30
Posts: 129
Previously I tested a PWM signal using a 1uF and a 10K ohm combo using a 5v motor and I was able to control the speed very well.· However, I am testing and attempting to now use the 12V motors for my project and the PWM signal is not working very well.· I was reading through the Basic Stamp reference manual and it is suggesting, "How long the capacitor will hold the voltage depends on how much current is drawn from it by external circuitry, and the internal leakage of the capacitor."· Currently I have my charge time at 50ms set up from the previous test with the 5V motor and I am wondering if the rule of thumb is to decrease or increase the charge time?· ANY insight or suggestions would be appreciated.· I am finding out motors are·a pain to work with.··
Comments
What type of drive circuit is used to provide the high current needed by the motor? The Stamp definitely can't do it without a transistor to do the current switching.
Perhaps a sketch would help us help you.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tom Sisk
http://www.siskconsult.com
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tom Sisk
http://www.siskconsult.com
·
That's not the proper way to drive that motor controller.... The PWM command from the Stamp is designed to create an analog reference through a resistor and capacitor as you have done, and not directly drive a motor. The motor controller from Solarbotics expects a digital signal and what you are giving it is an analog signal... probably causing it to operate in it's linear mode and it's most likely getting HOT. The motor controller from Solarbotics can take a PWM signal, but not the type of signal generated from the Stamp.
Reference:
http://www.solarbotics.com/products/k_cmd/resources/
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
Thanks for your feedback, but I got it·to work last night after I realized·my silly mistake·· I am sending the PWM signal to the enable pin of the solarbotics·board for speed·and, of course, digital signals to the logic pins for motor direction and motor braking.··It works great!