Arduino traffic counter for CodeWeek workshop for children.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
TrafficCounter.jpg
TrafficCounter_car.jpg
TrafficCounter_sw.png
Traffic_Counter.ino
Traffic_Counter_LCD.ino
Traffic_Counter_LCD.jpg

README.md

Arduino traffic counter

Arduino traffic counter for CodeWeek workshop for children.

Arduino firmware for reading reed switch state and counting traffic.

How does it work?

Magnet is mounted on a toy car. Reed switch is mounted inside the road. When car with magnet passes the switch, switch is activated. Green LED is turned off, red LED and onboard LED is turned on and beeper starts beeping. Traffic counter is increased and printed to serial console.

Arduino Nano based traffic counter

Materials needed

  1. 1 x Arduino Nano
  2. 1 x reed switch (magnetic switch)
  3. 1 x green LED diode
  4. 1 x red LED diode
  5. 1 x buzzer
  6. 1 x 10k Ohm resistor
  7. 1 x 220 Ohm resistor
  8. 2 x 300 Ohm resistor

Arduino Nano based traffic counter - software part

Arduino Nano based traffic counter with car

Traffic counter with LCD screen

Available is also a version, which is displaying traffic counter on LCD screen. For this version you will additionally need:

  1. 1 x LCD display (16x2)
  2. 1 x 220 Ohm resistor
  3. 1 x 10 kOhm potentiometer

Arduino Nano based traffic counter with LCD