Pi 3 - how to detect low voltage?


4 posts
by micksulley » Mon Jun 19, 2017 11:07 am
I am trying to create a program to monitor my various Pi's, temperature, space, voltage, etc. Works for Pi 2 but voltage detection does not work for Pi 3. From info on an earlier post the voltage detection circuit was moved for the 3.
Can anyone tell me how to detect low voltage on a 3 within code?

Thanks
Mick
User avatar
Posts: 114
Joined: Sat Mar 03, 2012 11:48 am
Location: Melton Mowbray, England
by dom » Mon Jun 19, 2017 11:09 am
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5076
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge
by micksulley » Mon Jun 19, 2017 12:44 pm
Thanks Dom,
I have done some digging around and there are lots of references to various vcgencmd commands, but I cannot find any documentation for it, listing all the commands and what they do. Do you know of anything?
Mick
User avatar
Posts: 114
Joined: Sat Mar 03, 2012 11:48 am
Location: Melton Mowbray, England
by DougieLawson » Mon Jun 19, 2017 5:12 pm
micksulley wrote:Thanks Dom,
I have done some digging around and there are lots of references to various vcgencmd commands, but I cannot find any documentation for it, listing all the commands and what they do. Do you know of anything?
Mick


Read the code, it's all out there at https://github.com/raspberrypi/userland [does lack a few comments]
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

Since 2012: 1B*5, 2B*2, B+, A+, Zero*2, 3B*3

Please post ALL technical questions on the forum. Do not send private messages.
User avatar
Posts: 28160
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK