Carpark Exercise

In this exercise, you will use the LDR to check how long a car has been parked. If it exceeds the parking time limit, the signal light will turn red. The time limit is provided by the Central Yún .

Materials:

  • Arduino Yún
  • Jumper wires
  • 10k resistors (The colors on it are brown , black, orange and gold)
  • Light Dependent Resistor (LDR)
  • Breadboard

  1. Construct the MDF parts to hold the LDR.
  2. Open “e5_carparkchecker” from the examples.
  3. Upload the sketch to the Yún
  4. When the onboard LED L13 is on, the Yún is ready.
  5. Open the Serial Monitor and test the sensor by placing something over it. Check the Central Yún ’s serial monitor to see all the saved values.
  6. Go to this URL: http://verkstad.cc/iot/mmx/1/index.php to see current state of the parking signal.
  7. Modify thresholdValue to see how changing it affects how much light is needed to trigger the sensor.