You can read about the motor drivers we are using here on pololu's website
Below is the circuit diagram which tells you how to set up the driver to two motors
In the steps below we will go over what each part of this diagram means, and then you will set up your hardware accordingly
The motor driver has a Voltage Control Circuit (Vcc) pin which controls the logic of the driver.
Additionally the driver has a Vin pin which powers the DC motors.
For now, supply the driver's Vin and Vcc pins with 5V from the Arduino.
Later you'll want to use a battery pack to supply a higher voltage to the driver's Vin pin, instead of using the Arduino's 5V output
PWM stands for Pulse Width Modulation. It is a technique used to turn digital signals (on/off) into analog signals (0-255).
pins capable of PWM output are marked with a tilde (~) on an Uno.
Nano PWM pins include: 3, 5, 6, 9, 10, and 11.
Below is an example of how it works
You can write a PWM value to a digitalpin with
after setting the pinMode to OUTPUT
Let's take a look at the PHASE/ENABLE chart below to see how this driver works:
Phase can either be set to 1 or 0, which corresponds to HIGH or LOW respectively.
PWM is a percentage.
According to this chart, what happens if we analogWrite a value of 200 and set the Phase pin to HIGH?
This page and the reference manual supply you with enough information to figure out what kinds of signals you need to supply to the driver and motors.
You will complete this challenge when you have written a program which uses the Serial Monitor to:
All of the information provided in this lesson can be found on the motor driver's the reference page.
Check out this chart to understand more about the design:
Do not worry about Vmm, we will not be using it