Become a subscriber (Free)

Join 29,000 other subscribers to receive subscriber sale discounts and other free resources.
:
:
Don't worry -- your e-mail address is totally secure. I promise to use it only to send you MicroZine.

Coin Detector And Counter


This project, a coin detector and counter from 1988,  shows how to discriminate between different types of coin by measuring the result when they pass through an electromagnetic field.

The system uses an 80kHz oscillating field which allows good discrimination of the different types of coins (US coins).



Executive Summary of the Coin Detector And Counter

A coin detector and counter comprising a coreless oblong transmitter coil and a coreless oblong receiver coil spaced apart on opposite sides of a coin path arranged to cause the entire diameter of each coin to pass between the coils. The maximum peak voltage generated in the receiver coil upon passage of each coin is measured as a determination of the conductance of each coin. By comparing the measured conductance of each coin with the known conductance of coins, each coin is thereby identified and counted.

Background of the Coin Detector And Counter

One object of this design is to provide a system for coin identification that does not require close tolerances, and therefore cannot be so readily jammed as prior systems.

Another object is to provide a system that cannot readily be fooled by objects designed to simulate coins.

The system of this design is also much simpler and less expensive than prior systems. One reason is that the path of each coin need not be carefully controlled, as in prior systems.

Several prior systems for coin identification have included the use of a transmitter coil on one side of the coin and a receiver coil on the other side. This design relates to the identification of selected objects within an assorted collection of related and/or unrelated objects, based on the different ability of each successive object to reduce the intensity of an electromagnetic field. More particularly, the design relates to the identification of coins by passing assorted collections of coins and/or other objects through an electromagnetic field, and measuring the different degrees of reduction in field intensity caused by each coin or other object as it traverses the field.

Fare boxes, vending machines, and other coin counters have previously been designed to distinguish coins by sensitive mechanical, electrical and/or electromechanical and optoelectric devices for measuring weight, diameter, and other coin characteristics. The complexity and sensitivity of such prior devices have caused them to be somewhat unreliable because they are too readily jammed by foreign objects such as screws, washers, slugs and other debris maliciously inserted into coin slots.

Various input voltages and frequencies have been connected to the transmitter coil, and various analytical treatments of the output signal from the receiver coil have been tried.

For example, U.S. Pat. No. 4,493,411 covers a "Self Tuning Low Frequency Phase Shift Coin Examination Method And Apparatus" wherein coin identification is achieved by measuring the phase shift between the transmitted signal and the received signal, and then comparing the measured shift with prerecorded phase shift data for coin of known identity.

U.S. Pat. No. 4,086,527 is similar, except that a variable frequency input is connected to the transmitter coil, and the output from the receiver is measured at several different frequencies. Since several frequency-dependent tests are contemplated, each coin would have to be held in the field for whatever time period is necessary for that purpose.

Such systems require phase-shift comparisons because they are designed to measure the capacitance of each coin, as an indication of its denomination. However, the capacitance of one coin does not differ from that of a different coin to as great a degree as conductance differs from one coin to another. Thus, the present design recognizes that it is necessary to test for conductance as the primary or sole indication of the identity of a coin being tested.

Summary of the Coin Detector And Counter

The system of the design allows voltage differences in the output signal from the receiving coil to be measured as the primary or sole basis for coin identification. Because of the novel geometry of the coils, such voltage differences are indicative of the conductance of the whole coin; not just the conductivity of the alloy composition used to fabricate the coin.

In a prefered embodiment, each coil of the design is wound on a substantially rectangular base, such that the width of each coil is slightly less than the diameter of a dime, and the length of each coil is slightly greater than the diameter of a half-dollar.

The dime and half-dollar are selected because they are the smallest and the largest coin in the assortment to be tested. When other coin sets are to be counted, the preferred coil width is substantially equal to the diameter of the smallest coin, and the coil length is substantially equal to the diameter of the largest.

The transmitter coil is placed on one side of the coin path, and the receiver coil is placed on the opposite side. Each coil is arranged such that the windings lie substantially in a plane parallel to the coin path, and the length of each coil is perpendicular to the coin path. Thus, each coin passes between the coils in a direction that traverses the field from one side of the coils to the other side.

When the center of a dime reaches the center of the field it momentarily fills substantially the entire width of the field, and therefore the field "sees" only the dime at that instant, and not any significant portion of the coin ahead of it or behind it in the coin path. Each larger coin also interacts with the field across its entire diameter only at the moment its center passes the center of the field, because the length of the coils is substantially equal to or slightly greater than the diameter of the largest coin.

