Let's Make Robots!

control motor speed

Nicolai's picture

This must be a dumb question, but isn't it possible to control the speed of a motor? I am playing around with the picaxe 28, and as far as i can tell, there is only on/off. I had imagined i could control how much power went through to the motor, hence controlling its speed.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
amando96's picture

PWM(pulse width modulation), I'm pretty sure picaxe can do it, search the manuals, and/or google.

Nicolai's picture

There is indeed something called pwm in the manual, i will take a look.

Thanks.

joC's picture

You need to use the PWMOUT command, not PWM.

amando96's picture

PWMOUT might be the function used in picaxe for PWM...

OddBot's picture

PWM is commonly used in robots and other electronic devices because it is simple to acheive and with electric motors it can provide better torque at low RPM. The switching transistors providing power to the motor do not get too hot because for most of the time they are either off or on (saturated) thus having a very low resistance. Power is controlled by controlling what percentage of time the load is powered for.