You are on page 1of 6

See discussions, stats, and author profiles for this publication at: https://www.researchgate.

net/publication/304290667

Automatic gadget charger using coin detection

Conference Paper · September 2015


DOI: 10.1109/NGCT.2015.7375261

CITATION READS
1 1,566

3 authors, including:

Gunjan Chhabra Pankaj Badoni


University of Petroleum & Energy Studies University of Petroleum & Energy Studies
12 PUBLICATIONS   8 CITATIONS    7 PUBLICATIONS   8 CITATIONS   

SEE PROFILE SEE PROFILE

Some of the authors of this publication are also working on these related projects:

Crop Yield prediction using Machine Learning for Village Koti, Dehradun India View project

Student Project View project

All content following this page was uploaded by Gunjan Chhabra on 22 November 2016.

The user has requested enhancement of the downloaded file.


2015 1st International Conference on Next Generation Computing Technologies (NGCT-2015)
Dehradun, India, 4-5 September 2015

Automatic Gadget Charger using Coin Detection

Gunjan Chhabra∗ , Sunil Kumar† and Pankaj Badoni‡


∗ CIT CoES, UPES, Dehradun, India, gchhabra@ddn.upes.ac.in
† CIT CoES, UPES, Dehradun, India, skumar@ddn.upes.ac.in
‡ CIT CoES, UPES, Dehradun, India, pbadoni@ddn.upes.ac.in

Abstract—In this communication era, mobile -telephone in- battery charging system is designed to resolve the problem
dustry has grown profoundly. The urban population uses the of low battery. This could also be useful in the event of
latest mobile-phone technology while the rural population buys unpredictable grid power and availability of abundant solar
second hand ones, mostly with degraded battery, that require power. This proposal for a coin based universal mobile battery
frequent charging. This battery-problem becomes a giant when charger is presented in this paper.
user doesnt have a standard charger or an electricity connection.
In this paper, researchers intent is to propose a public coin The user has to plug the mobile phone into one of the
based mobile battery charging system. By using image processing adapters and insert a coin; the phone will then be given a
techniques, value of the coin has been detected for a limited time, micro-pulse for charging. It does not bring a mobile from
it will charge the device accordingly. A suitable microcontroller ’dead’ to fully charged state. The charging capacity of the
is programmed for all the controlling applications. The source
for charging is obtained either from a direct power grid or by
mobile is designed with the help of predefined values. It is, of
solar energy. course, possible to continue charging the mobile by inserting
more coins.
Keywords- Image processing; Charging system; coin detec-
tion; Circuit designing. The solar power application to battery charging has been
studied in the past. Solar chargers convert light energy into
direct current for a range of voltage that can be used for
I. INTRODUCTION charging the battery. In this paper, the design and development
Mobile phones, being an essential technological advance- of a coin based universal mobile battery charger based on the
ment, have enabled every individual to keep in contact with main power and solar power has been discussed. This is of
any niche of the globe. They have become a major source of prime importance in rural areas where the mobiles are basic
communication, be it with regards to the business aspect or needs for communication and the main power is not available
personal communication. all the time.

These days mobile phones have also become a portable