Circular coils are not suitable because a dime-sized coil pair could never effectively test a larger coin, and a half-dollar-sized coil pair would frequently interact with more than one coin at a time.

The system of the design reliably identifies and counts each coin as it passes through the field, regardless of the rate of motion of the coins, which pass through the field in a steady stream, or in an intermittent stream, such as in a fare box, for example. No mechanism is required to control the position or speed of coins as they pass through. This greatly simplifies the coin handling apparatus required for feeding coin through the field. The only requirement is that no two coins be allowed to overlap within the space between the coils.


Figure 1 : Is a schematic view of the inventive concept for the coin detector and counter



Description of the Coin Detector And Counter

As shown in FIG. 1, the simplest example of the design consists of an a.c. source 11 connected to transmitter coil 12, and a volt meter 13 and/or an oscilloscope 14 connected to receiver coil 15. The coin path between coils 12 and 15 cuts across the width of the coils, i.e., at an angle to the plane of the paper. The distance between the coils must be slightly greater than the thickness of the thickest coin to be counted. Preferably the distance between the coils is three to five times greater than the minimum required, so that the chance of jamming the slot is minimized.

Each coil is wound on an oblong base, which may be either oval-shaped or rectangular. The dimensions of each coil are selected such that the diameter of the smallest coin to be counted, a dime for example, is slightly greater than the width of each coil, and the diameter of the largest coin, a half dollar for example, is slightly less than the length of each coil. The coils are coaxial and aligned such that all corresponding sides are parallel to each other.

An assortment of coins to be counted is passed one at a time between the coils. No control of coin speed or position is require except that the full diameter of each coin must pass between the coils.


Figure 2 : Is a block diagram of the preferred embodiment of the invention for the coin detector and counter

View larger image here.


In FIG. 2 signal generator 21 is a Wein Bridge oscillator, tuned for example to 80 khz. Amplifier/driver circuit 22 consists of a four quadrant multiplier and a push-pull amplifier of known design.

Comparator 23 in combination with circuit 22 provides an output to the transmitter coil having a constant peak-to-peak value.

The transmitter coil 25 and the receiver coil 26 consist of 30 gauge wire wound on a plexiglass base measuring 1/4 inch by 11/4 inch. Each coil has about 300 turns of wire which adds to the width and length of the base, resulting in a coil width of 5/8 inch and a length of 11/2 inch.

The output from coil 26 is passed to differential amplifier 27 and conditioner 28 where signal 29 from circuit 22 is summed therewith to null out quadrature and leave as a remainder only the signal generated by each passing coin. The positive average of this signal is then converted at circuit 30 to direct current and passed to negative peak detector 31. The conditioned d.c. signal is then converted at 32 to binary numbers for transmission to microprocessor 33. The microprocessor is programmed to compare the incoming signals with prerecorded values for coins of known denomination, so that the identity of each coin is thereby determined. The money value of the coins is totalled to provide a final read-out or display.


Figure 3 : Circuit diagram part 1 of the system shown in fig. 2 for the coin detector and counter

View larger image here.



Figure 4 : Circuit diagram part 2 of the system shown in fig. 2 for the coin detector and counter

View larger image here.



Figure 5 : Circuit diagram part 3 of the system shown in fig. 2 for the coin detector and counter

View larger image here.



Figure 6 : Circuit diagram part 4 of the system shown in fig. 2 for the coin detector and counter

View larger image here.


FIG. 3, FIG. 4, FIG. 5, FIG. 6 in combination show the details of the system of FIG. 2. Signal generator 21 consists of opamp U11 and associated resistors, capacitors and diodes shown in FIG. 5.

Amp/driver 22 includes an Analog Devices circuit AD532 (U10), which is a four quadrant multiplier, operating to multiply the sine wave output of U11 and the DC signal from circuit U9 of comparator 23. The output from 22 is passed to opamp U8, a DC blocking high pass active filter which, in combination with R21 and LD6 passes a DC value to U9 that equals the most positive level of the AC output at U8. U9 produces a highly filtered DC value which holds the output to the transmitter coil at a consistent peak-to-peak voltage.

Differential amplifier 27 is composed of U2, U3 and U4. U4 sums the signal from U3 and from U8 to null out quadrature, leaving essentially the signal generated by passing coins at the output of U4.

U7 together with LD5, R18 and C29 follows the positive average of the AC output from U4. U6, U12 and associated circuitry form negative peak detector 31. This voltage is stored in C7.

Opamp U13 provides offset and gain adjustments for the input to U14. The U5 output indicates large slope direction on the input envelope. The positive edge of the square wave output of U5 turns T3 on, discharging C7. The negative edge starts the conversion of the analog to digital converter, U14, providing at pin 3 a binary number readily accessible to a computer.

The voltages generated in this system by U.S. coins as they pass between the coils are as follows:

______________________________________
U.S. Coin Voltage
______________________________________
Dime 2.40
Penny 2.95
Nickel 3.68
Quarter 5.31
Half-Dollar 7.57
______________________________________

These values are the maximum peak voltages generated by each coin. These characteristic voltages are detected and displayed as the corresponding money value for each coin.

In order to stabilize the system against temperature changes, resistors are chosen which have a thermal coefficient of .+-.1%.

For purposes of this disclosure, an "oblong" coil is defined as having a length at least 10% greater than its width, and preferably at least 20% greater. A ratio of length to width as great as 4:1 is suitable, while even larger would also be operable.

Various coin handling mechanisms are commercially available for generating a sequential flow of mixed coins, so that only one coin at a time passes between the coils. For example, Block & Company, Inc. of Wheeling, Ill. has Models 101-0065 and 101-0066.

An example of a suitable microprocessor for use in the system of the design is the Hitachi HD64180 8-bit CMOS device. Operation of the device is explained in their User's Manual #U77, dated Oct. 1985.

The compatible ADC1205 A/D converter is available from National Semiconductor Corporation.

Many other signal processing systems are capable of reading and displaying the characteristic voltages generated in the receiver coil of the design. The circuitry described herein is presented as one example of a suitable arrangement.


Click here for more project ideas.

New! Comments

Have your say about what you just read! Leave me a comment in the box below.



Claim Your: Useful

"Arduino Software Guide"

   Right Now...





Jump from the coin detector and counter page to
Best Microcontroller Projects Home Page.


Privacy Policy | Contact | About Me

Site Map | Terms of Use



499-8610


Visit our Facebook Page:

   Click Here



Sign up for MicroZine
''The'' Microcontroller Newsletter

Enter your first Name and primary email address in the form below:


And receive absolutely FREE a full project for:

"Measuring Analogue Voltages
Without An ADC"

(Using only one pin).

Instant Download:
You Can
Get It Right Now

Warning: This project could be  Removed 
at any time.  

It will  NOT be 
available indefinitely SO
To avoid 
disappointment  get it:

Now



:
:
Don't worry -- your e-mail address is totally secure. I promise to use it only to send you MicroZine
Remember this is a project with full description and fully debugged C Source code - and it's not available from the main website.

You can only get it through this newsletter.

To get exclusive access Enter your first name Name and primary email address Now in the form above.:



But wait !

There's more...

You'll receive more
free and exclusive reports as well as site information and site product updates


Scroll up to the form above and sign up NOW. Don't forget it's FREE and if you don't like it, you can unsubscribe at any time.

Click Here Now to use the form above to get your Valuable information absolutely free.



Readers Comments

"I wanted to thank
you so so so much
for all the information
you have provided in
your site it's

SUPERB and FANTASTIC."

- Ranish Pottath

"This site really is
the best and my favorite.
I find here many useful
projects and tips."

- Milan

bursach<at>gmail.com<

"Awesome site,
very, very easy and nice
to navigate!"


- Matt
matt_tr<at>
wolf359.cjb.net


Learn Microcontrollers

"Interested in
Microcontrollers?"

Sign up for The
Free 7 day guide:

FREE GUIDE : CLICK HERE


"I am a newbie to PIC
and I wanted to say
 how great your
site has been for me."


- Dave

de_scott<at>bellsouth.net

"Your site is a great
and perfect work.
congratulations."


- Suresh

integratredinfosys<at>
yahoo.com

"I couldn't find the correct
words to define
yourweb site.

Very useful, uncovered,
honest and clear.

Thanks so much for
your time and works.
Regards."


- Anon

Recent Articles

  1. How to use the DHT22 (or DHT11) with an Arduino; full code and description. Also including a comparison of the DHT11 vs DHT22.

    The Essential Guide to the DHT22/11 humidity sensor including a library code guide for the Arduino. Learn how to determine Humidity, Dew point and Heat Index.

    Read more

  2. How to Use the MAX7219 to drive an 8x8 LED display Matrix on the Arduino.

    The Essential Guide to the MAX7219; What it is and how you can easily use one in any of your projects.

    Read more

  3. How to use a DS18B20 (single or multiple on one wire) for temperature measurement using the Arduino Uno.

    How to Easily Use the DS18B20 Maxim One-Wire thermometer with Arduino example code showing external or parasitic power modes.

    Read more