DexterInd / Raspbian_For_Robots

Raspbian image changes to make it work well with Dexter Industries robots.
http://www.dexterindustries.com/raspbian-for-robots/
Other
33 stars 18 forks source link

Voltage Check to validate TTL #47

Open tangowhisky37 opened 8 years ago

tangowhisky37 commented 8 years ago

Folks,

Been speaking to Karan/CleoQC at the forums and realized that we are currently missing the means to generate alerts when the batteries are running low.

As Karan was mentioning when powered from batteries the gopigo binary (to be renamed such from it's current name gpg..:) ) reads 12v. This obviously comes down over a period of time as the batteries are drained. Below 7v one should consider pulling them out and replacing them.

What's the best way to alert the user of batteries that have lost all juice with a crash looming ahead. Possibly a script/daemon running in the background? A Python or shell script running in the background as a daemon checking the voltage every min and issuing an alert on the screen while generating some sort of an audible warning?

I can give the script a go. I am not very good at writing code (python or shell) but can definitely give it a go. Let me know if there's something you would like me to help with.

Cheers, Trevor

karan259 commented 8 years ago

that would actually be a very interesting feature. I have seen a lot of folks posting about problems which end up being a battery issue. We would have to think a bit about how we integrate it with the image so that people don;t find it annoying. It would be great if you could do the first pass on the software. We'll try it out at our end once its done

graykevinb commented 7 years ago

Generating an audible warning is a great idea except the RPI lacks speakers. A applet for the lxde panel could be implemented to show how much battery is left. Just like on your laptop. However I'd your just using the terminal... The warning would have to be printed out. I'll look into it.