Skip to content
‹ Portfolio

SQOasis

Four transports, one bridge, one touchscreen.

A distributed system of custom boards: a Raspberry Pi CM4 touchscreen HMI on a custom Yocto Linux image, an STM32F407 bridge that routes four transports, and two sensor and actuator nodes. Hardware designed in KiCad, firmware in Zephyr, ESP-IDF and the ESP8266 SDK, and the HMI in Qt 6.

Rendered SQOasis board set: CM4 main module and two sensor nodes
Board set, rendered from the KiCad design
Fabricated SQOasis main board with a Raspberry Pi CM4, Ethernet, HDMI and terminal blocks
Fabricated CM4 main module

Key figures

CAN, nRF24, Wi-Fi and RS485 through one bridge
4 transports
CAN, nRF24, Wi-Fi and RS485 through one bridge
across the HMI, bridge and two nodes
5 processors
across the HMI, bridge and two nodes
custom PCBs designed in KiCad and fabricated
3 boards
custom PCBs designed in KiCad and fabricated

Custom hardware

A carrier board for the Raspberry Pi CM4 with an STM32F407 bridge, Ethernet, HDMI, USB, storage, an LTE modem section and power, designed in KiCad alongside two sensor and actuator node boards.

Fabricated Node 1 board with an ESP32 module, relays and terminal blocks for pumps and sensors

One bridge, four transports

The STM32F407 bridge acts as a transparent router. Messages from the CM4 carry a transport ID and are forwarded over CAN 2.0B at 500 kbps, nRF24L01+ radio, Wi-Fi TCP or RS485. Anything received from a node is wrapped and passed back to the HMI over SPI.

4

transports routed by one STM32F407 bridge

Sensor and actuator nodes

Node 1 (ESP32) reads temperature, moisture and flow, and switches AC and DC pumps and a conditioner. Node 2 pairs an RP2040 with an ESP-12E to read an RTD, current, voltage and two load cells, with a keypad and buzzer, linked to the bridge by nRF24 and Wi-Fi.

Fabricated Node 2 board with an RP2040, ESP-12E module and terminal blocks

Touchscreen HMI

A Qt 6 and C++23 application on the CM4 drives a 480×640 touchscreen with node panels, live sensor readings, actuator controls and a bridge log. A simulation protocol lets the interface be developed without hardware attached.

5

processors: CM4, STM32F407, ESP32, RP2040 and ESP-12E

A custom Linux image

The CM4 boots a custom Yocto (Scarthgap) image built for it: Qt 6.10 cross-compiled with meta-qt6, Weston on Wayland, a kernel config fragment for the PCIe USB controller and the touchscreen, a custom boot splash, and the HMI started by systemd. The same build setup also targets a BeagleBone Black.

2

boards from one Yocto setup: Raspberry Pi CM4 and BeagleBone Black

Drivers and board support

An nRF24L01 driver and a custom RP2040 board definition for Zephyr, and shared protocol headers used by the Zephyr, ESP-IDF and ESP8266 firmware and vendored into the Yocto recipe for the HMI.

3

firmware toolchains sharing one protocol definition

Gallery

Tech specs

Role
PCB design, bridge and node firmware, Qt HMI, Yocto image
Context
Squared engineering platform
Year
2025–2026
Disciplines
Electronics, Firmware, Software
Stack
  • KiCad
  • Raspberry Pi CM4
  • STM32F407
  • ESP32
  • RP2040
  • ESP-12E
  • Zephyr
  • ESP-IDF
  • ESP8266 RTOS SDK
  • CAN 2.0B
  • nRF24L01+
  • RS485
  • Wi-Fi TCP
  • SPI
  • Qt 6
  • C++23
  • Yocto
  • Weston / Wayland
  • systemd
  • Docker
Technical write-up

What it is

A multi-node sensor and actuator system built on custom hardware. A Raspberry Pi CM4 runs the touchscreen HMI, an STM32F407 bridges it to the nodes over four different transports, and two node boards handle sensing and actuation.

Architecture

PathTransportFormat
CM4 to bridgeSPI slave, 1 MHz71-byte passthrough frames
Bridge to Node 1CAN 2.0B, 500 kbpsSensor and actuator-command frames
Bridge to Node 1Wi-Fi TCPSame payload format as CAN
Node 1 to bridgeRS485, 115200 baudBroadcast frames with CRC-16
Bridge to Node 2nRF24L01+, 2416 MHzSensor and buzzer-command structs
ESP-12E to RP2040UART, 115200 baud10-byte load-cell frames

The bridge is a transparent router: messages from the CM4 name a transport and are forwarded to it, and messages from any transport are wrapped and passed back to the CM4. Shared protocol headers define every frame, so the Zephyr, ESP-IDF and ESP8266 firmware and the Qt application agree on one format.

Hardware

  • CM4 main module: Raspberry Pi CM4 carrier with the STM32F407 bridge, Ethernet, HDMI, USB, storage, an LTE modem section and power.
  • Node 1: ESP32 with temperature, moisture and flow inputs, and outputs for AC and DC pumps and a conditioner, on CAN, Wi-Fi and RS485.
  • Node 2: RP2040 and ESP-12E with an RTD (MAX31865), current, voltage and EMF inputs, two HX711 load cells, a 4×4 keypad, a buzzer and an SPI LCD.

Software

  • Bridge firmware (Zephyr, STM32F407) with SPI slave, CAN, nRF24, Wi-Fi and RS485 transports.
  • Node firmware in Zephyr (RP2040) and ESP-IDF and the ESP8266 RTOS SDK (ESP32 and ESP-12E).
  • An nRF24L01 Zephyr driver and a custom RP2040 board definition.
  • Qt 6 HMI with an industrial dark theme, node panels, sensor strips, a control bar, a bridge log and a simulation mode.

Embedded Linux image

The CM4 runs a custom Yocto image rather than a stock distribution, so the board boots straight into the HMI with only what it needs.

  • Yocto Scarthgap with poky, meta-raspberrypi, meta-openembedded and meta-qt6 (Qt 6.10.2), plus a custom layer for this product.
  • The HMI as a BitBake recipe (qt6-cmake and systemd classes), with the shared protocol headers vendored in so the image and the firmware agree on every frame.
  • A kernel config fragment enabling the CM4’s PCIe-attached USB controller and HID multitouch for the touchscreen, with SPI and I²C enabled for the bridge.
  • Weston on Wayland with screen blanking and locking turned off, a custom boot splash, and the HMI started and restarted by systemd.
  • A reproducible build in a Docker container with shared download and sstate caches, so the same setup also builds a BeagleBone Black image. Images are flashed with bmaptool, and app changes are rebuilt as a single recipe and copied over SSH without re-flashing.

Further reading

Next

ParcelPoint

Parcel lockers designed for busy people: four steps, under 30 seconds, and resilient.

View case studyOutdoor ParcelPoint locker unit with Drop, Pay and Pick sections

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