In this chapter, we will create two projects. The first project will use the L298 motor driver to control a single motor and the second project will use the L293D chip to control a single motor. Here is the circuit diagram for the L298 motor driver project:
Before we explain this diagram, let's look at the circuit diagram for the L293D chip circuit as well because there are a lot of similarities between these two diagrams:
The first thing to note with these two diagrams is the circuits contain a common ground. What this means is the ground connectors on the Arduino, battery and the motor controllers (both the L298 and L293D) are all connected together. In projects like these, which include multiple power sources, we must have a common ground between all devices and power sources.
In both circuits, the PWM out of 10 pins on the Arduino are connected to the...