|
Hello,
I have a problem with an 1-wire interface. I can not make a temperature sensor (DS18B20) work.
I have an Orange Pi Zero 2 board. I installed the official image os, that is Orangepizero2_3.0.0_debian_bullseye_server_linux5.16.17.
My settings:
/boot/armbianEnv.txt
overlays=w1-gpio
param_w1_pin=PC10
/etc/modules
w1-gpio
w1-therm
lsmod command shows this:
w1_therm 28672 0
w1_gpio 16384 0
wire 40960 2 w1_gpio,w1_therm
The temperature sensor (DS18B20) is wired like this:
- ground on ground pin
- data on pin PC10 but I tried different pins with no success
- VCC on 3.3v pin
- a 4.7kohm resistor between the 3.3v and the data wire
Sensors (I have 3 pieces) work with Raspberry Pi so it's not a sensor problem.
Is there any issue with an 1-wire interface on Orange Pi Zero 2 boards? Or should I set it differently?
|
|