Skip to content

Projects / 2026

PoolPay Automation

IoT gate terminal unlocked by M-Pesa payments on an ESP32.

Overview

An IoT payment terminal: a user enters a phone number and amount on a physical keypad, prompts appear on an I2C LCD, and the ESP32 triggers a Safaricom M-Pesa STK Push through a Node.js backend. Once the payment is confirmed, the ESP32 drives a servo that unlocks the gate, holds it open for a few seconds and locks it again.

Instead of fragile WebSocket connections, the firmware polls the backend over HTTP to track each transaction outcome in real time (success, cancelled, wrong PIN, insufficient funds and more). A companion React client supports browser-based payments and a live transaction history over Socket.IO.