Hi everyone, I am working on an installation that has a coin hopper that needs to be triggered from an Arduino. The salesman who sold us the machine promised help but has gone AWOL so I could really do with some help. The coin hopper in question is American changer AC-1000 series. The aforementioned person sent me a diagram as following and mentioned that the pulse should be industry-standard 50ms on / 50ms off on pin 2 (Bill In) as per the diagram in image 1. Based on the diagram, I connected the wires as seen in image 2.
I connected the signal pin to pin 9 on arduino Mega and tried the following code:
This does not seem to work but when I removed the common ground pin from the arduino. The machine randomly dispensed the coins sometimes but I couldn't really understand what was happening or where I was going wrong. I am at my wit's end so any help will be appreciated.
Hey! Thank you for replying. Today, I tried pulsing pin 2 but that didnt work but funnily, when I short pin 2 and ground pin for a small time (<1 second), it dispenses a coin.
aboltaabol:
Hey! Thank you for replying. Today, I tried pulsing pin 2 but that didnt work but funnily, when I short pin 2 and ground pin for a small time (<1 second), it dispenses a coin.
If this is the action that you want, then you're almost there. As others have stated, if there is 24v on the hopper pin, do not connect it directly to the Arduino. Use an NPN transistor (eg 2N3904) switch:
Arduino output --> 1k resistor
1k resistor --> base of transistor
Emitter of transistor --> ground
Hopper pin 2 --> transistor collector
Arduino ground --> hopper ground
Google "simple transistor switch" if you want a diagram.
I'm assuming that the hopper doesn't mind having its pin 2 shorted to ground. It would not hurt to verify this and could hurt a lot not to.
From there, the code fragment that you wrote should work (i.e., 50 ms logic high to dispense a coin).
S.