Installation & Flashing Guide
Set up, wire, and flash a compatible ESP32 Multi Coin Slot for use with Ubiqon.
Requirements
Compatible ESP32-WROOM-32 development board used by the Ubiqon Multi Coin Slot.
Compatible coin acceptor with pulse output.
ESP32 5V DC power supply rated at 1A minimum.
Coin Slot 12V DC power supply rated at 2A minimum.
Required for the ESP32 flashing procedure.
Default Wiring
The default Ubiqon Multi Coin Slot firmware uses D15 for the coin-slot pulse input and D2 for the relay output.
| Function | ESP32 Pin |
|---|---|
| Coin Slot Pulse | D15 / GPIO15 |
| Coin Slot set pin, active high | D2 / GPIO2 |
| 12V Ground | GND |
Coin Slot Configuration
Configure the coin slot as:
Flashing the ESP32
Ubiqon Multi Coin Slot firmware is distributed as a *.bin file. You can flash the firmware using NodeMCU PyFlasher, a simple Windows GUI based on Espressif's esptool.
1. Download the Ubiqon firmware
Download the latest Multi Coin Slot firmware from the Ubiqon download page.
Download Ubiqon Firmware2. Download NodeMCU PyFlasher
NodeMCU PyFlasher is a portable Windows application for flashing ESP firmware. No separate Python installation is required.
Download NodeMCU PyFlasherOfficial project download hosted on GitHub.
3. Connect the ESP32
Connect the ESP32 to your Windows PC using a USB cable. Make sure the USB cable supports data transfer.
4. Open NodeMCU PyFlasher
Run NodeMCU-PyFlasher.exe. The application is portable and does not require installation.
5. Select the COM port
Select the COM port assigned to your ESP32. You can find the COM port in Windows Device Manager under Ports (COM & LPT).
6. Select the Ubiqon firmware
In NodeMCU PyFlasher, select the downloaded
Ubiqon *.bin firmware file.
7. Flash the firmware
Use the default settings unless a specific Ubiqon firmware release provides different instructions. Click Flash NodeMCU and wait for the flashing process to complete.
8. Restart the ESP32
After flashing completes successfully, disconnect and reconnect the ESP32 or restart the board.
After Flashing: Wi-Fi Setup and Coin Slot Registration
Follow these steps to connect your ESP32 Multi Coin Slot to Ubiqon.
1. Restart the ESP32
After flashing completes successfully, restart the ESP32. Keep the board powered using the required 5V DC supply.
2. Connect to the ESP32 Wi-Fi
- Open the Wi-Fi settings on your phone.
- Find and connect to the Wi-Fi network broadcast by the ESP32 Multi Coin Slot.
- If prompted, remain connected even if your phone reports that the network has no internet access.
3. Configure the Wi-Fi Access Point
- Open a browser on your phone.
- If the configuration page does not open automatically, navigate to
http://192.168.4.1. - Select the Wi-Fi access point that the ESP32 should connect to.
- Enter the Wi-Fi password, if required.
- Save the settings and allow the ESP32 to connect to the selected access point.
4. Open Ubiqon
- Connect your phone or computer to the network used to access Ubiqon's administration interface.
- Sign in to Ubiqon.
- Open the Multi Coin Slot menu.
5. Scan for the ESP32
- Click Add Coin Slot.
- Enter a device name, such as
Main Coin Slot. - Optionally enter a description.
- Under Device, click Scan Devices.
- Wait for the ESP32 to appear in the device list.
- Select the detected ESP32.
6. Add and Enable the Device
- Confirm the device name and selected device.
- Make sure Enabled is switched on.
- Click Save.
- Verify that the new coin slot appears in the Multi Coin Slot list.
7. Connect and Power the Coin Acceptor
Disconnect power before wiring.
- Connect the coin acceptor pulse output to ESP32 D15 / GPIO15.
- Connect the coin acceptor set-pin input to ESP32 D2 / GPIO2, according to the device wiring.
- Connect the ESP32 ground to the 12V power supply ground.
- Configure the coin acceptor for High Pulse Output and Active High Set Pin.
- Power the coin acceptor using the required 12V DC supply.
- Power the ESP32 using the required 5V DC supply.
8. Test the Coin Slot
- Confirm that the ESP32 is connected to the configured Wi-Fi access point.
- Verify that the device is registered and enabled in Ubiqon.
- Insert a coin into the acceptor.
- Confirm that Ubiqon detects the coin pulse and processes the corresponding credit.
Troubleshooting
ESP32 does not appear in the flashing tool
- Check the USB cable.
- Check the Windows COM port.
- Make sure the ESP32 is in download mode.
- Check the USB/serial driver if necessary.
Coin is not detected
- Check the D15 connection.
- Check the common ground.
- Confirm the coin slot is configured for Active High.
- Verify the coin slot is receiving the correct power.