Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Alternative: Operate a motor so it “reverses” itself until it is too close to an object.


Exercise 5.0: Sensor visualizer

Image Added

Create a visual output on your computer from one sensor, using Arduino and Processing.

Steps:

  1. Using one of the sensors you have been provided, research on how to correctly connect up the sensor, install a library and get a basic example up and running. 
  2. Output at least one value from the sensor over serial, and interpret that information in a visual form using processing. 

What if I can't get either of my sensors to work? Use the VCNL4040 that you already used in the exercise 3.3. 


Exercise 7.1:

Build a stopwatch with the smart servo and two buttons.

The movement of servo indicates the seconds elapsed. 

Clicking the first button starts and stops the stopwatch. The 2nd button resets the stopwatch.

TIP: Use the millis() function to find the elapsed time.

Possible Solution


Exercise 7.2: 

Develop an interactive device, taking inputs from one sensor and providing a physical output such as lights or movement. 


Sound (Buzzer or Loudspeaker)Movement (Motor, Solenoid, Servo) Light (LED, neopixel, lightbulb, laser)Tactile (vibration motor, actuator, Peltier element)Graphic Display (OLED, LCD, 7 segments, Printer, laptop screen with Processing) 
Sound (microphone, piezo)  




Movement (distance, motion, gesture, gyro, pressure, flex sensor)




Atmospheric (Temperature, humidity, air quality, pressure)




Bio-sensor (Pulse, GSR, EMG) 






Light (colour, luminance, IR) 




Touch (buttons, pressure, capacitance)