SignalSQL

Introduction

SignalSQL is a signal database with the familiarity of a standard relational database. On top of ordinary tables it connects to real-world input and output signals and adds control algorithms — all presented as tables with plain columns, so integrating them into an application is as simple as running SQL.

Standard MySQL protocol

SignalSQL adopts the protocol used by the MySQL/MariaDB family of databases. If your software can connect to a MySQL database, it can talk to SignalSQL — from mysqli and JDBC to Node, Python, phpMyAdmin, and Grafana’s MySQL data source. No new client library, no custom SDK. See Connecting.

Connection to signals

To connect SignalSQL to the physical world you need an electrical interface — GPIO pins, 1-wire sensors, and the like. SignalSQL supports these through built-in modules for common interfaces, and through out-of-process drivers that let you add hardware by configuration — no recompiling. Whatever the interface, the signals it exposes appear in the built-in INPUT and OUTPUT tables.

Closed control loop

Most process control needs a closed control loop: input signals measure the current state of the process, a control algorithm such as PID computes a response, and the output drives the process back toward its setpoint. SignalSQL runs that loop inside the database — you configure it with a row instead of writing control code — so your application just reads and writes signals.

References

The feature that ties it together is references. A column in a table row can reference the value of another table’s row using the syntax =Table/Row/Column. Reading the column resolves the reference live. That is how a sensor reading is routed into a control algorithm and on to an actuator — see Built-in tables and references.

Who it’s for

Anyone building home automation, lab rigs, brewing setups, greenhouse control, or small industrial monitoring who would rather express control as SQL — and reuse the enormous MySQL tooling ecosystem — than write and maintain custom device code. The flagship example is a home-brewing rig; walk through it in the brewery example.