please choosego to mobile | Continue to access the PC version
View: 760|Reply: 0

Orange Pi Zero 2: 1-wire does't work. Temperature sensor DS18B20

[Copy link]

1

threads

1

posts

29

credits

Novice

Rank: 1

credits
29
Published in 2022-6-15 04:24:18 | Show all floors |Read mode
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?

You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list