Page 1 of 1

Software Monitoring of Supply Voltage and CPU Temperature

Posted: Tue Jan 22, 2013 1:43 pm
by Cromarty
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?

Re: Software Monitoring of Supply Voltage and CPU Temperatur

Posted: Tue Jan 22, 2013 2:04 pm
by daveake
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

Re: Software Monitoring of Supply Voltage and CPU Temperatur

Posted: Sun Jan 27, 2013 3:13 am
by HBrydon
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

Re: Software Monitoring of Supply Voltage and CPU Temperatur

Posted: Mon Jan 28, 2013 8:37 am
by Coburn
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.

Re: Software Monitoring of Supply Voltage and CPU Temperatur

Posted: Sun Aug 05, 2018 12:35 am
by seanspotatobusiness
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?

Re: Software Monitoring of Supply Voltage and CPU Temperatur

Posted: Sun Aug 05, 2018 6:05 am
by drgeoff