Object Counter

by rnyairo in Circuits > Arduino

1437 Views, 7 Favorites, 0 Comments

Object Counter

download.jpg

Intro:

The project uses an infrared LED and an infrared receiver to count objects passing through a place.

When an object breaks the beam between the emitter and the receiver, a counter is increased by 1.

Requirements:

-Intel Edison/Intel Galileo

-IR Receiver and Emitter Pair

-10k, 220 ohm Resistors

-Breadboard and Jumper cables

-Arduino IDE compatible with the Edison and Galileo

Connecting the Infrared Emitter

IMG_20151116_115415.jpg

The emitter looks just like a normal clear LED but once connected, you can only see the infrared using a normal camera such as a phone camera.

The connection is as shown above.

Infrared Receiver / PhotoTransistor

PhotoTransistorC.jpg

It looks like a normal LED physically, but is black in colour.

PhotoTransistor Connection

IMG_20151116_115345.jpg

Connect the IR Receiver as shown on the breadboard and align the Emitter and the Receiver.

Make sure there is some space between them.

Connect the output to analog pin A0.

The Code

Upload the above code to your board and open the Serial terminal.

Every time an object breaks the beam between the Emitter and the receiver, the counter increases by 1 and outputs the current number of objects to the serial monitor.

Eureka.!!

Downloads