The aim of this project is to develop a circuit that can count the number of people entering and exiting a room using two Infrared (IR) sensors connected to an Arduino UNO. This bidirectional counter ...
#define redLEDpin 3 //digital pin connecting to the RED LED #define greenLEDpin 4 //digital pin connecting to the GREEN LED #define photocellPin 0 //analog pin connecting to the analog 0 sensor ...
This is a simple 0 to 9 counter circuit constructed using Arduino! Here, a common cathode 7-segment LED display is connected to Arduino for displaying the digits. The code (Arduino sketch) allows push ...