An internet-connected voice-controlled easy-to-use lightswitch controller.
- Voice control through google-assistant.
- Extremely long battery life. The wall-mounted lightswitcher can achieve a very low energy sleep state while the base station remains connected to the internet waiting for commmands.
- Tool-less magnetic installation.
- Compatibility with both rocker and post style switches.
- USB rechargable Li-ion battery pack.
- Side-by-side installation thanks to narrow width.
- Contact activation through subtle physical switch.
-
The low-energy 433Mhz radios I selected are not suitable for this project as they are extremely unreliable and require a complicated software state-machine to service. A better choice would have been something like the
NRF24L01+
which includes automatic retransmission, multicast and an extremely low power consumption in sleep. See this project for more. -
The
ESP8266
WiFi module is not powerful enough to act as a base station for multiple devices. Its single processing core is mostly preoccupied with handling the networking stack and cannot be blocked by user software for two long without connectivity problems. A more modern SoC like theESP32
would have been a much better choice.
- Low-energy 433Mhz radios
- Deep-sleep enabled by a 32768Hz oscillator and timer interrupt
- BMS built around the Texas Instruments BQ25890 buck-boost charge controller. Charges 3.7 Li-ion battery pack from 5v USB power (buck) and produces 5v system power from battery pack when in operation (boost)
- Audio feedback from a buzzer
- Integrated USB debug/serial output
- ICSP programming header
The daughterboard has two roles
- To connect a small momentary switch for the front bumper to the motherboard
- To connect the battery temperature monitoring thermocouple to the motherboard
The actuator is compatible with both post-style and rocker-style switches. The slide engages with post-style while the vertial rocker engages the rocker-style.
The base station's primary responsibility is to act as a bridge between the internet and the low-energy 433Mhz radio on the light-switch.
- WiFi connectivity using ESP8266
- Dual power-supply options
- Mini USB
- Terminal block 5V DC
- Integrated USB debug/serial output
- Captive portal configuration through a mobile browser