AI Disclosure:
I am not planning on using AI in this project. I may give in and ask it to help me navigate NUT documentation etc.
The need:
Many of us either started on, or chose to stay on low power homelabs and no lab should be deemed complete without an UPS. Unfortunately smaller and/or cheaper models either do not support external monitoring tools or use proprietary software.
The proposed solution:
I plan to create and release a small embedded module that the user could use to modify their UPS - making it NUT compatible.
For the sake of development speed (and part availability for the community) the hardware will be based on Raspberry Pi Pico. Time permitting, the design will be done using KiCad, but if time becomes an issue - I’ll push through the finish line with Altium. Firmware will likely use a library for handling USB. The remainder of the firmware will be custom.
Planned deliverables:
- PCB files (full manufacturing pack)
- Schematics
- Project files (if completed in KiCad on time, if not, I’ll re-draw in KiCad after Devember)
- Firmware for the rp2040
- A guide how to install the module
5 Likes
Jeff Geerling made some video’s on NUT, if you haven’t seen those, look them up. No need to reinvent the wheel, right?
1 Like
Been thinking about repurposing old backups with more batteries.
RPi Pico sound like overkill, but inexpensive and easy to code for so I get it.
I too tinker in KiCAD and would happy to review files if you like. Most of my work has been on full custom 3D Printer ARM boards and firmware, some with Allwinner H6 series.
1 Like
I like Jeff, and watch a lot of his videos, but missed this, and also have a UPS I would like to monitor with NUT
I from a quack, I see this, https://m.youtube.com/watch?v=yFnItLSRpLI Instructions on his blog to use ansible, to monitor the UPS and then shutdown named servers, complete with SSH secrets etc on here:
And a github project
2 Likes
HL_Bar 5
Does Jeff cover UPS monitoring when said UPS doesn’t have USB or the UPS doesn’t support UPS monitoring over USB? Other than the OpenNMC video. That’s specific to the APC SmartSlot interface.
Jeffs video is about taking a USP that has some interface out (in his video, USB), then using NUT to inform his devices about it.
This project aims to take a UPS with no feedback, no USB, no rj45 - then add a USB and use protocol already in NUT, used by other devices.
I do agree that pico pi is overkill. Eventually I would like to do the project with a very low end IC, but;
I have some pico’s already, I do really want to get this done, so this should be quicker, should anyone want to follow my steps - they wouldn’t need any programmers, the extra power consumption shouldn’t matter much in this context. Finally, it’s my first USB project, so having a device that can do it with no sweat (and one that there is a lot of reference for) should really help me figure it out.
As for current status:
Got almost all ICs selected (took a while as things came up). Ideally I would like to have PCB on order by end of next week, while I wait for it I can start the firmware (and just use fake values for now).
2 Likes
HL_Bar 7
Yeah, I understand what you are trying to accomplish. I’m trying to do a similar thing in a different way. I have a BC600R in a 10” network/lab rack I put together and was considering ways to safely shutdown the mini pc router during an outage using nut. I’m keeping an eye on this because, if it works out, your idea could be useful to me.
I use a Shelly EM Gen3 50A CT on the line, with it’s own UPS powering it. The home assistant integration handles the scripts. Using LNXlink to message nodes to shutdown due to power loss. This is one script in home assistant and a few configuration steps from shelly to automated. LNXlink does the heavy access but I already use it.
1 Like
ehehron 9
I’ve played with using an ESP32 controller vs. a pi or pico (which can be hard to find). If you use one with PSRAM you can even get tailscale running for any remote UPSes you may have. Cheaper than a Pi also.