Data Sheet
99 : circuit 5b
PROGRAM OVERVIEW
Prompt the user to enter a command and list the shortcuts for the directions.
Wait for a serial command.
Read the serial command and set that as the direction:
A: If the direction is “f”, drive both motors forward for the distance.
B: If the direction is “b”, drive both motors backward for the distance.
C: If the direction is “r”, drive the right motor backward and the left motor forward.
D: If the direction is “l”, drive the left motor backward and the right motor forward.
WHAT YOU
SHOULD SEE
Start by flipping the switch to
the ON position. Open the Serial
Monitor. It should prompt you to
enter a command. When you type
a direction into the Serial Monitor
the robot will move or turn.
Open the Arduino IDE
Connect the RedBoard to a USB port on your computer.
Open the Sketch:
File > Examples > SIK_Guide_Code-V_4 > SIK_CIRCUIT_B-REMOTE CONTROL ROBOT
Select UPLOAD to program the sketch on the RedBoard.
SIK v4 Book Oct 13.indb 99 10/18/17 10:02 AM