Skip to content

Instantly share code, notes, and snippets.

@liz-miller
Last active May 7, 2018 00:04
Show Gist options
  • Save liz-miller/85468730e5d62190e6c567d5011bcb77 to your computer and use it in GitHub Desktop.
Save liz-miller/85468730e5d62190e6c567d5011bcb77 to your computer and use it in GitHub Desktop.
How to make an Arduino Robot | Beginner Bots Tutorial #3
/*
* Move Method (Step #1)
* Controls how our robot moves.
* Developed for the Beginner Bots lesson series on www.learnrobotics.org/blog
* Written by Liz Miller
* 5/6/2018
*/
/** Global Variables **/
//Left Motor
 int enableA = 10;
 int motorA1 = 9;
 int motorA2 = 8;
//Right Motor
 int enableB = 5;
 int motorB3 = 7;
 int motorB4 = 6;
//move two motors for a set duration and speed
void move(int motor1, int motor2, int enable, int speed, int duration){
// code goes here
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment