GCC 4-1-16
-
Upload
kayla-leung -
Category
Education
-
view
373 -
download
0
Transcript of GCC 4-1-16
Meeting 14 – 4/1/16
Reading Temperature Sensor
Reading Temperature Sensor
• Instead of output to the RGB LED, either use analogWrite to control the intensity of an LED OR output the reading to the Arduino IDE's Serial Monitor software running on your computer • Using the command Serial.println() prints that value over
serial to the computer’sserial terminal.• Code on p. 45 Reading a Potentiometer.
Reading Temperature Sensor
Reading Distance Sensor
https://www.sparkfun.com/products/8733
Project Options• Serial Print input from Distance Sensor.• Program 1 LED to indicate Distance Change.• Program 4 LEDs to indicate Distance Change.
• Old Broken Headphones?
• Change Resistors values manually to replace potentiometer
Making Sound
Chapter 7: Shift Registers
Pulse Sensor$ Pulse Sensor - 20 day shipping
$$ Pulse Sensor - 13 Day Shipping
For next time... (4/8) • IR Distance Sensor • or Speaker Making Sound • or Shift Register • or http://girlscancode.net/
•Pulse Sensor (plan for 4/15, 4/22)