Answer the question
In order to leave comments, you need to log in
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))
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question