II. LITERATURE SURVEY AND RELATED WORK
computing device that can serve multiple purposes. This in-
creases the usage of mobile telephone sets and its demand A. Theoretical Background
in the community. An increase in the usage of mobile phone
for various purposes consumes an equal measure of energy in Especially in India, one cannot imagine his/her life with-
effect requiring frequent charging. As every application that out coins. A person uses coins in daily life, be it banks,
works on mobiles require battery power, this results in faster supermarkets or grocery stores, etc. They have become an
discharge of the battery power. integral part of transactions in our day to day life. And
then there is a basic demand of highly exact and efficient
In our regular lives (where our routines are fixed), the automatic coin recognition system. Alternative to daily uses,
mobile phone can be charged in such a manner that the battery the coin recognition systems can also be used for the research
power is always available. But, in cases where the routine purpose by the institutes or organizations that deal with the
changes due to any event or incident, there may be various ancient coins. There are three cases of coin recognition systems
situations where the battery power level becomes too low or available in the market based on different methods:
is completely discharged. As a consequence, even emergency
phone calls are not possible. Many critics have argued that a 1) Mechanical method based systems
public mobile phone charging service would not be a lucrative 2) Electromagnetic method based systems
business because most of the users can charge their phones 3) Image processing based systems
at home, in their offices or in their vehicles. Life is never
predictable, so in such unpredictability a public system would The mechanical method based systems use parameters like
be very useful. diameter or radius, thickness, weight and magnetism of the
coin to differentiate between the coins. But these parameters
Students, tourists and people utilizing public transportation cannot be used to differentiate between the different materials
would become the prospective customers for a public mobile of the coins. It implies, if we provide two coins, one original
phone charger service. Coin Based Charging System (CBCS) and other fake having same diameter, thickness, weight and
brings a very wonderful solution for commuters and travelers magnetism, but made up of different materials to the mechan-
who need to charge their mobile phones and gadgets imme- ical method based coin recognition system then it will treat
diately. Coin operated mobile phone charging system could both the coins as authentic so these systems can be fooled
become a new business milestone. The coin-based mobile easily.

978-1-4673-6809-4/15/$31.00 ©2015 IEEE 950


2015 1st International Conference on Next Generation Computing Technologies (NGCT-2015)
Dehradun, India, 4-5 September 2015

