Controlling the DC motors
The motors cannot be driven by the Arduino PWM outputs directly but they must pass through a motor driver boosting the signal power In our case an
L298N 
bridge is used, which is well described on
this page
.
This table shows how the driver module is connected to the Arduino Uno:
EN A | IN 1 | IN 2 | IN 3 | IN 4 | EN B |
11 | 10 | 9 | 7 | 6 | 5 |
The following pins on the Arduino Uno are PWM pins:
The IN pins define the direction of the movement and the EN
3,5,6,9,11
--
Uli Raich - 2017-11-21
Comments
Topic revision: r3 - 2017-11-24
- uli