B7: Object Counter using Serial Monitor

AR-B7: Object Counter using Serial Monitor

This entry is part 7 of 13 in the series Arduino Basic Circuits

This code is used count the number of objects passing in front of the IR sensor. It displays the count of the object on serial monitor in Arduino IDEWhat is Arduino IDE? Arduino IDE stands for Integrated Development Environment. It is also called as Arduino software in general language or Arduino compiler. It is used to convert high level programming language like C/C++ program into machine code i.e. into low level language. software.

Required Material

Arduino UNO Board – 1, data cable – 1, IR Sensor – 1, Jumper wires – 3.

Working

After uploading the code in Arduino UNO board, place your palm near the IR sensor. The count of the counter will increase by “1”. With this circuit, we can count the number of objects passing in front of IR Sensor.

The Code

This code gives you the ability to count the number of objects moving on a conveyer belt or number of persons passing through a door.

Just upload the following code in Arduino UNO and test the circuit.

Signup or Login to view remaining content. It's Free!
Share on your network!
Dattaraj Vidyasagar
Dattaraj Vidyasagar

Author on this website. He is veteran of Core Electronics since last 35+ years. ATL Mentor of Change, Niti Ayog, Govt. of India, Google Certified Educator, International Robotics Trainer and author of 17 books on electronics, robotics, programming languages and web designing... ➤➤

Leave a Reply

Your email address will not be published. Required fields are marked *