The electromagnetic method based systems can differenti- on its value. The system is proposed to design coin recognition
ate between different materials because, in these systems, the by applying heuristic approach, based on the coin table. This
coins pass through an oscillating coil at a certain frequency table stores parameters of each coin. This paper concentrates
and different materials bring different changes in the amplitude on affine transformations such as scaling, shearing and so
and direction of frequency. Thus these changes and the other on. This method returns 97of result in recognizing the coin
parameters like diameter, thickness, weight and magnetism can icon. [5] Hussein R. Al-Zoubi et al. in 2010 suggested a
be utilized to distinguish between coins. The electromagnetic coin recognition method using a statistical approach to classify
method based coin recognition systems improve the accuracy Jordanian coins. There are seven different coins used in Jordan:
of recognition but still they can be duped by some game coins. 500fils, 250fils, 100fils, 50fils, 25fils, 10fils, and 5fils. Color
[1] and area of a coin was the central feature for sorting. First
convert the colored image into grey level and then apply the
threshold value to convert it into black and white image. Then
B. Related Projects
the binary image is cleaned by opening and closing through
R. Bremananth et al. in 2005 proposed a system that erosion and dilation, after that calculate the value of each RGB
focuses only on the numerals rather than the use of other color. Then on the basis of these value decisions is made that
images presented on the front and rear side of the coin. For to which category the coin belongs. Total 1050 experiments,
experiment they used 1-rupee, 2-rupee, and 5-rupee Indian 150 for each coin were carried out to examine the proposed
coin. Extract numeral image from the given coin image and system. The Accuracy rate achieved was 9
this image is used for character recognition process. This C. M. Velu and P. Vivekanandan et al. in 2011 presented a
suggested approach can easily be carried out in whatever methodology for Indian Coin Recognition and Sum Counting
real time business transactions. The system resulting from System of Image Data Mining Using Artificial Neural Net-
this research recognizes numerals using neural pattern analysis works. The objective of this paper is to classify, recognize
with a 92.43% success rate of our test data. [2] and count the total value of newly released Indian coin s of
Lu Zhang et al. in 2005-06 developed a program, as disser- different denomination, in terms of Indian National Rupees.
tation work, for counting coins in computer vision approach The characteristics of old coins and new coins of different
using MATLAB. The main purpose of this project is to apply designations are considered for classification. In this paper, it
computer vision techniques to develop a program which should is proposed to introduce ML-CPNN approach. This approach
recognize coins in an image, and enumerate their value. That is then compared with other approaches. The Roberts edge
is to have a computer, read the image and calculated the total detection method gives 93% of accuracy and Laplacian of
value of the coins which are on the image. In that respect are Gaussian method 95% of the result, the Canny edge detection
various techniques involved, such as image color segmentation, method yields 97.25% result and the ML-CPNN approach
image edge detection, noise filtering, and Hough transforma- yields 99.47% of recognition rate. [7]
tion and hence along. The key to accomplish this project is Vaibhav Gupta et al. in 2011 presented a method based on
the color segmentation of coins and edge enhancement, which image subtraction for recognition of Indian coins of different
separates coins with their color difference and provides the denomination. The Process performs 3 checks (radius, coarse
efficiency. After the computer programs are established, an and fine) on the input image. Instantly compute the radius of
experiment which applies the programs with UK coins shows the input image and then based on the radius a test image is
that it works well and the error depends on the qualities of the selected from the database. Then subtraction between the input
coins images. A database containing a large number of images image and database image is done. By plotting the resultant
is required for the use of this method. [3] values we obtain a lower limit value which if less than a
Adnan Khashman et al. in 2006 proposed an intelligent standard threshold provides the identification of the coin. [8]
coin identification system (ICIS) that uses coin patterns for Shatrughan Modi et al. in 2011 presented an Artificial
identification helps preventing confusion between different Neural Network based Automated Coin Recognition System
coins of similar physical dimensions. For recognition of rotated for Indian coins. They used Indian coins of denominations
coins of various degrees, ICIS used pattern averaging and neu- ‘1, ‘2, ‘5, and ‘10. This system takes images of coins from
ral network. In pre-processing phase ICIS apply thresholding, both sides. First of all apply pre-processing for images like
cropping, compressing, trimming, pattern averaging on images. cropping, trimming, pattern averaging, etc. and then passed
And then neural network is trained using these images. ICIS the input data set to Neural Network for training. 4536 images
used 1 TL and 2 EURO coins in recognition. ICIS used a 3layer are used for training and 252 images are used for validation
back propagation neural network with 400 input neurons, 25 and testing each. It eased back propagation neural network
hidden neurons and 2- output neuron. The neural network is with 400 input units, 30 hidden layers and 14 output units.
trained using 20 images out of available 120 coin images. The This system gives 97.74% recognition rate. [9]
Accuracy rate achieved was 96.3%. [4]
Saranya das.Y.M et al. in 2013 presented a system to
C. M. Velu and P. Vivekanandan et al. in 2009 developed classify Indian coins discharged recently. This system is based
a system for the Indian coin recognition system of image on Advanced Harris -Hessian Algorithm, used the parameters
segmentation by heuristic approach and Hough transformation such as size, weight, surface, etc. of coins and also used
method. This system is developed mainly to classify the coins the concept of rotation invariance. The primary goals of this
offered in the Hundi by the devotees of Tirumala Tirupati project are: Recognize the coins, count the coins and then get
Devasthanam (TTD), Tirupati, India. The objective is to count the total value. First, we apply preprocessing of the image and
money by recognizing the coins and count the total sum based then pre-processed images are passed to the Harris -Hessian

951
2015 1st International Conference on Next Generation Computing Technologies (NGCT-2015)
Dehradun, India, 4-5 September 2015

detector, it detects interest points. Now these features are fed


