How to build pikonek wifi vendo with coin acceptor
Last updated
Last updated
This guide will show you how to set up the coinslot on your raspberry pi.
Raspberry Pi 4 or 3B+ with 16GB SD Card
Universal Coin Acceptor
12V and 5V power supply
USB-to-Ethernet Adapter
Wifi router is set to Access Point Mode
UTP Cables
330 ohms resistors(optional)
10K ohms resistors
To configure pikonek to use the coin acceptor, follow these steps:
Set your coin acceptor to NO(Normally open) and FAST setting.
Go to Services > Coin Slot > Coin Slot GPIO Settings.
Provide the input PIN which is the coin(white wire). Note: Please use GPIO.BCM for mapping GPIO PIN. Please see the BCM reference image.
In the diagram above the input pin(coin) is set to GPIO 2.
For coin pins, the following are supported. Please use GPIO: GPIO 2, 3.
Check the Enable Coin Slot Relay. Coin Slot Relay is used to prevent users from crediting coins if they forget to click the Insert Coin button. Note: This is optional.
Provide the GPIO output PIN. In the diagram above the output pin is set to GPIO 17. GPIO that are working for this is the following: GPIO 22, 17.
Set the Relay Active to HIGH.
Hit Apply changes.
GPIO Reference
Under Coin Settings, click the Add button.
To add a new coin, provide the following fields:
Currency - Input your currency
Pulse - Number of pulses for this currency
Time - Equivalent time for this currency(1 minute or 1 hour)
Unit - Specify the unit
Go to Services > Captive Portal > General
Under Authentication, check Coinslot to enable inserting a coin to authenticate to the internet.
Hit Save.