51

The ability to monitor the temperature of the GPU has been added to the firmware. /opt/vc/bin/vcgencmd measure_temp temp=48.7'C


29

Found it! sudo nano /boot/config.txt add : dtoverlay=w1-gpio this has to do with kernel update, find more info in this link


26

You can also type: cat /sys/class/thermal/thermal_zone0/temp Output will then be in milligrades!


18

Given that your sensor is a DS18B20, and it is a 1-wire circuit and that 1-wire is a protocol that can do multiple adressing on that same bus and that the 1-wire temperature kernel module can read as many as 10 temperature sensors on the same bus. (check line 49 of the driver source code). If you just connect 10 of your sensors to the same 3 pins (3v3, GND ...


17

It'll go way down to < -70°C according to the article: Raspberry Pi proven to be stable when submerged in liquid nitrogen. UPDATE 29JUN2020: The above link is nolonger working. A similar article can be found here.


16

The $ sounds like you might be trying to use jQuery. If this is the case, you may want to download and install it as well. Since you are on the Pi, I would also recommend trying to write your own web application using Tornado. It is written using Python (the Pi's favourite language), and I always find it very easy to create web applications using it. Just ...


15

I found an answer at http://www.raspberrypi.org forums. You can read the CPU temp via bash script. Save this script as getTemp.sh in /usr/local/bin folder and give execute permission with chmod +x /usr/local/bin/getTemp.sh command. Then run it, you will get temp values. #!/bin/bash cpuTemp0=$(cat /sys/class/thermal/thermal_zone0/temp) cpuTemp1=$(($cpuTemp0/...


15

I don't think that should be happening. There is an explanation of the thermometer icon here updated last month, and it says it comes on halfway at 80°C, when the CPU should begin throttling due to overheating. Then at 85°C it changes to a full thermometer. However, that is the maximum recommended operating temperature. The Pi should not be getting that ...


14

No a heatsink is not required, The Pi3 has been reported to generate more heat than previous models, but the heatsink is not required. You can install it for some extra thermal protection, but the Pi will throttle the clock speed to maintain a safe temperature. Heatsinks are included in many of these kits to increase the perceived value.


13

You can read the file /sys/class/thermal/thermal_zone0/temp, as specified in this answer. There it's about measuring from the command line, and the file is read with cat. But you should be able to just open the file in C. The temperature is returned in milli-degrees Centigrade and as ASCII numbers. Perhaps like this, not tested :) FILE *temperatureFile; ...


13

Some time ago I wrote an article "Raspberry Pi :: Monitoring CPU temperature with RRDTOOL" about the same problem. My solution includes receiving temperature from CPU, saving it into the round-robin database and building a nice graph as .PNG file, that is quite easy to put on the web page -- just copy it wherever you want. I hope you'll find it useful.


11

I have eight pi3s in a room which is 22-24°C. They range in temperature between ~45°C and ~50°C when idle, with each pi being fairly consistent in temperature +-2°C (sorry, not terribly accurate values, they are from squinting at a plot). Mine aren't in any kind of enclosure, but are mounted on the underside of a plate with reasonably free air flow. So your ...


10

My experience with Raspberry Pi 3: The SoC will start to throttle down at approximately 80 degrees Celsius, and will, in my experience, never allow itself to be warmer than 85 degrees Celsius. This is of course the core temperature - the temperature outside the chip will have to be much lower to facilitate efficient heat exchange. While you (probably, don't ...


10

In addition to gnibbler's answer: /opt/vc/bin/vcgencmd measure_temp| egrep "[0-9.]{4,}" -o 49.8


10

More information on this will be available as and when the units start arriving with purchasers and we get a clearer picture of overclocking capabilities and such. To the best of my knowledge the figures from the benchmarking done by the pimoroni.com blog are accurate: In terms of CPU temperature, the Raspberry Pi 3 runs significantly hotter than the Pi ...


10

As the answers state, no heatsinks are required. However, following on from Snowman's comment to Maxthon Chan's answer, and taking some examples from the Raspberry Pi site1, should you want to check/measure the temperature that your Pi is running at, you can use the command: /opt/vc/bin/vcgencmd measure_temp Should you find yourself using this command ...


10

For those coming here from Google. You can get Raspberry CPU temp in Python using gpiozero package. pip install gpiozero Create your temp.py from gpiozero import CPUTemperature cpu = CPUTemperature() print(cpu.temperature) Output : $ python temp.py 56.92


8

Adafruit now even has a tutorial to connect the DHT22 to the pi. The example code works on most Pis, I had to tweak the C code a little like posted in the raspberrypi.org forums (increase a sleep timer). For other working sensors (including 1-wire and I²C) take a look at my blog. But e.g. the TMP102 is still missing in the list.


8

I see the OP's question has been answered authoritatively, but here are my 2 cents worth of experience: With the basic clear plastic no-fan enclosure and heat sinks the ARM AP runs at about 50C (122F), and my Pi3 works fine. When I take off the top part of the plastic shell the temperature drops to 47-48. So my conclusion is that the enclosure is not ...


8

I think using watch command is much easier, for example: watch {your command} In your case, it will be: watch vcgencmd measure_temp That will refresh by 2 seconds, if you want to define the interval by yourself (5 second maybe), you can type: watch -n 5 <your command> In your case, it will be: watch -n 5 vcgencmd measure_temp You can cancel ...


7

As discussed here What's the maximum / minimum running temperature? and taken right from the official FAQ: What is the usable temperature range? The Raspberry Pi is built from commercial chips which are qualified to different temperature ranges; the LAN9512 is specified by the manufacturers being qualified from 0°C to 70°C, while the AP is ...


6

There are no cooling requirements. I think one issue that comes to mind is the SD card, you would have to make sure that you are following steps to reduce the number of writes to extend it's lifespan. The only other thing I would add is that the Pi is slow. It will offer very little benefit to those organisations alone. Although it could be argued that if ...


6

You put the heatsinks directly on top of the CPU and the Ethernet/USB micro controller. Like this: RPi Heatsinks Usually, 99 times out of 100, you won't need heatsinks.


6

lrwxrwxrwx 1 root root 0 2016-02-19 22:24 thermal_zone0 -> ../../devices/virtual/thermal/thermal_zone0 lrwxrwxrwx 1 root root 0 2016-02-25 17:31 /sys/class/thermal/thermal_zone0/subsystem/thermal_zone0 -> ../../devices/virtual/thermal/thermal_zone0


6

Connecting the DS18B20 to the Ethernet port would either not work or the effort to make it work (even if it was possible) would be excessive for someone starting out with a Raspberry Pi. As you state, cut off the RJ45 and connect the sensor with the black wire to ground, the red wire to the 3V3 pin and the blue or yellow (some are blue and some are yellow) ...


6

I have a RPI3 with a mini heatsink, like the following image: Both heat sinks (14x14x11 mm and 9x9x12 mm) are made of aluminium and the fan is a SEPA MF15B-05 (15x15x5mm, 5V-0.06A) that is soldered to the printed circuit board (so it is permanent :P) So the iddle temperature with Raspbian Lite, WIFI connection and SSH active connection is about ~37°C in a ...


6

As noted in the Raspberry Pi FAQ: The Raspberry Pi is built from commercial chips which are qualified to different temperature ranges; the LAN9514 (LAN9512 on older models with 2 USB ports) is specified by the manufacturers as being qualified from 0°C to 70°C, while the SoC is qualified from -40°C to 85°C. You may well find that the board will work ...


5

Adafruit has released a distro called occidentalis which has 1-wire support built in. One wire is most commonly used for DS18B20 temp sensors. The Pi does not have 'hardware' 1-wire support but it can bitbang it with some success. Connect a DS18B20 with VCC to 3V, ground to ground and Data to GPIO #4. Then connect a 4.7K resistor from Data to VCC. ...


5

The default desktop environment (DE) on raspbian is LXDE. If you search online (e.g.) with regard to this issue, you'll find a chorus of crickets -- meaning no one cares that much. If this is very important to you, you could figure out exactly where the widget comes from and try and contact who's responsible, although I would guess by this point they are ...


5

See related: Firmware 3.18.x breaks I²C, SPI, audio, lirc, 1-wire (e.g. /dev/i2c-1, No such file or directory) Basically, the latest firmware for the Raspberry Pi enables Device Tree, and also breaks the myriad tutorials for getting 1Wire devices (like the DS18B20) working through GPIO. The fix is pretty simple: Edit /boot/config.txt Add the line ...


Only top voted, non community-wiki answers of a minimum length are eligible