to the Hough Transform, it detects circles and calculates the
radius of coins . It is a low cost system having recognition
rate close to 100%. [10]
Deepika Mehta et al. in 2013 presented a system to detect
and recognize the Overlapped coins using Otsus Algorithm
based on the Hough Transform technique. This project includes
three step detection, extraction and recognition. For segmenta-
tion uses an Otsus algorithm, for detecting overlapping uses the
Hough transform and for recognition uses radius thresholding.
The Detection rate of overlapped coins is 91% and recognition
rate is 40% to 50%. [11]
Fig. 1. Block diagram of overall system
III. PLAN AND DESIGN
Before implementation of overall setup, the working condi-
check the working of every component with each other. Hence
tions should be set up to improve the efficiency and effective-
the hardware testing was done in parallel.
ness of the program. Because there are hundreds of conditions
about how the coins would be displayed on an image. For Stage 3: Software: After detail study of hardware compo-
example, the size and shape of the same coin could also change nents and their assembling, as described in previous stages,
according to the view of the camera that captures the coins. next is to travel towards the software part of the system.
If the camera is placed just above the coin, the shape of the Software part includes two sub-steps as stated below: a)
coin will be a circle. Otherwise, the shape of the coin will be Programming of a microcontroller: At initial stage of micro-
an ellipse. And likewise, if the camera placed near the coins, controller programming, firstly an .asm file of the assembly
the size of the coin on the image captured by the camera will code was coded for the working and performance of controller.
be relatively larger as compared to the size of coins captured Then microcontroller is burnt with the accumulated files of this
by the camera which placed far from the coins. codification. Secondly, C program is designed to do interaction
with .asm file code. Functions of .asm file called in a C
A. Potential schemes for finding coins program and the interaction of the whole operation is being
performed. b) Using image processing techniques using MAT-
The appropriate computation strategy used in the project LAB: For the detection of value of coin, picture processing
and described in this paper is a threshold range matching techniques have been used. These techniques include masking,
(upper and lower limit for coins), because of usage of the feature extraction, Hough Transformation, pattern matching
low resolution camera. According to this strategy, when the and hence on. Granting to the initial setup of hardware, here
image is captured in real time, the range is being matched by a threshold range matching technique is being utilized for
by the program and indicates the value of the coin to the the detection of value of coins.
microcontroller for the further process/working of the system.
The images of the coins are captured in different lightening Stage 4: Calculating the value of coins: After the devel-
conditions to decide the range for each valued (Re.1 or Rs. 2) opment of above mention codes, one must integrate them with
coin. the hardware setup as assembled on stage 3. Microcontrollers
code is debugged and complied and then the compiled files are
B. Stages of development transferred to the controller for its functioning. It lets the coin
- holder to move in-front of the camera on detecting something
The evolution of the CBCS system was split into four main inside it. And then the camera will send the real time captured
stages according to the development strategy. Then each main image to the MATLAB for calculating its value and hence
stage was broken into sub -steps according to the plan and sends command to the controller to switch-on the power for a
study. Every sub -measure was planned as a distinct level, limited period.
which could be filled out and tested separately, and then
incorporated into the master task. These are the four main stages covered for the designing
of CBCS. An additional algorithm/technique can be applied to
Stage 1: Circuit Designing & PCB layout: In this stage, improve the working of the system.
basic circuit has been designed by using simulation tools to
check the overall working of the circuit to be used in the
development of CBCS system. Several parts were gathered IV. ALGORITHMS
using the simulator tool and hence the working of circuit was The following algorithm (set parame set and confirm the
tested on the simulator. Granting to the circuit designed, PCB threshold param rupee and two rupee coin.
Layout was made such that the hardware components can be
set up accordingly. Algorithm:
Stage 2: Assembling: At this stage of system evolution, 1) Set the lower and upper limit for im rupee coin and
all the elements are gathered together according to the circuit two rupee coin.
designed and PCB layout as presented in the old phases. After 2) Capture image from an infinite inpu the camera and
assembling of all the components, testing was performed to for five continues imag the following:

952
2015 1st International Conference on Next Generation Computing Technologies (NGCT-2015)
Dehradun, India, 4-5 September 2015

Fig. 2. Overall System Setup Fig. 4. Violet LED indicating Output unication can be set n

metal object. The primary goal of this project was satisfactorily


accomplished. Nevertheless, the system works fine for the
testing state becaus e working conditions were already being
set for both the system and input.

