DC motors
Running 2 DC motors by varying their speed and their direction. Imagine the 2 DC motors as 2 wheels of a vehicle: first you have to go forward for 2 seconds (at 100% speed), then backward for 2 seconds (at 50% speed), then rotate left for 1 second (at 25% speed) and finally rotate right for 1 second (at 25% speed).
Knowledge acquired
- Using the Arduino Motor Shield
to control 2 DC motors.
Circuit setup
Arduino code
project4_dcmotor.ino | |
File Size: | 2 kb |
File Type: | ino |