HOMAXI LEARNING JOURNAL · TE-003
Switching a strobe light
from a phone
At Homaxi, I used a laptop over USB and a phone over Bluetooth to control a battery-powered LED strobe. With two relays, I could switch the light on or off and change its flash pattern.

What happens after I send “on”?
In TE-002, I triggered a relay by hand. This time, I sent a command to the ESP32. Its digital output pins (GPIO) sent signals to the relay modules. One relay switched battery power to the lamp. The other let me request the next flash pattern while the lamp was running.
I could follow the command through the whole setup. The phone sent the instruction, the ESP32 controlled the relay, and the battery supplied the energy that lit the LEDs. That same idea could let someone switch a living-room light from a nearby phone.
Watch the two tests ↓At the workbench





Watch the two tests
These recordings show a flashing blue light. Press play to start either clip.
Watch the lamp beside the relay modules as I operate the controls on the laptop.
Open video file →The phone and lamp share the frame so you can follow the command on the phone and see the response on the bench.
Open video file →