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() { // Execute these lines ONCE ON BOOT } void loop() { // Execute these lines ALL THE TIME }
void setup() { Serial.begin(115200); } void loop() { Serial.println("Hello world!"); }
int LED_PIN = 12; void setup() { pinMode(LED_PIN, OUTPUT); } void loop() { digitalWrite(LED_PIN, HIGH); delay(500); digitalWrite(LED_PIN, LOW); delay(500); }
int BUTTON_PIN = 2; void setup() { Serial.begin(115200); pinMode(BUTTON_PIN, INPUT); // Make pin an input } void loop() { int value = digitalRead(BUTTON_PIN); // Read what's on that pin Serial.println(value); }
int BUTTON_PIN = 2; void setup() { Serial.begin(115200); pinMode(BUTTON_PIN, INPUT); // Make pin an input digitalWrite(BUTTON_PIN, HIGH); // Activate internal pull-up resistor } void loop() { int value = digitalRead(BUTTON_PIN); // Read what's on that pin Serial.println(value); }
int potPin = A0; void setup() { Serial.begin(115200); } void loop() { int value = analogRead(potPin); // Read A0 Serial.println(value); }
PWM — Pulse Width Modulation
PWM — Pulse Width Modulation
Pins: R G − − B B
GND = Cathode = −