I’m trying to use gpiozero for my coin acceptor, I tried using DigitalInputDevice but it doesn’t give back the value of what coin I’m inserted.
How can I use gpiozero to accept values from my coin acceptor and store it on my Python script?
import gpiozero coin = gpiozero.DigitalInputDevice(21)
On insert coin
I’m looking to accept values of 1, 5 and 10 from one GPIO pin from the coin acceptor
Coin pin is inserted on BOARD40
Common GND pin is inserted on BOARD39 to power GND
Coin slot ground connected to power supply GND
Generic coin acceptor for Philippine coins https://shopee.ph/Allan-Universal-Coin-Slot-for-1-5-10-Pesos-i.24440819.1055957120