Keeping a check on the CPU and GPU temperature of Raspberry Pi
04 March 2014 By Bhavyanshu Parasher
Temperatures sensors can be queried with utils in the raspberrypi-firmware-tools package. The RPi offers a sensor on the BCM2835 SoC (CPU/GPU).
This is a simple bash script which you can copy paste on raspberry pi. Create a new file with command nano CPUstat.sh
. Copy the below code and paste it into that file.
Press ctrl+x
and then press y to save and exit file. Run it using sh CPUstat.sh
. It will tell your the temperature. It is important because if you are runnig your Raspberry Pi for too long, it is likely to heat up. I am sure you don’t wanna brick your pi. So it will let you keep a check on temperature. If it’s above 70C, then you might wanna add a heat sink to it. Mind it, the pi was built to sit inside a mobile device as well with no airflow. So it can bear high temperatures. But I would still recommend you to use a heat sink if the temperature is above 70C.
View more tutorials on Raspberry Pi
blog comments powered by Disqus