Coin Sorting and Counting Device
Coin Sorting and Counting Device
Submitted to:
Michael Serrano
Programming 5 Professor
Submitted by:
Junie P. Azul
BTVTEd Computer Programming 3
First-semester
S.Y. 2020-2021
Table of Contents
Chapter 1: Introduction..........................................................................................................1
1.1. Objectives.........................................................................................................................2
1.2. Scope and Delimitation.............................................................................................2
1.3. Significance of the Study.........................................................................................2
Chapter 2: Review of Related Literature......................................................................3
2.1. Project Materials...........................................................................................................5
Arduino Uno...........................................................................................................................5
Liquid Crystal Display I2C..............................................................................................6
TCRT5000 Sensor Module..............................................................................................7
Push button Switch...........................................................................................................8
2.2. Coin Specification.........................................................................................................8
Chapter 3: Research Methodology.................................................................................10
3.1. Research Design..........................................................................................................10
3.2. Population of the study...........................................................................................10
3.3. Data Collection.............................................................................................................10
3.4. Research Questionnaire..........................................................................................11
3.5. Project Development................................................................................................12
3.6. Actual Project................................................................................................................12
3.6.1. Tools and Materials Used for this Project:...........................................12
3.6.2 Procedure (step-by-step on creating the project)............................13
Chapter 4: Research Analysis............................................................................................16
Chapter 5: Conclusion and Recommendations.......................................................21
Conclusion.................................................................................................................................21
Recommendations................................................................................................................21
REFERENCES................................................................................................................................22
APPENDICES.................................................................................................................................24
Appendix A: Source Code.................................................................................................25
Appendix B: Flow Chart.....................................................................................................27
Appendix C: Circuit Diagram..........................................................................................28
Chapter 1: Introduction
Coin has become significantly on trades, economy, market, and so on.
Even in history, coins play a significant role in the society. In the Philippines, the
first coins were used in 1861. Until now, people still use coins in their everyday
lives. (Reyes, R., Tan, M.P., Torralba, T.J., 2008). In year 2018, the BSP or the
Bangko Sentral ng Pilipinas has announced the new designs of the coins. All the
coins from 1 centavo up to 10 pesos are now metallic silver color, also the 10
centavos were removed because of its soft demand. In July 2019, the 20-peso
note will be changed to coin because of its overuse. (Lopez, M.,2019). Unlike
from the 1 centavo and 10-peso coin, the 20-peso coin has a bronze metallic
ring on the outside, it looks like the old 10-peso coin, making the 20-peso coin
All in all, the usage of the coins is can be seen in daily transactions, and
many establishments such as sari-sari store, mini grocery, etc. some of them
manually sort the coins for future use and count them also manually. This takes
a lot of labor hours, there are machines that count notes or bills, but unlike for
the coins the productions are limited. There are some machines that sort coins
but because of the new denomination this may affect the validity of sorting the
right coin. There are also coin counters, but it doesn’t sort the coins and the
user will be manually sort them out before using the machine, and after that the
user will set the numerical value of the coin that will be counted. On this paper,
the design of the coin sorting and counting machine are updated on the sizes of
the new denomination of the coin. The device is running with the use of Arduino
Page | 1
Uno. Arduino Uno is a micro controller board, that serves as the brain of this
project.
1.1. Objectives
With the new denomination of the coins ranging from 1 centavo up to 20-
peso coin and the daily demands of coins in every business establishments,
coins are mostly mixed up with other coins. The objectives of this device are:
To lessen the time that sorting and counting of the coins consumes in the
The new denomination coins release by BSP on 2018 are the only
supported coins for this project. Although the older coins are still in circulation
and used for daily transaction. In Section 57 of R.A No. 7653 provides that the
BSP may call in for replacement notes of any series or denomination which are
more than five (5) years old and coins are more than ten (10) years old.
(Bangko Sentral ng Pilipinas). As the older coin being demonetize and the
production of the newer coin will be more in circulation the older coins will be
remove by natural attrition. On this project the only coins that are available is 5
centavo, 25 centavos, 1-peso coin, 5-peso coin, and 10-peso coin. Due to
unavailability to get the newer 1 centavo and 20-peso coin, the design of the
Page | 2
1.3. Significance of the Study
The project aims to help people who are in need on sorting and counting
coins automatically. For examples are stores who usually get a large amount of
coin in daily transaction, with the project the device will be able to sort and
count the coins automatically and be able to give faster change to customer or
for changing the coin to notes in banks. Small business (Sari-Sari Stores), Middle
Literature
Through the years there are studies develop to find the answers that will
benefit the society. And reviewing past studies will be able to improve the
contribution to a particular topic of the past study to the current study. To help
gather the foundation of this research, here are studies that related to the main
topic.
The coin counting and sorting machine are purposely developed to help
recording the quantity of large amount total of the coins, and in every sorting
procedure, the coins are separated individually through its value. Most of the
coin counters and sorting machines are based on the weight, dimension & edge
credit pulses with the use of sensors. (Guan, G. C., 2015). The coin sorting tray
is designed to sort different type of coins based on the size of coin in different
denomination (Richard E. McCarty, Jr., 2001). Coin counters are not new in
Page | 3
modern technology, it can be seen on vending machines, arcades, laundry store
In early years coin counting was first introduce in the USA in 1888, the
a separate counting tube for each denomination and size of coin, and separate
placed in a counting tube of the right size. The tube is then run rapidly over the
grooved tracks of the counting-board, where they are deposited. Each track
holds only ten coins. When the coins are all placed on the tracks, the board is
slightly tilted. Thus, throwing the coins into the spaces between the tracks. One
end of the board is then raised, and the coins quickly run down the aisles into
the stacking-tube attached to the end of the tray. This tube contains a paper
wrapper, which can easily be closed when the tube is opened. Formerly coin
counting was a job for an expert, but this machine equals in speed and accuracy
Molbak, 1888).
Page | 4
Figure 1. Coin Counting and Sorting Machine (from Popular Science, 1872; pg.68)
In the Philippines a same study has been made like the first coin sorting
Microcontroller Based Coin Counter with Segregator and Packing System was
published. The project has been made using the Gizduino ATMEGA 328
process the Philippine peso coins: one-peso, five-peso, and ten-peso. The final
output of the system is the packed twenty pieces of coins of the three-
The process and the function of the project on this case study are
identical with the principles of the getting the dimensions of the coin in sorting
the coins, and for a counting the coins, a sensor was attached at the end of the
chute into the coin tray wherein the coins are now separated to in numerical
value. The materials to be discussed are significant for the development, thus
other materials such as breadboard, jumping wires etc. are not included.
Page | 5
Arduino Uno
create devices that interact with their environment using sensors and
Liquid Crystal Display or also known as LCD is a type of flat panel display
which uses liquid crystals in its primary form of operation. LCD are made up of
Page | 6
millions of pixels. (Rouse, M. 2019). But on this project, a 16x2 LCD screen was
lines. Unlike other LCD screens, the I2C LCD Screen is using an I2C
communication interface. It means it only needs 4 pins for the LCD display: VCC,
GND, SDA,SCL. (dfrobot.com) I2C has a contrast adjust that can be used to
adjust the brightness and contrast of characters displayed on the LCD (Gay, W.,
2017)
TCRT5000 Sensor
Module
The
TCRT5000
Page | 7
sensor play a vital role in this project. The TCRT5000 is an IR sensor unit. It has
both a Photodiode and a Phototransistor coupled in its package. The photo diode
has two pins (Anode and Cathode) which can be used to generate an IR signal.
Similarly, the Photo transistor also has two pins (Collector and Emitter) which
can be used to read the IR signal that is reflected. This sensor can be used to
detect the presence of object or any other reflective surface in front it, also with
some level of programming it can also calculate the distance of the object in
front it. But the distance can only be calculated for short range objects and is
measuring distance range from 1mm to 8mm, and the central point is about
2.5mm. (instructables.com).
used for triggering of the SCR by gate terminal. These are commonly seen on
Page | 8
Various other mechanical and electronic devices, home, and commercials.
(components101.com, 2018).
With the changes of the of the con design, its specification is also change,
specially its dimension. On this project the coins are separated by its sizes. The
Denomination
10-peso 27 mm
5-peso 25 mm
1-peso 23 mm
0.25 centavos 20 mm
Page | 9
Figure 7. The new coin design by BSP (2019)
Page | 10
Chapter 3: Research Methodology
research questionnaire and the project development of the study. (Gozon, 2020)
sampling. Schools and courses of the students are differed base on the
respondents and lastly the Quezon city University and La Concepcion college
and technological related course which will be suited for the research.
A Likert scale questionnaire was given for the respondents. Ranging from
1 to 5, and 1 being the lowest score while 5 is the highest. The survey form is
respondents to take the survey. The survey form was made using Google form,
Page | 11
with a video presentation attach, the video presentation contains the
demonstration of the device before the participants answer the given questions.
Statements 1 2 3 4 5
Aesthetically
Page | 12
3.5. Project Development
Implemention
Development
Design
Planning
Ruler Breadboard
16x2
Page | 13
Sensor
Push button
10k Resistor
Figure 8. Coin slider wherein holes are cut into corresponding sizes of coin
Figure 9. Main body and the slider attach from the above, the edge of each chute
are cut out for the sensors
Page | 14
Figure 10. Make a cover for the top and front
Figure 12. Inserting the TRCT5000 Module in every edge of the chute
Page | 15
Figure 14. Placing the LCD Screen on its place.
3. Uploading of
Page | 16
Figure 16. The device is connected to the laptop.
Chapter 4:
Research Analysis
On this chapter, the analysis of the survey forms will be interpreted. Each
question will be analyzing it findings. The findings will help to identify the
strengths and weaknesses of the project, also the finding will be the foundation
device is properly working and responding while the remaining 4 (20%) of the
respondents are agree. The graph shows a majority in strongly agreeing the
Page | 17
Graph 2. Bar graph shows the summary of answers by the students in S2
the respondents are agree. The graph shows a majority in strongly agreeing the
Out of 20 respondents, 18 of them (90%) are strongly agree with the LCD
display what is expected and readable while the remaining 2 (10%) of the
respondents are agree. The graph shows a majority in strongly agreeing the
Page | 18
Graph 4. Bar graph shows the summary of answers by the students in S4
Nevertheless the 5% being neutral the majority of strongly agree shows a large
gap. Thus, the graph shows a majority in strongly agreeing the device is
integrating technology.
respondents are agree. The graph shows a majority in strongly agreeing the
Out of 20 respondents, 10 of them (50%) are strongly agree with the looks
of device while 9 (45%) of the respondents are agree, and 1(5%) are in neutral
or neither agree/disagree. Strongly agree and agree are close to each other .
Thus, the graph shows a majority in agreeing the device looks visually
presentable.
efficiency on storing the device while the remaining 8 (40%) of the respondents
are agree. Although the closeness of strongly agree and agree are almost
Page | 20
identical. The graph still shows a majority in strongly agreeing the device is
easy to store.
device being helpful for business owners while 3 (15%) of the respondents are
Page | 21
agree, and 1(5%) are in neutral or neither agree/disagree. The graph still shows
Graph 10. Bar graph shows the summary of answers by the students in S10
device safeness while the remaining 3 (15%) of the respondents are agree. The
Chapter 5:
Conclusion and Recommendations
Conclusion
coins in a mere second. Based on the analysis from chapter 4, from statement
1-10 the findings are strongly agreed. The respondents are clearly satisfied with
the output of the device. Based on the significance of the study coin sorting and
counting machine may help people who are into business and use coins in daily
transaction, like store, arcade, etc. because of its easier process of sorting ang
Upon building the project there are some errors wherein the coin is not
detected. It is because of the slope of the slide; this was fixed by putting a
smaller opening instead of bigger opening in the middle part of the slope. This
lessen the bounce of the coins that affects the counting of numbers. But after
this the coin will also move on the side of the chute, creating a small division on
each side and aligning the coin to be detect on the sensors will effectively
increase its effectiveness. The model is only capable of new coins thus it is
recommended to expand its capabilities by adding the older coins as its still on
the circulation.
References:
Gloria, M. (2018, March 26). BSP unveils new designs for peso coins |
BusinessWorld. BusinessWorld
https://www.bworldonline.com/bsp-unveils-new-designs-for-peso-coins/
Reyes, R. A., Tan, M. P., & Torrallba, T. J. (2008). Coin Sorting and
https://www.academia.edu/34794459/Coin_Sorting_and_Counting_Machin
http://malrep.uum.edu.my/rep/Record/my.ump.umpir.13172
Page | 23
Popular Science. (1919). Google Books.
https://books.google.com.ph/books?
id=7igDAAAAMBAJ&pg=PA68&redir_esc=y#v=onepage&q&f=false
Sequera, M., Madrid, C. M., Eborra, C., Lagare, K. E., Laid, M. D.,
Lamaclamac, K., Llamis, V. C., Moreto III, C., & Panaligan, M. K. (2017).
https://d1wqtxts1xzle7.cloudfront.net/56615787/IJET-V3I4P16.pdf?
1526887291=&response-content disposition=inline%3B+filename
%3DMicrocontroller_Based_Coin_Counter_with.pdf&Expires=1611252208
&Signature=YzxkdA4cjANeKqUK9X87lSJ-
1DReiqbAoK1Exn78gf3J53tOgOxs~-oyoGLra9A0p2JvMowqmLdkp-
4REKMZKu4fpQuzsyNl16yC4p1JFsKOqsu8zrMv6ycSps~zyrmxyZdBhEHXlFc
wS66onEqu5kiJKkIRALq53AvT9dFnBkAvbdEcAxpK-
1YVmlO1BvyPFh82R2obdgFCCHck4mULC1Zu9c6qtLC-
YiYp88NA3t0IEXAu~PoNkvueW4Mva~pzuA4k6y~KLLRGTFbeqgCDI0r~5VI-
nl3O9Ro3V6E8XC5OH8gLxdzI9z9nT3R~ldurPEs5-
vzqHbVp6DqY1Vmhgg__&Key-Pair-Id=APKAJLOHF5GGSLRBV4ZA
crystal-display
https://doi.org/10.5121/ijcacs.2016.1203
Page | 24
Gay W 2017 I2C LCD Displays In Custom Raspberry Pi Interfaces
https://components101.com/sensors/tcrt5000-ir-sensor-pinout-
datasheet#:~:text=The%20TCRT5000%20is%20an%20IR,Phototransistor
%20coupled%20in%20its%20package.&text=This%20sensor%20can
%20be%20used,the%20object%20in%20front%20it.https://
www.instructables.com/How-to-Use-TCRT5000-IR-Sensor-Module-With-
Arduino-/
IR-Sensor-Module-With-Arduino-/
Page | 25
APPENDICES
//including libraries
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 16, 2); //Setting LCD (I2C address, width, height)
Page | 26
// Variables for the value of sensors
int sensVal5cent, sensVal25cent, sensVal1, sensVal5, sensVal10;
int resetButtonState = 0;
float total; //Total of the coins
void setup() {
//Initializing components
pinMode(resetButton, INPUT);
lcd.init();
lcd.backlight();
}
void loop() {
//Getting the value of Sensors and transfer it to corresponding int variables
sensVal5cent = digitalRead(php5cent);
sensVal25cent = digitalRead(php25cent);
sensVal1 = digitalRead(php1);
sensVal5 = digitalRead(php5);
sensVal10 = digitalRead(php10);
sensVal10 = digitalRead(php10);
resetButtonState = digitalRead(resetButton); //reset button
if (resetButtonState == HIGH) {
//if reset button is pressed, the value will reset to 0.00
total = 0;
lcd.clear();
}
Start
Power On
Initializing Device
Components
Input Coins
Coin Detected
Is it on Page | 28
Sensor
with value No
of 0.05
Page | 29
Appendix C: Circuit Diagram
Page | 30
Appendix D: Gannt Chart
Page | 31