r/ArduinoProjects • • Nov 18 '20

Self-Balancing ROBOT

198 Upvotes

19 comments sorted by

View all comments

0

u/[deleted] Nov 19 '20

[deleted]

1

u/Juliom912 Nov 19 '20

Sure, the for the driver you need 6 pins (besides the power supply input) and 2 of them with PWM so you can control the speed. In my case I connected it this way: ENA = 6 IN1 = 11 IN2 = 9 IN3 = 7 IN4 = 8 ENB = 5

Depeding on the direction you need the rotation of the wheels, you can switch pins IN1 with IN2 and IN3 with IN4 you can find many examples on internet