SQL that touches
the real world
SignalSQL is a small relational database where a table column can be bound to physical I/O rather than to stored data. Reading a row reads a sensor. Writing a row drives a relay, PWM, or GPIO. Your automation is expressed as SQL — not firmware.
One database, wired to the physical world
Speaks the MySQL protocol on port 3308. Connect with mysqli, JDBC, Node, Python, PHP, phpMyAdmin — and point Grafana at it using the built-in MySQL data source. No new client library to learn.
A column can bind to physical I/O instead of stored data. A SELECT reads a live sensor value; an UPDATE drives a relay, PWM channel, or GPIO pin. The table is the interface to the hardware.
Express control logic as rows and queries instead of firmware. Level triggers and PID loops live in the database, so the same skills that query your data now run your rig.
Pluggable modules for real devices: owserver (1-wire), gpio, pid, slow_pwm, and logger. Add the interfaces your build needs and address them straight from SQL.
Runs on Raspberry Pi, Intel Linux, and Windows. Installs as a real service — a systemd unit on Linux, a Windows service with a WiX / MSI installer.
Durable storage on LMDB, with in-memory tables for results and scratch data. An INFORMATION_SCHEMA-style catalog means your existing tooling can introspect it.
Model a brew rig as a table
The flagship SignalSQL build is a home-brewing rig: 1-wire temperature probes, pumps, and PID-controlled heating for the hot-liquor tank, mash tun, and boil kettle — every part modelled as a row.
Loaded modules expose the physical world as rows in the built-in INPUT and
OUTPUT tables. Reading an INPUT row reads a live sensor; writing
an OUTPUT row drives an actuator. The database keeps the wiring; your
application just talks SQL.
- SELECT an INPUT row → get a live temperature
- UPDATE an OUTPUT row → switch a pump or element
- A reference (=Table/Row/Column) wires a PID loop, all in the engine
-- Modules expose the physical world as INPUT / OUTPUT rows.
-- Reading an INPUT row reads a live sensor:
SELECT Value FROM INPUT
WHERE Name = 'owdevice:28.F049AF040000';
-- Writing an OUTPUT row drives an actuator:
UPDATE OUTPUT SET Value = 1
WHERE Name = 'owdevice:12.574B7D000000';
-- References close a PID loop inside the engine:
INSERT INTO PID (INPUT, SETPOINT, Kp, Ki, Kd, Direction, OUTPUT)
VALUES ('=INPUT/owdevice:28.F049AF040000/Value',
'=setpoints/hlt/Value', 2.0, 0.5, 1.0, 1,
'=OUTPUT/owdevice:12.574B7D000000/Value'); Pricing
For non-commercial and hobby use.
- Full engine & hardware modules
- MySQL wire protocol & Grafana
- Community support
- No credit card required
Back the project — and get support back.
- Everything in Community
- Directly funds development
- Direct support from the maintainer
- Commercial-use license
- One-time payment, no subscription
Up and running in minutes
Grab the build for Raspberry Pi, Intel Linux, or Windows and point your favourite MySQL client at port 3308.