In previous videos, we saw how to work with a single motor. Now, we will see how to interface multiple motors.
For two motors, we will require four terminals. We will use the L293D motor driver. Define terminals of a motor driver, as shown in the video. Also, define output pin modes. Write the rest of the program, as shown in the video and upload it.
Now, connect the motor, motor driver and Arduino as per instructions. Run the program and see effects. Now to move the motor in forward/reverse direction, you have to modify code as shown. This way, you can change direction.
Share a personalized message with your friends.