DS18B20 is a 1-wire temperature sensor. You can use DS2482. to connect Dallas sensor or OneWire gpio pin (P9.12 only!). To configure OneWire GPIO follow below instructions. If you have DS2482, first configure DS2482 section, then configure sensor list.
Login to your Beaglebone via ssh.
Edit /boot/uEnv.txt
with file editor (you need to use sudo eg sudo nano /boot/uEnv.txt
)
Uncomment (remove # from the beginning) following line:
uboot_overlay_addr4=/lib/firmware/BB-W1-P9.12-00A0.dtbo
Reboot device.
dallas:
id: mydallas
sensor:
- platform: dallas
id: temperature
address: 0x6e0300a279d76428
bus_id: mydallas
update_interval: 60s
filters:
- round: 2
- offset: 5
°C
) - unit of measurement of the sensor. This does not make any math to switch between units!- round: 2
) - filter list. See Filters to learn more.