A
A
Alan Chernov2020-01-08 20:17:42
Electronics
Alan Chernov, 2020-01-08 20:17:42

How to connect "yr616" coin acceptor to raspberry pi?

I'm trying to connect and send a signal from the coin acceptor in NC mode * I connected to 23 pin with the "COIN" wire, I
wrote this code, it always displays "0" what other wires do I need to connect to the raspberry? Or is it possible to connect the ground through a resistor to the same wire ("COIN")? a little confused.

import RPi.GPIO as GPIO

 GPIO.setmode(GPIO.BCM)
 GPIO.setup(23, GPIO.IN)

 while True:
    print(GPIO.input(23))

(*NC mode is normally open. By default, there is a “high level” on the COIN output pin. When a coin passes, a single negative pulse is generated.)
5e160b1aa5da2756782302.jpeg
5e160b2ec134e379335896.jpeg

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question