/cssi

Google Computer Science Summer Institute (CSSI) Arduino Workshop

Primary LanguageArduino

Google CSSI Arduino Workshop

Cambridge, Massachusetts
July 26, 2013

1. Stop Light

Red LED (+) leg on pin 13, (-) leg to ground.
Yellow LED (+) leg on pin 14, (-) leg to ground.
Green LED (+) leg on pin 15, (-) leg to ground.

2. Door Knob Alarm

Door Knob Alarm: pretty basic, uses analog input and will utilize the breadboard Need 1 capacitor (~uF), a resistor, and some conductive wire for this project. A little speaker would be nice for the audio alarm. It will use an analog input that we will need to calibrate to go off when someone touches the door knob from the opposite side. It’s possible to set it up so the alarm won’t go off when someone touches the door knob from the same side the sensor is on.

3. Multi-Color Lights

Part 1: Writing to the RGB LED

Build off of the stoplight project, where students learned how to output to an LED Explain how to cycle through the colors (with a timer between 0 and 255 so that when you move to the photoresistor, it is the same analogy)

Part 2: Reading from the photoresistor

Get the input from the photoresistor and output it to the console Take the output of the photoresistor and use it to create conditional statements for when to change the RGB LED to different colors

0 - 85 = Red
86 - 170 = Green
170 - 255 = Blue

4. Music