This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Servo.h> | |
/* | |
*Title: My Awesome Arduino Program | |
*Author: Liz Miller | |
*Date: 02/15/2018 | |
*Version: v1.0 | |
*Purpose: This code shows you how to write an Arduino Program! | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Servo.h> | |
/* | |
*Title: My Awesome Arduino Program | |
*Author: Liz Miller | |
*Date: 02/15/2018 | |
*Version: v1.0 | |
*Purpose: This code shows you how to write an Arduino Program! | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Servo.h> | |
/* | |
*Title: My Awesome Arduino Program | |
*Author: Liz Miller | |
*Date: 02/15/2018 | |
*Version: v1.0 | |
*Purpose: This code shows you how to write an Arduino Program! | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Method Tempate | |
* Use this sample template to create your own methods in Arduino. | |
* Developed for the Beginner Bots lesson series on www.learnrobotics.org/blog | |
* Written by Liz Miller | |
* 5/6/2018 | |
*/ | |
void move(int motor, int speed, int duration){ //Return Type = Void | Method Name = Move | Input Parameters = motor, speed, duration | |
// commands go here. everything contained in the curly braces will belong to the "move method" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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 **/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Move Method - READY TO TEST | |
* 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 **/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Return Method Tempate | |
* This example shows you how to use a return statement in your method. | |
* Developed for the Beginner Bots lesson series on www.learnrobotics.org/blog | |
* Written by Liz Miller | |
* 5/6/2018 | |
*/ | |
int add(int a, int b){ | |
// method body |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Move Method (Step #2) | |
* 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 **/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Using IR Sensors for Line Following & Avoidance | |
* Configures IR Sensors for data collection | |
* Developed for the Beginner Bots lesson series on www.learnrobotics.org/blog | |
* Written by Liz Miller | |
* 5/14/2018 | |
*/ | |
/** Global Variables **/ | |
int leftIR = 2; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Learn Robotics Workstation | |
* Last Revision: 6/4/18 | |
* -------------------------- | |
* Pin Wiring: | |
* Your workstation is configured with the following devices... | |
* =========== | |
* INPUTS | |
* - POTENTIOMETER (5K/10K): A3 | |
* - PUSH BUTTON: 2 |
OlderNewer