In this assignment you will move from controlling servos to DC motors.
Why? DC motors do not drift or jitter like continuous servos. They are also less expensive than continuous servos. These small electric motors offer high torque at low speed.
Before you get started remember THREE things:
1. please don’t cut the zip tie on the motor. It holds the fragile wires in place. I was tempted to cut it.
2. DO NOT CONNECT ANY MOTOR to your Arduino without using a chip AND the motor controller from your kit. The risk is burning out the Arduino so don’t do this. They look like this:
3. line up the motor controller with positive and negative on your breadboard. If you don’t you will likely burn out your chip. Sadness.
You will build a real life circuit with components from your kit. No tinkercad for this project.
1. Download this handout: DC Motor Control
2. Follow the wiring instructions and diagram in the handout to wire your real circuit.
3. Download this Arduino program once you have built your circuit: DC_motor.ino
4. Run and enjoy.
5. NOW modify your circuit by adding FOUR LEDs.
6. Change your program so that:
one light at lowest motor speed
two lights at next speed
three lights at medium high speed
four lights at FULL SPEED!!
7. record video of your circuit working and turn it in on Canvas.