Squirco Puts Room Sensors in Light Switches—and Separates Them from Wi-Fi

IoT, sensors, smart switches

This is the read-only HTML version. For the full Visual Space experience, open the app.

smart switch, sensor board — I

smart switch, sensor board — I

Source: Squirco Smart Home System - Sensor Network on Hackaday.io · Steven

MQTT, modular hardware

A battery-free sensor network needs somewhere useful to live. Steven’s Squirco prototype uses light switches, with a dedicated sensor processor and an ESP8266 handling MQTT. Its 2015–2016 development shows why keeping sensing, networking and basic switch operation distinct matters.

A light switch already occupies a useful spot in a room: accessible, familiar and connected to the electrical installation. Steven’s Squirco Smart Home System sensor network on Hackaday.io turns that placement into a proposal for distributed sensing, rather than adding another collection of battery-powered boxes. The goal is a home that can act on its surroundings without making its occupants write every rule.

The most instructive part of this prototype isn’t the promise of automatic lighting. It’s the decision to separate the sensors from the networking processor—and to keep operating the light ahead of servicing the network.

A switch with a second job

Squirco’s project description lists ambient light, temperature, humidity, pressure and presence among the information the network is intended to collect. A built-in bright LED also gives the switch a night-light function, with modes described for darkness and an approaching hand.

Putting sensors in switches addresses two annoyances Steven identifies with standalone devices: finding places for them and eventually replacing their batteries. Mains power removes the routine battery chore, while the switch provides an existing mounting location. That makes placement convenient; it doesn’t, by itself, establish that every switch location gives a representative room measurement or complete occupancy coverage.

The sensing hardware evolved during actual prototype use. In a November 5, 2015 update, Steven reported using the previous prototype for three months. The next iteration replaced an NTC temperature sensor with a BME280 for temperature, humidity and pressure, and moved from an analog light sensor to a digital part with additional sensing functions. These were revisions aimed at making the data more useful, not simply increasing the sensor count.

This remains a mains-connected prototype, not a documented, certified replacement switch. The available material doesn’t establish electrical safety or compatibility with a particular home’s wiring.

The architectural change that mattered

By June 5, 2016, Steven said the earlier ATMEGA256RFR2 had reached the limits of what he needed. Trying different processors brought another problem: changing chip vendors meant rewriting code.

Version 2 split the work. An ATMEGA328P(B) on a one-square-inch sensor board processed sensor readings and transmitted them over UART. A separate networking processor could then handle communications. The implemented networking choice was an ESP8266; an ESP32 replacement was a future possibility in the project description, not a completed upgrade.

That UART boundary is the useful design move. The sensor firmware no longer has to follow every change in the wireless platform, and the two boards can be revised separately. For a project whose hardware and software were both still changing, it reduced the scope of each redesign.

The networking side had reached a functional prototype by July 8, 2016, when Steven reported using Adafruit IO as a temporary MQTT broker. A week later, his firmware release update made an important priority explicit: button and relay operation took precedence over networking features.

A wall switch is a particularly unforgiving place for sluggish software. Prioritizing its primary function is a sensible architectural choice, though it isn’t evidence of tested behavior under every network or processor failure.

A measured improvement—and an unfinished inference problem

The latest supplied build log, dated August 25, 2016, reports that sensor-board testing was complete and everything appeared to work as intended. Steven put the proximity detection range at around 25 cm, compared with less than 10 cm for version 1.5. That is a concrete improvement for the intended hand-triggered night light: the user needn’t get quite so close before it responds.

It isn’t the same as detecting whether someone is elsewhere in the room. In an August 24 discussion reply, Steven said human presence detection was still in development, with sensor data and RF disturbances being fed into a neural network. A later reply described an earlier radio-based proof of concept and ongoing experiments to collect better training data. No occupancy accuracy results accompany those comments.

That distinction matters for the broader feature list. Learned lighting schedules, whole-house home/away detection, climate coordination and vacation lighting replay describe the system’s ambitions; the visible logs don’t demonstrate that complete suite operating together. Close-range proximity has a reported result. Reliable household inference remains an open engineering task.

What the record leaves useful

Squirco was created in November 2014. The supplied build logs end in August 2016, with installation planned for September and a port of the ESP8266 firmware to the Homie library still ahead. Visible discussion continues into March 2017, including mechanical assembly and printing advice, but doesn’t confirm completion of that installation plan.

For builders studying the architecture, Steven linked the Squirco GitHub organization and reported releasing both firmware and sensor-board PCB files. The separate hub and thermostat project was intended to make use of the distributed data.

The lasting lesson is to separate three jobs that are easy to blur together: collecting measurements, transporting them and deciding what they mean. Squirco’s sensor-board redesign gives the first two a clear boundary. The next meaningful test would be whether the third can recognize occupancy reliably enough to control a room—without making the ordinary light switch any less dependable.

Source: Squirco Smart Home System - Sensor Network

Internet Of Things

2 Followers

Connect useful things with clear purpose. Explore sensors, embedded devices, networks and automation; share projects, troubleshoot integrations, and compare approaches to reliability, power use, security and maintaining connected systems.

Visual Space is built for projects like this—where creators collaborate, organize goals, and grow communities around real work.