int motorPin = 10; void setup() { pinMode(motorPin, OUTPUT); } void loop() { motorOnThenOff(); //motorOnThenOffWithSpeed(); //motorAcceleration(); } void motorOnThenOff(){ int onTime = 2500; int offTime = 2000; digitalWrite(motorPin, HIGH); delay(onTime); …
Category: Past Student Work
T-Shirt Timer by Ellen Abnee and Ashley Sanchez
Non Blinking Circuit Blinking Circuit Arduino Codes Arduino 1 – The Blinking Lights (the timer lights) //Pin Definitions //Pin Definitions //The 74HC595 uses a serial communication //link which has three pins int data = 2; int clock = 3; int latch = 4; int data2 = 11; int clock2 = 12; int latch2 = 13; //Used…
Drawing Machine
#include <Servo.h> int motorPin = 9; Servo myservo; int pos = 0; void setup() { pinMode(motorPin, OUTPUT); myservo.attach(10); } void loop() { digitalWrite(motorPin, HIGH); for(pos = 10; pos >=1; pos -= 1) //from 10 to paper S { …
Pressure Sensor Backpack Part 2
Code: int reading=0; void setup(void) { Serial.begin(9600); pinMode(3, OUTPUT); pinMode(4, OUTPUT); pinMode(5, OUTPUT); pinMode(6, OUTPUT); pinMode(7, OUTPUT); pinMode(8, OUTPUT); pinMode(9, OUTPUT); pinMode(10, OUTPUT);} void loop(void) { reading = analogRead(1); Serial.println(reading); if(reading < 900){ alloff(); } else if(reading < 920){ alloff(); digitalWrite(3, HIGH); } else if(reading < 930){ alloff(); digitalWrite(3, HIGH); digitalWrite(4, HIGH); } else if(reading…
Wearable Arduino Tone Generator by Brian VonKaenel [Arduino CDEFG Note Coding] int piezoPin = 10 ; /* declare the pin which the piezo speaker is attached to */ int keyOne = 2; /* declare the first soft button */ int keyTwo = 3; /* declare the second soft button */ int keyThree = 4; /* declare…
Nils Volker
Joachim Sauter
Joachim Sauter Presentation
hdelac2 Presentation1
Presentation New Media130 by Hansel De La Cruz
Camille Utterback
Camille Utter Back by Samantha Lopez
Yuri Suzuki
Yuri Suzuki by Brian Von Kaenel