r/esp32projects
•
u/ContributionEasy6513
•
Oct 07 '26
I built a physical CPU and RAM monitor using an ESP32-C3-Zero
I wanted something a bit more interesting than another web dashboard for one of my Linux/Proxmox servers, so I built a small set of physical gauges using the ESP32-C3-Zero.
The Linux server sends CPU and RAM utilisation (0-100) over USB serial to the ESP32 once per second. The ESP32 converts the values to PWM and drives the two gauges, with software smoothing so they behave more like proper analogue instruments.
There is also a Tri-colour RGB LED for status:
Blue while waiting for telemetry
Green during normal communication
Red if communication is lost (server offline)
Plans for other codes like loss of internet etc.
The gauges are 1 mA moving-coil meters with 2 kΩ series resistors. The firmware has a configurable maximum PWM value, so the physical gauge can be calibrated to the faceplate and individual gauges without changing anything on the Linux side.
The Linux side is just a Bash script using /proc/stat and /proc/meminfo, running as a systemd service. No network connection is required.
The ESP32 firmware also supports manual RGB colours, brightness control and an automatic LED mode, although the Linux script currently only uses the CPU/RAM telemetry.
I've put the hardware details, wiring, firmware, Linux script, systemd service, calibration information and templates on GitHub:
https://github.com/squawki/esp32-cpu-ram-gauges
Would be interested to hear yours thoughts.