Using an Arduino's PWM to control a DC motor hooked up to a SainSmart L298N board? Answered
I am new to making electronics, completely. So please let me know if I am doing anything wrong.
I am working on making a UGV rover based on an Arduino UNO R3 and accompanied by a SainSmart L298N Module (to drive 2 DC motors).
I am capable of getting the DC motor to work in either direction but don't know how to control its speed.
pins 5 and 6 are either high or low (always opposite) to control direction, pin 11 enables the motor.
The board is powered by the Arduino's 5v power supply.
Here is my setup (it's just really basic so far):
If someone could show me how to control motor speed using this setup it would be very helpful.