My PanelWorks book is out: Draw It, Wire It, Run It
Remember Visual Basic? You drew a form, double-clicked a button, typed a few lines, and you had a program. PanelWorks brings that back in Python and points it at real hardware, and now there's a book to go with it.
Draw It, Wire It, Run It, the official guide to building control panels in Python with PanelWorks, is out on Kindle and in paperback (affiliate links):
- Kindle: Draw It, Wire It, Run It for Kindle
- Paperback: Draw It, Wire It, Run It in paperback
As an Amazon Associate I earn from qualifying purchases.
What's in it
It's a hands-on guide to building control panels: screens with gauges, lamps, buttons, charts and alarms that talk to the devices in your shop, your shack and your house. You draw the panel, wire it to the device, and run it. You'll build:
- A relay board and a bench meter over USB serial, with an Arduino or an ESP32
- A cistern pump controller over MQTT, with logins, Last Will and TLS
- Modbus panels for energy meters, and an ESP32 gateway for RS-485 meters
- An SNMP dashboard for a fleet of UPSes, and a USB UPS read through NUT
- Alarms with delays, deadbands and priorities, sent to your phone with Telegram and n8n
- An off-grid power dashboard for a Victron GX, with history in InfluxDB and Grafana
- A garden irrigation controller that checks the rain forecast before it waters
- A ham shack panel for a radio's CAT port, a GPS and a packet TNC
- A truck scale, the project that started it all, thirty years ago, in Visual Basic
You'll also let Claude read and drive a running panel, turn a panel into a program anyone can run, put it on your phone, reach it from anywhere with Tailscale, and hang it on the wall on a Raspberry Pi.
Every chapter that uses hardware ends with a fake of that hardware, in Python or on a bare ESP32, so you can build the panel before the parts arrive. Every example was tested before it went in the book. The appendices include a Control Cookbook with a working example for every control, a VB6-to-Python phrasebook, and a guide to writing your own fake devices.
The code is free
All the book's code is on GitHub, MIT licensed: github.com/KK4HFJ/draw-it-wire-it-run-it. PanelWorks itself is free too: pip install panelworks, or see PanelWorks on GitHub. The book is written for PanelWorks 1.0.1. For more on PanelWorks itself, see PanelWorks: Visual Basic-style control panels in Python.
If you build something with it, I'd like to hear about it.
73, Steve, KK4HFJ
Reply to this post
A question, a correction, or your own results? Send it here. Replies come to me by email and aren't published. Your address is only used to answer you.