How to achieve pwm with picoborg rev
Forums:
Hi everyone
Was just wondering how to achieve variable motor speed. Normally i would use pwm ( pulse width modulation ) via software, but i note that you can set the motors power level on the picoborgrev.
Does this achieve the same thing. I am using a raspberry pi to control a miniture fairground ride and want to ramp the motor speed up and down to simulate the ride starting and stopping. Is it just a case of stepping through the motor power over a given number of seconds.
Cheers for the help.
piborg
Fri, 07/04/2014 - 19:54
Permalink
PicoBorg Reverse power level
Yes, the power level on the PicoBorg Reverse actually controls a PWM on the board itself.
You are correct about the speed as well, stepping through the power levels should ramp the speed up / down in the way you are expecting.
popeyesfx
Sat, 07/05/2014 - 08:58
Permalink
Thanks for the reply, just
Thanks for the reply, just what i need