

#define MediumMoveAdjust 0 // Adjust to go straight: - Left + Right #define SlowMoveAdjust 0 // Adjust to go straight: - Left + Right?

Positive numbers turn more right, negative numbers turn more left.*/ #define StartMoveSpeed 200 // Lowest Motor Speed value for start of motion /* The section sets up the motor speeds for slow, medium, fast The adjust numbers help make the robot run straight. * Motor speed can be in the range of 200 - 400 only */ #include // For control of the two DC Motors /*-( Declare Constants and Pin Numbers )-*/ // NOTE: Pins 9 (Motor1) and 10 (Motor2) are predefined, unchangeable
ROBOTC COMMANDS HOW TO
* YourDuino Basic Robot Kit V2 User EDitable Software Sketch How To Page that goes with this Software Sketch: WHAT IT DOES: - Runs the robot motors - Program the robot to make different moves such as Forward, SpinRight, Back etc. Try changing the timing and order of the different commands in the Editable Area of the Software Sketch. What did the Robot do? How do the commands in the Editable Area control what the robot does? Now you can copy and paste the software Sketch below into the Arduino IDE and try it out as-is on your own Robot. (defined by the original programmer - don't change this!)
ROBOTC COMMANDS CODE


Forward: Runs both motors in the forward direction.Some of the different Commands and what they do are listed below: Robot Commands and Editing Now that you have built the Robot and have it running, you can learn to edit the Commands and create a newSoftware Sketch to make the Robot follow your own commands.
