Cromarty
Posts: 64
Joined: Thu Jan 03, 2013 5:03 pm
Location: Godalming, South-east UK
Contact: Website

Software Monitoring of Supply Voltage and CPU Temperature

Tue Jan 22, 2013 1:43 pm

Hello,

I would like to be able to monitor the supply voltage and CPU temperature from software. Does such a thing exist and is the Raspi Model B board equipped with the necessary hardware to do this?
--
Michael Ray
Analyst/Programmer
Surrey, UK
4xB, 1xB+,
Creator and admin of:
[email protected]
Ham radio call: G4XBF
'Suddenly I am become death, destroyer of SD cards'

User avatar
daveake
Posts: 184
Joined: Thu Jul 12, 2012 12:07 am

Re: Software Monitoring of Supply Voltage and CPU Temperatur

Tue Jan 22, 2013 2:04 pm

The temperature is easy enough - run this:

/opt/vc/bin/vcgencmd measure_temp

For the supply voltage AFAIK you'll have to add an A/D. That's what I do for my weather balloon tracker. In that I monitor the battery voltage but it could very easily be changed to modify the 5V rail or whatever.

Dave

HBrydon
Posts: 9
Joined: Fri Oct 26, 2012 3:29 pm

Re: Software Monitoring of Supply Voltage and CPU Temperatur

Sun Jan 27, 2013 3:13 am

Per info at http://www.elinux.org/RPI_vcgencmd_usage you can measure 4 voltages on the board with:

Code: Select all

vcgencmd measure_volts <id>
Shows voltage. id can be one of core, sdram_c, sdram_i, sdram_p, and defaults to core if not specified.

Code: Select all

[email protected]:~# \
> for id in core sdram_c sdram_i sdram_p ; do \
>     echo -e "$id:\t$(vcgencmd measure_volts $id)" ; \
> done
core:   volt=1.20V
sdram_c:        volt=1.20V
sdram_i:        volt=1.20V
sdram_p:        volt=1.23V

Coburn
Posts: 78
Joined: Tue Sep 06, 2011 2:57 am
Contact: Website

Re: Software Monitoring of Supply Voltage and CPU Temperatur

Mon Jan 28, 2013 8:37 am

If you're looking to check the input voltage of the R-Pi and get a reading like 4.8V or 5.2V, you'll need to make your own solution. the only voltage readings built-in are CPU and RAM. Those are 1.2V, so they won't help you much.

seanspotatobusiness
Posts: 192
Joined: Tue May 22, 2012 11:19 pm

Re: Software Monitoring of Supply Voltage and CPU Temperatur

Sun Aug 05, 2018 12:35 am

daveake wrote:
Tue Jan 22, 2013 2:04 pm
The temperature is easy enough - run this:

/opt/vc/bin/vcgencmd measure_temp

For the supply voltage AFAIK you'll have to add an A/D. That's what I do for my weather balloon tracker. In that I monitor the battery voltage but it could very easily be changed to modify the 5V rail or whatever.

Dave
What is an A/D?
Raspberry Pi 3 B and B+
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"


Return to “General discussion”