The plug-and-play coin board — it does everything the standard board does (a coin credits the customer on the portal) plus prints a WiFi voucher code for walk-ups with no phone. Wire it, flash it, power on — it auto-connects to the BaiFi router.
After you flash the router firmware and power it on, set it up from any phone or laptop. No app needed.
1Join the BaiFi WiFi2Open 10.0.0.1/admin3Log in4Set rates + license
Default login — admin / admin123. Change it right after.
In any browser on the BaiFi network:
http://10.0.0.1/admin
won't load? try http://10.0.0.1:8080/admin
Change the password right away — the panel asks you on first login.
A brand-new unit runs on a 2-day free trial. Activate your license within the trial to keep serving — an un-licensed unit locks the portal after the trial ends.
Signal wires from the ESP32 to each part. Power & ground detail is in the cards below.
Every wire, part by part. Left = ESP32 pin, right = where it goes.
Universal acceptor, set to 1 pulse = ₱1, NC mode.
I²C backpack, address 0x27.
58mm serial (TTL). Own 5V · 2A supply.
Momentary push button.
Tie all grounds together (mandatory).
Same parts, NodeMCU (ESP8266) pins. The board is a 3.3 V chip — keep the coin signal 3.3 V-safe (see cards below).
Left = ESP8266 pin (NodeMCU silk). Coin / relay / LED / printer pins are remappable in the dashboard; LCD & button pins are fixed.
Universal acceptor, set to 1 pulse = ₱1.
3.3V-safe: open-collector COIN → wire straight to D4. If it drives 5–12V, add a 1k/2k divider.
I²C backpack, address 0x27.
58mm serial (TTL). Own 5–9V supply.
Momentary push button.
Enables / powers the acceptor.
Tie all grounds together (mandatory).
Use the free NodeMCU PyFlasher app — it works for both boards. Fill it in like this:
1pick the Serial port2Browse to the .bin3Flash mode = DIO4Flash NodeMCU
For the ESP8266 board: same window — just Browse to coinslot_esp8266.bin instead (Offset stays 0x000000).
Firmware: coinslot_esp32_lcd_MERGED.bin
The ESP32 doesn't auto-enter flash mode like the ESP8266 — if it just prints dots (…….___…….) it isn't in flash mode: hold BOOT, or hold BOOT + tap EN/RST, then release EN while still holding BOOT.
Firmware: coinslot_esp8266.bin
When it shows Done, unplug, wire it per the diagram above, and power on — the board auto-connects to the BaiFi WiFi. No settings, no config.
| ESP32 pin | Wire | Goes to |
|---|---|---|
| GPIO27 | signal | Coin acceptor SIGNAL |
| GPIO25 | signal | PRINT button → GND |
| GPIO17 | TX2 | Thermal printer RX |
| GPIO21 | I²C SDA | LCD SDA |
| GPIO22 | I²C SCL | LCD SCL |
| 5V / GND | power | ESP32, LCD, common ground |
The board auto-decides per coin: a portal customer on screen → credits their session; otherwise → piles up for the PRINT button.
The plain BaiFi coin board (no LCD/printer) uses this fixed pinout.
| ESP8266 pin | Goes to |
|---|---|
| GPIO2 · D4 | COINSLOT IN (coin pulse) |
| GPIO4 · D2 | RELAY → acceptor 12V |
| GPIO15 · D8 | INSERT LED |