Let's Make Robots!

motor control

Well, pwm is easy stuff. for my micromouse , im not sure whether i need to have a sort of speed profile for the mouse. that aside, i need to ask how i am able to accel and decel a motor, which i am controlling the speed with pwm. I am using 18f252 by the way. Thanks in advance!

Comment viewing options

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

I might be missing something in your question, but you should simply change your PWM. I think you might be looking for a slope of speed during start-up and stop (soft-start), in this case, you just need a simple for-next loop to ramp up your speed to what you want.