Robotic Arts Intro Fall 2018 (IA277.01)


09/21: more listening --- [Serial Communication and Analog input]



Review

  1. Coding Structure
  2. Digital signals
  3. digitalRead and digitalWrite
  4. variables
  5. if statement
  6. AND and OR


Today, we will go over together:

  1. Arduino reference page here!
  2. Analog input
  3. Serial Communication --> Serial Monitor and Serial Plotter
  4. Using potentiometer, photocells, conductive foam
  5. Setting a threshhold for your sensor
  6. Combining conditional logic to detect ranges(||, &&)
  7. Analog switches
  8. Fritzing

Presentaton


Interactive materiality by Augustina Andreoletti


Neoprene bend sensor by plusea article


Doug Engelbart's presentation at the Fall Joint Computer Conference in San Francisco, December 9, 1968 titled "A Research Center for Augmenting Human Intellect."


CĂ©leste Boursier


Meiwa Denki


Printer Shake by Joe Winter

HOMEWORK

Analog Switch

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

    Steps:

  1. Familiarize yourself with reading analog inputs
    (Potentiomenter/Photocell/Piezo/variable resistors/or other analog sensors of your choice)

  2. Use the Serial monitor to see what values are coming from your analog sensor

  3. Decide which ranges of values of your analog sensor will trigger different patterns of digital outputs

Document

  • Fritzing drawing or photo of your drawng (schimatic) of your work
  • arduino sketch .ino file

  • Upload documents to google doc in folder named "AnalogInput"