I just got a CH-268T coin slot and I'd like to get it working with the arduino but I'm not sure how.
I'm not sure how to get the N.C or the N.O signal into the arduino.
This is the user guide for the coin slot.
User Guide:
(1)Replace yellow plastic token to the correct coin as wish to accept in sampling clamp.
(2)Adjust diameter-rail of lid for preventing bigger invalid coins from inserting.
(3)Drive screw of lid-wing if coin thickness more than 2.5mm.
(4)Connect loom to host machine as following lines guide :
White line—(N.C. signal)
Green line—(N.O. signal)
Gray line—Counter (Meter)
Yellow line—inhibit/low(<+1V)
Red line—PowerDC +12V
Black Line—Ground (GND)
(5)Switch Time Duration for correct triggering of coin acceptance if necessary.
It sounds like all it is is a SPDT switch - NC is normally closed, NO is normally open. You can go either way, but the real problem is that it sounds like it is +12V, you can't connect that directly. Test the NC line with a multimeter and see what the voltage is. If it is 12V, I would connect the NO through an optoisolator, to the Arduino. So I would consider something like this:
Ok so I connect it and it beeps but when I connect the multimeter most of the non power related wires are showing .01 volts i believe. The yellow wire shows 5 volts.
hunter2379:
Ok so I connect it and it beeps but when I connect the multimeter most of the non power related wires are showing .01 volts i believe. The yellow wire shows 5 volts.
Your documentation says this (edited down):
White line—(N.C. signal)
Green line—(N.O. signal)
Black Line—Ground (GND)
So if you power this device and put the multimeter probes on black and white and then black and green neither one registers a voltage difference? That doesn't make sense to me, they way I read that data, there should be a voltage there. I guess try both and have it accept a coin while you have the multimeter connected and see if it produces a pulse, though a multimeter is not the best tool for this because that pulse is going to be short.
I mentioned an optoisolator because it isolates as well as converting levels. Any level converter will do, you can use a cheap transistor, but you don't get the isolation.
So I found this youtube video of the coin acceptor I bought.
Apparently people use it to differentiate between copper density in pennies. Any idea if this would work for an arcade/slot machine? Which was my original intention. To have something accept a coin and then tell arduino that the person payed.