VI. CONCLUSION
After understanding the related articles, literatures and
analysis of a few similar projects, the current design strategy
was selected. Various development stages were planned and
Fig. 3. Working Stage of System finally the whole system was implemented. In entirety, the
developed system is able to attain the primary objectives. Nu-
merous subgoals is achieved like, value detection of the coin,
a. Convert the RGB image to graysca separate the
controlling the communication between various components
background from the reg (ROI).
and mainly image processing.
b. Check between which limits the av all five images
lies between- the upper limit of either one rupee coin
or two ru VII. FUTURE SCOPE
c. Based on which ever threshold interv value lies
display the value of that coin As discussed in the previous sections, there is a need
3) At the end stop the video input. The following of various enhancements that leads to the future scope of
algorithm (run coin used to identify the coin in the proposed system. Firstly, image processing embedded
the image provide appropriate information microcon- systems techniques may improve the throughput of present
troller. system. Secondly, paper currency identification and recognition
techniques can also be applied for the betterment of this
Algorithm: project. With these enhancements one can commercialize it
for the public usage.
1) Start a serial communication computing device and
the microcontrol
2) The port used for this commu by the user and is R EFERENCES
constantly open [1] Shatrughan Modi and Dr. Seema Bawa. Automated Coin Recognition
3) Capture image from an infinite the camera a. For five System using ANN, India, International Journal of Computer Applica-
continues the following: tions (0975-8887) Vol. 26-No.4, July 2011.
a. Convert the RGB image to gr separate the back- [2] R. Bremananth, B. Balaji, M. Sankari and A. Chitra, A new approach
ground from th (ROI). to coin recognition using neural pattern analysis IEEE Indicon 2005
Conference, Chennai, India, 11-13 Dec. 2005.
b. Check between which limits t all five images lies
[3] Lu Zhang et al. Development of Counting Coins Program in Computer
between- the u limit of either one rupee coin or t Vision a Approach using MATLAB, for the submission of dissertation,
c. Based on which ever threshold value lies send the University of Bath, in 2005-06.
appropriate the open serial communication p value of [4] Khashman A., Sekeroglu B. And Dimililer K., Intelligent Coin Identi-
the coin recognized. fication System, Proceedings of the IEEE International Symposium on
4) At the end stop the video an serial COM port. Intelligent Control (ISIC06), Munich, Germany, 4-6 October 2006.
[5] C.M.Velu and P.Vivekanandan et al. Indian Coin Recognition System
of Image Segmentation by Heuristic Approach and Hough Transform
V. TESTING (HT), Int. J. Open Problems Compt. Math., Vol. 2, No. 2, June 2009.
The testing executed that the system has the ability to [6] Al-Zoubi H.R., Efficient coin 00 a statistical approach, 2010 IEEE
recognize the value of the coin inserted and it allow power International Conference on Electro/Information Technology (EIT),
2010.
supply for a limited period of time, based upon the value of
[7] Velu C M, P.Vivekanadan, Kashwan K R. Indian Coin Recognition and
the coin. Hence, it enables the user to charge their gadget in Sum Counting System of Image Data Mining Using Artificial Neural
case of emergency. Also, the system is able to detect whether Networks, International Journal of Advanced Science and Technology
a coin is inserted or not hence, it cant be fooled by any other Vol. 31, June, 2011.

953
2015 1st International Conference on Next Generation Computing Technologies (NGCT-2015)
Dehradun, India, 4-5 September 2015

[8] Gupta, V., Puri, R., Verma, M., Prompt Indian Coin Recognition with Apprehension, International Journal of Advanced Research in Computer
Rotation Invariance using Image Subtraction Technique, International Engineering Technology (IJARCET) Volume 2, No 5, May 2013.
Conference on Devices and Communications (ICDeCom), 2011. [11] Deepika Mehta, Anil Sagar, An Efficient Way to Detect and Recog-
[9] Shatrughan Modi, Dr. Seema Bawa, Automated Coin Recognition nize the Overlapped Coins using Otsus Algorithm based on Ho ugh
System using ANN International Journal of Computer Applications Transform technique, International Journal of Computer Applications
(0975-8887) Volume 26-No.4, July 2011,pp. 13-18. (0975-8887) Volume 73- No.9, July 2013.
[10] Saranya das. Y. M, R. Pugazhenthi, HarrisHessian Algorithm for Coin

954

View publication stats

You might also like