[Solved] DS18B20 NanoPi Neo Core 2
Posted: Thu Feb 28, 2019 9:02 am
Hi everyone. I have simple problem. I try to read temperature from DS18B20 sensor. I use ubuntu 16.04 and kernel: linux 4.16 it is default image from friendly elec. I try to activate 1-wire overlay so I write:
sudo modprobe w1-gpio gpio=203
sudo modprobe w1-therm
and after lsmod command:
Module Size Used by
w1_therm 16384 0
w1_gpio 16384 0
wire 28672 2 w1_gpio,w1_therm
I also have directory /sys/bus/w1/devices/ but this folder is empty. When I worked with Rpi I must also add overlay to /boot/config.txt but this system distribution don't have any config.txt in /boot. Do you have any idea what is wrong or what else I must to do? Thank you for any tip and advice
sudo modprobe w1-gpio gpio=203
sudo modprobe w1-therm
and after lsmod command:
Module Size Used by
w1_therm 16384 0
w1_gpio 16384 0
wire 28672 2 w1_gpio,w1_therm
I also have directory /sys/bus/w1/devices/ but this folder is empty. When I worked with Rpi I must also add overlay to /boot/config.txt but this system distribution don't have any config.txt in /boot. Do you have any idea what is wrong or what else I must to do? Thank you for any tip and advice
