Raspberry Pi: Measure Temperature using DS18B20 sensor
If you find this content useful, please send me "Super Thanks"
Measure temperature with your Raspberry Pi using the DS18B20 and show the result in LED Matrix.
Step by step:
1. Wiring sensor DS18B20
Black : Ground
Red : VCC 3V
Yellow : GPIO pin 4 (pin 7)
Put a resistor 4,7K Ohm between red and yellow
2. Enable 1-Wire
sudo raspi-config
3. Enable the 1-Wire protocol with it:
sudo modprobe w1-gpio
sudo modprobe w1-therm
4. Change the directory and print the files
cd /sys/bus/w1/devices/
ls
5. cd 28-00000xxxxxxx *serial number is unique
cd 28-3c01d6075cd6
ls
6. Check to see if sensor is functional
cat w1_slave
Result:
03 02 55 05 7f a5 81 66 0a : crc=0a YES
03 02 55 05 7f a5 81 66 0a t=32187
Sensor datasheet: https://www.terraelectronica.ru/pdf/s...
Tutorial LED Matrix: • Raspberry Pi: LED matrix max7219
Download python file :
https://drive.google.com/file/d/14z8W...
Thank you for watching
Regards