Sanpi automates ventilation with weather data, then catches unwanted speed changes

IoT, ventilation, weather

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

Raspberry Pi, ESP8266 — Images

Raspberry Pi, ESP8266 — Images

Source: Uncontrolled Mechanical Ventilation on Hackaday.io · Sanpi

Home automation, sensor faults

A Raspberry Pi weather station offered Sanpi a way to control a ventilation system without adding a manual switch. But failed weather readings exposed a consequential software mistake: missing data was resetting the fan speed.

👍 1

Sanpi’s home ventilation had apparently been running at maximum speed for three years, with no switch to be found. Rather than run wiring for a manual control, Sanpi decided to use a weather station already connected to a Raspberry Pi. The resulting Uncontrolled Mechanical Ventilation project on Hackaday.io aimed to select off, speed 1 or speed 2 automatically from indoor and outdoor temperature and humidity.

Created on July 15, 2016, the project connects a familiar home-automation ambition with a less glamorous problem: deciding what an actuator should do when its data source stops making sense. The visible logs run through August 18, 2016, when Sanpi reported hearing the ventilation repeatedly change speed during a quiet night in the garden.

From weather station to fan control

The project’s scope extended beyond a wireless replacement for a switch. Sanpi divided it into weather collection, storage, ventilation control, graphing, temperature-and-humidity sensors, and a dashboard. The listed hardware includes a La Crosse WS2355SIL-ALU weather station, two Raspberry Pi 3 boards, a two-relay module, an ESP8266 and a DHT22 sensor.

By the August 1 overview, Sanpi described two Raspberry Pi boxes with separate weather and ventilation roles. The growing number of software pieces had prompted another practical addition: Ansible recipes to recreate their setups. That’s a useful distinction in a distributed home project—getting several services working once is different from being able to rebuild them later.

The visible July and early-August entries mark work on graphing, sensors and a dashboard, but don’t spell out the temperature or humidity thresholds used to choose a fan speed. Those control rules shouldn’t be guessed from the component list.

A missing reading became a control action

On August 4, Sanpi announced a Rust rewrite of the weather-station software open2300, called ws2300. Two weeks later, that rewrite was at the center of the unwanted switching.

In the August 18 bug report, Sanpi estimated that roughly 90% of weather reads were failing. The cause remained unresolved in that entry. But there was a second problem downstream: invoking ws2300 as a subcommand in a cron job could send (null) to the ventilation script, which reset the speed when the read failed.

Sanpi reported adding handling for that case in the ventilation script. This separated two jobs that had become entangled: acquiring a valid measurement and deciding whether to change the fan setting. Fixing the second did not, by itself, fix the unreliable weather reads, and the excerpt provides no follow-up measurement of switching behavior after the change.

The custom sensor board had its own unfinished work

The sensor hardware followed a separate, uneven path. Sanpi designed a first PCB in KiCad and shared its sources in the sensor repository, initially noting that it was untested.

After toner-transfer etching and soldering, the August 5 build report recorded a USB connector on the wrong side and an ESP8266 that would not power up. The project page carries a completed-project tag, but these dated entries leave both the custom board and weather-reading reliability with unresolved issues.

The lasting lesson is at the boundary between sensing and control: no measurement is not a new measurement. For a controller like this, the next useful test is deliberate data loss—checking what happens to the fan, how stale readings are identified, and whether the fault becomes visible without first having to hear it.

Source: Uncontrolled Mechanical Ventilation

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.