How to get temperature readings using DS18b20 and Raspberry Pi

preview_player
Показать описание
The video shows how to obtain temperature readings from the Dallas 1-wire DS18b20 sensor on the Raspberry PI

Once wired incorrectly two commands get you up and running:

sudo modprobe w1-gpio
sudo modprobe w1-therm

Then go to the sensor
cd /sys/bus/w1/devices/xxxxx

xxx is the unique name of your sensor

Then

cat w1_slave

The output will be the temperature in degrees celcius, however you have to divide by 1000 to get a full understanding.
Рекомендации по теме
visit shbcf.ru