Jump to content

TRay

Members
  • Posts

    44
  • Joined

  • Last visited

Community Answers

  1. TRay's post in OrangePiZero 3 and w1-gpio for DS18B20 was marked as the answer   
    I used simple dts file as possible :
     
    /dts-v1/; /plugin/; / { model = "OrangePi Zero3"; compatible = "xunlong,orangepi-zero3", "allwinner,sun50i-h618"; fragment@0 { target-path = "/"; __overlay__ { w1: onewire@0 { compatible = "w1-gpio"; pinctrl-names = "default"; gpios = <&pio 2 7 0>; status = "okay"; }; }; }; };  
    compiled:
     
    armbian-add-overlay w1-gpio.dts
     
    and works  🙂 with armbianEnv.txt
     
    user_overlays=w1-gpio
    param_w1_pin=PC10
    param_w1_pin_int_pullup=0
     
    demsg show
     
    [    5.015541] Driver for 1-wire Dallas network protocol.
    [    5.019754] gpio-74 (onewire@0): enforced open drain please flag it properly in DT/ACPI DSDT/board file
    [    5.046831] w1_master_driver w1_bus_master1: Attaching one wire slave 28.03165129ecff crc 24
     
    and
    cat /sys//bus/w1/devices/28-03165129ecff/w1_slave

    76 01 4b 46 7f ff 0c 10 d3 : crc=d3 YES
    76 01 4b 46 7f ff 0c 10 d3 t=23375

     
    SBC DS18B20 VCC (3V3) Pin 1 ---------- VCC DS18B20 | R1 = 4k7 | GPIO74 Pin 26 --------- Data DS18B20 GND Pin 6 ---------- GND DS18B20  
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines