Sample coding for coin hopper (MOD HS 2012

Hi,

I am working on arduino 2560 R3 and coin hopper for work project but i have some problems counting the coin dispensing due to my inexperience in programming arduino firmware. It is my beginner level.

So can you kindly give advise on how to code properly in order to count the coins dispensing from coin hopper?

Here the document (http://www.hwiglobal.com/clientuploads/docs/Manual-eHS-HproEN.pdf)
Here is useful tips in attachment that you may find.

Thanks for your help.

So can you kindly give advise on how to code properly in order to count the coins dispensing from coin hopper?

How have you connected the device to the Arduino? Typically, the pulses from the device would trigger an interrupt on the Arduino. The interrupt service routine (ISR) would simply count the pulses.

Mider - I did the exact same thing a few weeks ago:

You have a smart hopper there! It looks like you can control your hopper in two way....

  1. Do what I did and count the pulse emitted when each coin is released. Attach it to an interrupt and look for a falling or rising edge (I`ve not looked close enough to see which yours is)

  2. Your hopper seems to have a logic mode which actually can control the number of coins it ejects based on the input it receives!