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 an input for us } void loop() { value = digitalRead(2); // Read what's on that pin }
void setup() { pinMode(2, INPUT); // Make pin an input for us digitalWrite(2, HIGH); // Activate internal pull-up } void loop() { value = digitalRead(2); // Read what's on that pin }
int potPin = 2; // select the input pin for the potentiometer int ledPin = 13; // select the pin for the LED int val = 0; // variable to store the value coming from the sensor void setup() { pinMode(ledPin, OUTPUT); // declare the ledPin as an OUTPUT } void loop() { val = analogRead(potPin); // read the value from the sensor digitalWrite(ledPin, HIGH); // turn the ledPin on delay(val); // stop the program for some time digitalWrite(ledPin, LOW); // turn the ledPin off delay(val); // stop the program for some time }
PWM — Pulse Width Modulation
Pins: R G − − B B
GND = Cathode = −