Jump to content

Zamana

Validating
  • Posts

    2
  • Joined

  • Last visited

Posts posted by Zamana

  1. On 10/8/2020 at 2:25 PM, martinayotte said:

    While adding w1-gpio in /boot/armbianEnv.txt, you don't need to add it in /etc/modules-load.d/modules.conf ...

    But you need to add "param_w1_pin=PD10" in /boot/armbianEnv.txt as well, otherwise it is defaulted to PD14.

     

    Hello martinayotte!

     

    Minutes after I posted my question, I found your first reply in another thread that lead me to the right path. I just don't replied here yesterday due to the limit of one post per day.

     

    Beyond this, one of the pins was wrong. With Orange Pi PC and that sensor, the correct is use 3.3V, and not 5V. So, for the red wire, PIN 1, and not 2.

     

    Now my temperature monitor system is alive and kicking!

     

    Thank you very much!

  2. Dear Sirs,

     

    I read every topic in this thread (what helped me a lot), but now I'm stucked and need more help.

     

    I did buy this sensor and I need to use it on my Orange Pi PC.

     

    After following the instructions from this site together with the instruction of this thread, I wired the 3 cables like this:

     

    sensor-wire.png

     

    RED -> 2 (5V)

    BLACK -> 6 (GND)

    YELLOW -> 35 (PA10)

     

    My files are like this:

     

    root@orangepipc:/sys/bus/w1# cat /etc/modules-load.d/modules.conf
    # /etc/modules: kernel modules to load at boot time.
    #
    # This file contains the names of kernel modules that should be loaded
    # at boot time, one per line. Lines beginning with "#" are ignored.
    w1-sunxi
    w1-gpio
    w1-therm
    #sunxi-cir
    ##xradio_wlan
    g_serial
    ##xradio_wlan

     

    root@orangepipc:/sys/bus/w1# cat /boot/armbianEnv.txt
    verbosity=1
    bootlogo=false
    console=both
    disp_mode=1920x1080p60
    overlay_prefix=sun8i-h3
    overlays=usbhost2 usbhost3 w1-gpio
    rootdev=UUID=88adacec-2194-4cfc-abc4-67cd6ef7fdf4
    rootfstype=ext4
    usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u

     

    root@orangepipc:/sys/bus/w1/devices/w1_bus_master1# cat /etc/default/cpufrequtils
    ENABLE=true
    MIN_SPEED=480000
    MAX_SPEED=1200000
    GOVERNOR=interactive

     

    The loaded modules are these:

     

    root@orangepipc:/sys/bus/w1# lsmod
    Module                  Size  Used by
    rfkill                 20480  1
    snd_soc_hdmi_codec     20480  1
    sch_fq_codel           20480  2
    dw_hdmi_i2s_audio      16384  0
    dw_hdmi_cec            16384  0
    sunxi_cir              20480  0
    lima                   45056  0
    sun4i_gpadc_iio        16384  0
    gpu_sched              28672  1 lima
    industrialio           53248  1 sun4i_gpadc_iio
    usb_f_acm              20480  1
    sun8i_thermal          16384  0
    u_serial               24576  1 usb_f_acm
    g_serial               16384  0
    sun8i_ce               24576  0
    libcomposite           45056  2 g_serial,usb_f_acm
    sunxi_cedrus           32768  0
    sun8i_di               20480  0
    crypto_engine          16384  1 sun8i_ce
    evdev                  20480  1
    uio_pdrv_genirq        16384  0
    display_connector      20480  0
    uio                    16384  1 uio_pdrv_genirq
    cpufreq_dt             20480  0
    zram                   24576  2
    w1_therm               24576  0
    w1_gpio                16384  0
    wire                   32768  2 w1_gpio,w1_therm
    cn                     16384  1 wire
    ip_tables              24576  0
    x_tables               24576  1 ip_tables
    autofs4                36864  2
    sy8106a_regulator      16384  1
    sunxi                  20480  0
    phy_generic            20480  2 sunxi
    gpio_keys              20480  0

     

    dmesg:

     

    root@orangepipc:~# dmesg | grep -i wire
    [    6.506017] Driver for 1-wire Dallas network protocol.
    [    6.523698] gpio-110 (onewire@0): enforced open drain please flag it properly in DT/ACPI DSDT/board file
    (...)
    [ 1232.791932] w1_master_driver w1_bus_master1: Family 0 for 00.980000000000.d3 is not registered.
    [ 1278.638733] w1_master_driver w1_bus_master1: Attaching one wire slave 00.580000000000 crc 19
    [ 1278.650463] w1_master_driver w1_bus_master1: Family 0 for 00.580000000000.19 is not registered.
    [ 1326.305393] w1_master_driver w1_bus_master1: Attaching one wire slave 00.d80000000000 crc 95
    [ 1326.316126] w1_master_driver w1_bus_master1: Family 0 for 00.d80000000000.95 is not registered.
    [ 1350.471284] w1_master_driver w1_bus_master1: Attaching one wire slave 00.380000000000 crc 7c
    [ 1350.481274] w1_master_driver w1_bus_master1: Family 0 for 00.380000000000.7c is not registered.
    [ 1396.431767] w1_master_driver w1_bus_master1: Attaching one wire slave 00.b80000000000 crc f0
    [ 1396.439186] w1_master_driver w1_bus_master1: Family 0 for 00.b80000000000.f0 is not registered.

     

    It seems that I have 2 sensors:

     

    root@orangepipc:~# cat /sys/devices/w1_bus_master1/w1_master_slave_count
    2

     

    But it seems that I don't have any files where to read the data... Example:

     

    root@orangepipc:/sys/bus/w1/devices/w1_bus_master1# tree -L 10
    .
    ├── 00-200000000000
    │   ├── driver -> ../../../bus/w1/drivers/w1_slave_driver
    │   ├── id
    │   ├── name
    │   ├── power
    │   │   ├── autosuspend_delay_ms
    │   │   ├── control
    │   │   ├── runtime_active_time
    │   │   ├── runtime_status
    │   │   └── runtime_suspended_time
    │   ├── rw
    │   ├── subsystem -> ../../../bus/w1
    │   └── uevent
    ├── 00-a00000000000
    │   ├── driver -> ../../../bus/w1/drivers/w1_slave_driver
    │   ├── id
    │   ├── name
    │   ├── power
    │   │   ├── autosuspend_delay_ms
    │   │   ├── control
    │   │   ├── runtime_active_time
    │   │   ├── runtime_status
    │   │   └── runtime_suspended_time
    │   ├── rw
    │   ├── subsystem -> ../../../bus/w1
    │   └── uevent
    ├── driver -> ../../bus/w1/drivers/w1_master_driver
    ├── power
    │   ├── autosuspend_delay_ms
    │   ├── control
    │   ├── runtime_active_time
    │   ├── runtime_status
    │   └── runtime_suspended_time
    ├── subsystem -> ../../bus/w1
    ├── uevent
    ├── w1_master_add
    ├── w1_master_attempts
    ├── w1_master_max_slave_count
    ├── w1_master_name
    ├── w1_master_pointer
    ├── w1_master_pullup
    ├── w1_master_remove
    ├── w1_master_search
    ├── w1_master_slave_count
    ├── w1_master_slaves
    ├── w1_master_timeout
    └── w1_master_timeout_us
    
    11 directories, 36 files

     

    That's my system:

     

      ___  ____  _   ____   ____
     / _ \|  _ \(_) |  _ \ / ___|
    | | | | |_) | | | |_) | |
    | |_| |  __/| | |  __/| |___
     \___/|_|   |_| |_|    \____|
    
    Welcome to Armbian 20.08.7 Focal with Linux 5.8.13-sunxi
    
    System load:   8%               Up time:       6 min
    Memory usage:  8% of 998M       IP:            192.168.0.69
    CPU temp:      45°C             Usage of /:    14% of 7.2G
    
    [ General system configuration (beta): armbian-config ]
    

     

    Does anybody knows what I'm doing wrong?

     

    Any help is appreciated.


    Thanks.

    Regards.

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines