1 | Monday | Fundamentals, Keyboard Hacking, Experiments |
---|---|---|
2 | Tuesday | Arduino, Project Topic |
3 | Wednesday | Brainstorming Day |
4 | Thursday | Own Project |
5 | Friday | Own Project |
Saturday | — | |
Sunday | — | |
6 | Monday | Own Project |
7 | Tuesday | Final Presentation, Wrap Up |
09:00 | Arduino Introduction |
---|---|
10:00 | Analog IO |
11:00 | Sketching Circuits |
12:00 | Break |
13:00 | More Sensors |
14:00 | Whatever you like |
15:00 | Introduction to our Topic |
16:00 | Brainstorming Ideas |
void setup() { pinMode(12, OUTPUT); // Make pin an output for us } void loop() { digitalWrite(12, HIGH); // Set pin to be "+" (on) delay(500); digitalWrite(12, LOW); // Set pin to be "-" (off) delay(500); }
void setup() { pinMode(2, INPUT); // Make pin 2 an input for us } void loop() { int value = digitalRead(2); // Read what's on that pin }
void setup() { pinMode(2, INPUT); // Make pin 2 an input for us digitalWrite(2, HIGH); // Activate internal pull-up } void loop() { value = digitalRead(2); // Read what's on that pin }
int potPin = A0; int val = 0; void setup() { pinMode(ledPin, OUTPUT); } void loop() { val = analogRead(potPin); digitalWrite(ledPin, HIGH); delay(val); digitalWrite(ledPin, LOW); delay(val); }
PWM — Pulse Width Modulation
Pins: R G − − B B
GND = Cathode = −