by jcims · 5y ago · 0 comments
All of the i/o is dumb, the control loops are all on the node-red flowgraph allowing for lots of visibility of terms when tuning pids.
The node-red dashboard lets you mix telemetry and control on a very touch friendly format, and i spool all of it to influxdb to compare runs over time.
I’m sure you’ve got what you need with what you’ve built but at a minimum node-red might be worth a look. I was suuuper impressed using it for this.
The architecture is pretty straightforward. MQTT over wifi acts as a message bus between node-red and your 'legos'. (You don't really even need a raspberry pi, you just need to be able to run node-red, an mqtt broker and have wifi. I ran everything from containers on raspberry pi and ran the pi in AP mode which kept everything self-contained and tidy.)
For the i/o 'legos', i had more luck with the esp8266 than esp32's on Tasmota, but things have probably improved since then. You could also look at espurna, esphome, home assistant, etc. Main thing to look for is a firmware that supports some kind of async messaging protocol that nodered supports and has the i/o you need. You can buy a six pack of nodemcu esp8266's for $20 off amazon.
Good luck and have fun!