Digital Object Counter Using Arduino || DIY || TexoBot
Let’s learn the Designing and Working of this project using given block diagram.
The first block is Arduino Nano, Arduino is the brain of this project. It will take input from the IR sensor and increase the count value by one whenever the IR sensor output change from 5v to 0.
Arduino will control and coordinate all other blocks that are used in this project.
The second block is 16x4 LCD display. This section is an output unit, main functions like prompting the user to set the count limit, count limit reach notification. Also, other functions like displaying the current count, showing the last count value etc.
The Third block is 8-Bit 7 Segment Display Module. This section is used to [i]display the Object Count. This display is driven by MAX7219 IC and can support up to 8-digit numbers.
The fourth block is Push Button Switches. This section contains three push button switches. The Set / Reset push button will be used for setting the count limit, the UP and DOWN buttons are used for Increasing and decreasing the count value respectively.
The fifth block is the Buzzer + LED. This section is used to make the project more user-friendly. Buzzer will produce a beep sound and LED will blink when any of the push buttons are pressed and also while the IR sensor detects and object. The buzzer will beep for 30 seconds when the count reaches the count limit value.
The Fifth block is the IR Sensor. IR sensor is an electronic device, that emits the light in order to sense some object of the surroundings. This sensor has two sections.
The emitter is an IR LED and the detector is an IR photodiode. The IR photodiode is sensitive to the IR light emitted by an IR LED. The photo-diode’s resistance and output voltage change in proportion to the IR light received. This is the underlying working principle of the IR sensor. We will be using this sensor to count the object. When ever an object presents in the range of this sensor, the output voltage will change from 5V to 0v. Arduino will detect this change in voltage state and increase the count by one.
The sensor used in our project has a range of 3-80cm
Now let’s move to the components required to build this project. You can buy all these components from third party vendors like E-bay, Amazon etc.
Designing the PCB and Generating the Gerber File
Below is the circuit diagram for our design, if anyone want to implement the project without using a PCB then you can refer this one.
Now let’s have look into the PCB designing process. So first, you need to design your PCB. You can choose online or offline platform for designing your PCBs.
Here we used Eagle software to design the PCB.
Then we ordered the PCB from JLCPCB which are also the sponsor of this video.
JLCPCB is a manufacture of high quality PBCs which are used in many industries for prototyping as well as in DIY projects. Once you have your PCB design ready, simply upload the Geber file, review your PCB in the Gerber viewer,
Select the property that you want and order your PCB at a reasonable price.
If it is your first order from JLCPCB you can get up to 5 PCBs for only $2.
Now let's try to solder the components. Try to solder the small components first and then proceed with the big one while soldering the components to the PCB. This will make the soldering process easier.
Follow the same procedure to complete the soldering process for rest of the components. For more information please visit link in the description
Upload the Sketch to Arduino
Now we can upload the sketch to our Arduino. Connect Arduino to your computer using the USB cable and upload the code shown below.
I have added comments in the program for better understanding of each codes.
We have also added links to watch Arduino IDE installation for Windows and Ubuntu in the description. This will help you to understand more about Arduino if you are using it for the First time.
Lets start the assembling now, start installing the Arduino on to the circuit board.
Then move on to the 16 X 4 LCD display.
Take out the seven segment display and connect it to the circuit board using the jumper wire that we had soldered earlier. Similarly connect the IR sensor as well.
We have also created a small conveyor belt prototype using below components.
L298N Motor Driver
Please refer the below figure to make one by your own.
Arduino Code for Conveyor Belt
Fully assembled circuit project look something like this.
Let's test the project
We will go through all the possible scenarios while testing our project. Let’s see the working first, then we will test all the possible scenarios one by one. Watch video.
So, our project is working as per our design. We hope that you enjoyed the Project.
And we would like to thank you once again for reading this article.