And set it to Fast (20ms)
I believe that the circuit is less susceptible to interference if 'normally closed' is selected.
If it is set to 'normally closed' then the coin input will be held low by the coin acceptors output transistor, which must be a low resistance compared to the pullup resistor.
Try setting the switch to 'normally closed'.
I don't think you will need to change the code.
Thank you so much sir, I really appreciate all your support.
I'll try it early in the morning and update you asap.
Good luck, I'll be here tomorrow.
It might be a good idea to wait until you have everything working correctly before marking the topic as solved.
Sir, I change my settings to NC (Normally Closed) but found no luck, it became more responsive to or susceptible to interference than Normally Open...
I thinking the NO & NC are reffering to the coil relay of the coin acceptor, Normally Open means sensor has no connection until you inserted coins while NC Normally Close has already have contact or the sensor is always on, and thats why its more susceptible to interference.
I will try adding pulldown resistor as advise between Pin2 and the GND, but the available resistor I have right now is 220 and 10K only...can I used 10K instead of 4.7K?
Pull down resistor did not resolve the issue.
upon searching thru the internet for posible alternative solutions, I found the below website, and tried to follow is wiring diagram, eventhough the code he used is "FALLING" and not "RISING" as the code I used. I connect the line "COIN" signal from Coin Acceptor to Pin 2 of Aduino via 10K Ohms pull up resistor and suprisingly resolve the issue no more interference...
Thank you so much to all your support guys, I really appreciate it
Yes, but according to @JohnLincoln it should be Pulldown.
No, I said that the Coin acceptor coin output was open collector / open drain and that I could see (from the deleted post #3) that 21dream2come was using pinMode(coinslot, INPUTPULLUP).
I'm glad that 21dream2come managed to get it to work using the additional 10kΩ resistor.
Sorry, my bad.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.