Skip to content
‹ Portfolio

Aquagate

Simple remote control for water and AC mains over resilient LTE.

Aquagate switches two motorised valves and an AC load over LTE Cat-1, for sites with no Wi-Fi. Owners claim a unit with its QR code and control it from the SquaredIoT app. We designed the board, the enclosure, the firmware, the backend and the app.

Interactive 3D model of the Aquagate controller PCB
Controller PCB
Production enclosure with labelled valve terminals and an LTE antenna
Production enclosure, designed around the board

Key figures

modem recovery, from a driver redial to a power cycle
4-level
modem recovery, from a driver redial to a power cycle
protobuf shared by firmware, backend and app
1 schema
protobuf shared by firmware, backend and app
cellular link, for sites with no Wi-Fi
LTE Cat-1
cellular link, for sites with no Wi-Fi

Board and enclosure

We designed the controller PCB in KiCad and an enclosure around it in SolidWorks, with labelled terminals so an installer can wire it without the manual.

Black enclosure with labelled valve terminals and an LTE antenna

Claim it with a QR code

Owners scan the QR code on the device to claim it, then see its status and switch the valves and the AC load from the SquaredIoT app on Android or the web.

Phone screens showing device status and valve controls

Recovers on its own

On unreliable LTE coverage the firmware escalates through four recovery levels: waiting for the modem driver to redial, suspending and resuming the driver, a hardware reset, and finally a power cycle.

4

automatic modem recovery levels

A platform, not a one-off

One protobuf schema runs from the firmware through the backend to the app, so they cannot drift apart. The same platform became the base for SQMeter prepaid metering.

1

message schema shared by firmware, backend and app

Gallery

Tech specs

Role
PCB, enclosure, firmware, backend and app
Context
Squared product line
Year
2025–2026
Disciplines
Firmware, Electronics, Mechanical, Cloud, Software
Stack
  • Zephyr 4.4
  • RP2040
  • SIMCom A7670E LTE Cat-1
  • PPP and MQTT
  • Protocol Buffers
  • KiCad 9
  • SolidWorks
  • Go
  • PostgreSQL
  • InfluxDB
  • Grafana
  • React and Capacitor
Technical write-up

The problem

Property owners needed to open, close and schedule their water supply remotely, in places with no Wi-Fi and patchy mobile coverage. The device had to recover on its own, because nobody drives out to reboot a valve.

Firmware

  • Zephyr on an RP2040, connected over LTE Cat-1 with a SIMCom A7670E modem: PPP for the link, then MQTT with protobuf messages.
  • Outputs: two motorised valves and an AC switch.
  • Recovery: per-thread watchdogs and a four-level ladder, from letting the driver redial up to power-cycling the modem.
  • Soak testing on real networks, with devices left running for days at a time.

Hardware

The controller PCB is designed in KiCad. The enclosure is designed around it in SolidWorks and 3D-printed, with labelled terminals for the valves and the mains side.

Backend and app

  • Go service for accounts, device ownership and roles.
  • Telemetry written to InfluxDB, with Grafana dashboards for the fleet.
  • SquaredIoT app built with React and Capacitor, for Android and the web: scan the QR code to claim a device, see live status, send commands.

What it led to

Aquagate proved the hard parts: cellular links that heal themselves, device claiming, fleet telemetry and an app owners use. SQMeter builds on the same platform and adds metering and prepaid credit.

Further reading

Next

SQMeter

Prepaid metering for buildings that share one supply.

View case study3D render of the SQMeter PCB from its KiCad design, with the isolated mains section, latching relay and metering electronics

Contact

Tell us what you are building

Send a short description of the product, where it stands today and your timeline. We reply within one working day.

Use the contact form
Esc