Skip to content

Instantly share code, notes, and snippets.

View liz-miller's full-sized avatar

liz miller liz-miller

View GitHub Profile
@liz-miller
liz-miller / four_steps_arduino_program_template_step_2.ino
Last active February 16, 2018 16:42
Four Steps to writing an Arduino Program Step 2
#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!
*/
@liz-miller
liz-miller / four_steps_arduino_program_template_step_3.ino
Created February 16, 2018 16:43
Four Steps to writing an Arduino Program Step 3
#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!
*/
@liz-miller
liz-miller / four_steps_arduino_program_template_step_4.ino
Last active February 16, 2018 17:01
Four Steps to writing an Arduino Program Step 4
#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!
*/
@liz-miller
liz-miller / method-template.ino
Last active May 6, 2018 23:42
How to Write a Method (Method Declaration)
/*
* 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"
@liz-miller
liz-miller / move-step-1.ino
Last active May 7, 2018 00:04
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 **/
@liz-miller
liz-miller / move.ino
Created May 6, 2018 23:32
Move Method | Beginner Bots Tutorial Lesson #3
/*
* 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 **/
@liz-miller
liz-miller / add.ino
Created May 6, 2018 23:42
Add Method Example
/*
* 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
@liz-miller
liz-miller / move-step-2.ino
Last active May 7, 2018 00:08
How to make an Arduino Robot | Move Step #2
/*
* 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 **/
@liz-miller
liz-miller / ir-readings.ino
Created May 15, 2018 01:32
Robot Car Using Arduino | Part 4 (Beginner Bots)
/*
* 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;
@liz-miller
liz-miller / HealthyPlantTemplate.ino
Created June 4, 2018 21:10
Healthy Plant Data Lab
/*
* 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