09/21: more listening --- [Serial Communication and Analog input]
Today, we will go over together:
- Arduino reference page here!
- Analog input
- Serial Communication --> Serial Monitor and Serial Plotter
- Using potentiometer, photocells, conductive foam
- Setting a threshhold for your sensor
- Combining conditional logic to detect ranges(||, &&)
- Analog switches
Interactive materiality by Augustina Andreoletti
Doug Engelbart's presentation at the Fall Joint Computer Conference in San Francisco, December 9, 1968 titled "A Research Center for Augmenting Human Intellect."
Printer Shake by Joe Winter
By creating thresholds and looking for specific ranges, we can use the data from a single analog input to control digital signals, almost like several digital inputs.
For homework, I would like you to build off of today's sketch using two analog inputs.
Trigger a pattern of digital output using the number of digital output of your choice. Analog inputs can be the same or different. Create as many thresholds as you like.
Here are some examples:
- Trigger a LED pattern when SensorA and SensorB are both in the range you specified at the same time
- Trigger a LED pattern when SensorA is in range and trigger another kind of pattern when sensorB is in range
- Trigger a LED1 when SensorA is in range and trigger LED2 when the sensorB is in range
- Familiarize yourself with reading analog inputs
(Potentiomenter/Photocell/Piezo/variable resistors/or other analog sensors of your choice)
- Use the Serial monitor to see what values are coming from your analog sensor
- Decide which ranges of values of your analog sensor will trigger different patterns of digital outputs
- Fritzing drawing or photo of your drawng (schimatic) of your work
- arduino sketch .ino file
Upload documents to google doc in folder named "AnalogInput"