Control & telemetry

Batt Control

The original Bat Cave dashboard brings live sensor readings and essential boat controls into one practical, at-a-glance interface.

Current build

I/ORemote control

What it does

Built for a clear view

When several systems need attention at once, the important information should stay close. Batt Control groups telemetry, alert states and motor controls, while keeping logs and exports within reach.

Key features

01

Live device readings with minimum and maximum values

02

Port and starboard motor controls

03

Alarm silencing, theme control and CSV export

04

Location tracking and access-controlled controls

Under the panel

How the system works

A practical map from the onboard sensor or controller to the value shown in the browser.

  1. 01

    The ESP8266 samples an analogue input and converts the raw ADC reading into the configured engineering range.

  2. 02

    It sends readings to the HAL server as a small WebSocket chat message; the first message also carries calibration and alert limits.

  3. 03

    The HAL server relays device messages to connected dashboards over secure WebSockets.

  4. 04

    The browser extracts the device name and value, then updates its card, history, alarms and GPS map. Control commands travel back through the same connection.

Wire reference

Data format

Transport
ESP WebSocket → HAL server → secure browser WebSocket
Envelope
JSON chat envelope containing a space-separated HAL line

Example payload

{
  "type": "chat",
  "username": "Hal-Temp1",
  "text": "hal: Temp1 21 min=0 max=100 alert_low=10.0 alert_med=80.0"
}

Field reference

device

Name after hal:, such as Temp1, Temp2 or GPS

value

Calibrated number; GPS uses decimal latitude,longitude

min / max

Display range configured in the ESP

alert_low / alert_med

Threshold values in the same unit as the reading

Source code

Take it apart. Make it yours.

The ZIP contains the web project and its matching ESP/Arduino firmware. Passwords, private keys, tokens, logs and live location data have been removed.

Firmware: ESP8266 Batt Control firmware

  • Dashboard HTML and JavaScript
  • ESP8266 Arduino sketch
  • HAL WebSocket server
  • Audio and configuration assets
Download batt-control-source.zip