In this article we look at a DS18B20 module which you can connect to your Raspberry Pi DS18B20 Information The DS18B20 digital thermometer provides 9-bit to 12-bit Celsius temperature measurements and has an alarm function with nonvolatile user-programmable upper and lower trigger points. The DS18B20…
Tag:
DS18B20
-
-
This is follow on from the DS18b20 terminal example at http://www.pibits.net/learning/120.php , this time a python example Code [codesyntax lang=”python”] import os import glob import time os.system(‘modprobe w1-gpio’) #load one wire communication device kernel modules os.system(‘modprobe w1-therm’) base_dir = ‘/sys/bus/w1/devices/’ #point to the address device_folder = glob.glob(base_dir…