arduino / Arduino

Arduino IDE 1.x
https://www.arduino.cc/en/software
Other
14.12k stars 7k forks source link

How to change speed in motors? #5406

Closed davidhaw closed 7 years ago

davidhaw commented 7 years ago

How can you change the speed with motors hooked up. I got it to work on full speed, but how do I change that because my motors are really fast.

Alienwaren commented 7 years ago

Use PWM, so analogWrite(pin, value). Make sure that you are using a H-Bridge IC like L293D or so.

davidhaw commented 7 years ago

it has worked for me. Thanks!