Asked

Anyone know of a good way to monitor power of the battery and feed voltage into ARC so I know when PC Is about to die? I monitor Power of EZB but I can't monitor power PC has. I share the same 12v battery for PC, Servo's EZB etc but I keep voltage at 7.5v for EZB with a voltage regulator and for the PC I use a step up converter. Step up converter starts to fail around 10.5v but EZB is still happy and doesn't record a voltage drop. End Result is PC on robot dies without making it back to dock on time to recharge battery.
Note: I used prevent PC sleep as question but really it is pc shutdown due to no power. I selected Rock PI X but using NUC but assume relevant.
Related Hardware Rock Pi X
Related Control
Prevent PC Sleep
OK Now I get it thanks. @DJ I didn't realize you were proposing divide the voltage so it is less than 5vDC so the ADC could read it. @Proteusy thanks for the link to the Arduino code. that could work if it gets stuck and can't make it home in time.
Keeping a robot alive 24/7 is certainly an interesting problem.
Thanks Question Closed. Appreciate the help.
lol thank goodness. I was feeling like a broken record
while ironically listen to vinyl records as I type this...
It worked well, I can even tell when I have docked correctly now as occasionally the magnets I put on the roomba and side of roomba charger don't contact in order to charge. Sorry about the misunderstanding, I completely missed the read input voltage with ADC and was wondering why you kept wanting me to add a voltage devider. I will try the Arduino build later for a graceful shut down next.
There's a JavaScript call to shut down: https://synthiam.com/Support/javascript-api/Utility/shutdownPC
or hibernate: https://synthiam.com/Support/javascript-api/Utility/sleepPCHibernate <- Requires a lot of HD space and energy
or suspend: https://synthiam.com/Support/javascript-api/Utility/sleepPCSuspend <- Requires battery still
But I think you'd want to use ShutDown. Because Hibernate should be disabled in your NUC for performance, energy consumption, and HD space. It's documented in the Storage and Performance tips: https://synthiam.com/Support/Install/free-space-with-windows-10
Thanks. I am adding a relay board to turn off with an ESP at the moment including cutting Roomba battery for emergency stop (need a big red button) and also clear up roomba when it gets stuck in program mode and won’t talk to EZB. The JavaScript shutdown should work on PC. thank you then I can power off EZB say 5 minutes later.
still not quite at the point I am prepared to let it roam free yet but with the sealed lead acid battery, navigator, roomba dock, voltage monitor, object avoidance and auto charge, getting closer.
haha yah it's super awesome watching the progress! Wish I had time to build robots like you guys - I'll live vicariously through you!