This integration works when there's no one buying a load. The arduino will pass the credit pulses to the raspi after someone has pressed "insert coin" on pisowifi captive portal.
Let's begin the integration
Note: First, make sure you installed the latest Adopisoft software image from the official website. Software images before version 3.0.77 will not work.
Step 1: Install "pyserial" debian package into RPI
METHOD 1. USING SSH ACCESS
Enable SSH Service in your pisowifi machine(admin/services page).
For Windows users, you need to download and use putty to access SSH service of your RPI. Don't forget to turn off SSH service after installing pyserial.
METHOD 2. USING MONITOR AND KEYBOARD
Hook up an HDMI monitor and keyboard to RPI.
Then restart RPI.
When presented with login screen, use the following username/password combination:
After successful login, type:
sudo pip install pyserial
Step 2: Configure Adopisoft
Go to Wifi Hotpsot Admin http://10.0.0.1/admin#/timer and follow these settings
- Coinslot Sensor Type: Serial Connection
- Serial Device: /dev/ttyUSB0
- Serial Boad Rate: 9600
- Relay GPIO Pin: 3
- Relay module is active low: Checked
Then connect your arduino PIN 11 to RPI GPIO 3. Note: (Please follow the correct GPIO number base on BCM)
Lastly, connect your arduino using the provided usb cable to your RPI. And power them up to test your setup.
If you have problem following this guide, don't hesitate to message us here