BOND
IoT Home Automation
The switch was on the opposite wall from my bed. Every night, I'd be reading, eyelids heavy, finally ready to sleep — and then I'd have to get up, walk across the room, and turn off the light. By the time I got back to bed, the sleep was gone.
So I built BOND — an IoT device using a Raspberry Pi and relay modules that let me control my room's lights and fan from a web dashboard on my phone. PHP backend, MySQL for auth, flat files for device state. Toggle a switch on the dashboard, the relay fires, the light goes off. Problem solved.
Try the interactive demo below — it simulates the exact dashboard I used.
Room Simulation
Dashboard
BOND
Demo ModeActivity Log
System ready. Toggle switches to control devices.
How It Worked
Hardware
Raspberry Pi + 3-channel relay module. Each relay mapped to a device: socket, fan, light.
Backend
PHP + MySQL for auth. Device states stored in flat files — the Pi reads the file and triggers relays.
Frontend
Bootstrap dashboard with custom CSS toggle switches. Form submits via GET to update state file.