Jump to content

Recommended Posts

Posted
5 hours ago, mantouboji said:

After upgrade to Ubuntu 18.04,I can’t read my two DS18B20 devices for weeks.

Are you using w1-gpio overlay ? Are you defining the param_w1_pin parameter properly (without it, default is PD14 pin) ?

Posted
22 hours ago, martinayotte said:

Are you using w1-gpio overlay ? Are you defining the param_w1_pin parameter properly (without it, default is PD14 pin) ?

 

I used its config for a long time. It works very well in 16.04 .

 

overlays=pps-gpio uart1 usbhost0 w1-gpio
param_w1_pin=PA10
#param_w1_pin_int_pullup=1
param_pps_pin=PA7

 

now:

 

11月 17 20:35:03 opione2 kernel: w1_master_driver w1_bus_master1: Attaching one wire slave 80.d2c000430010 crc fb
11月 17 20:35:03 opione2 kernel: w1_master_driver w1_bus_master1: Family 80 for 80.d2c000430010.fb is not registered.
11月 17 20:35:18 opione2 kernel: w1_master_driver w1_bus_master1: Attaching one wire slave 80.32c000430010 crc 12
11月 17 20:35:18 opione2 kernel: w1_master_driver w1_bus_master1: Family 80 for 80.32c000430010.12 is not registered.
1

 

 

 

Posted
53 minutes ago, mantouboji said:

#param_w1_pin_int_pullup=1

Why the pullup is commented out ? Do you have an external one ?

 

53 minutes ago, mantouboji said:

Family 80 for 80.d2c000430010.fb is not registered.

 

This doesn't come from Armbian patches, maybe a bug have been introduced upstream ...

On my side, my DS18B20 is registering properly on my OPi_2E under 4.19.2 :

 

[   20.168937] w1_master_driver w1_bus_master1: Attaching one wire slave 28.000005a2fac5 crc ea

 

Posted
16 hours ago, martinayotte said:

Why the pullup is commented out ? Do you have an external one ?

 

whether commented or not, no any difference. 

 

I use a 5.1K pullup external.

 

16 hours ago, martinayotte said:

 

This doesn't come from Armbian patches, maybe a bug have been introduced upstream ...

On my side, my DS18B20 is registering properly on my OPi_2E under 4.19.2 :

 


[   20.168937] w1_master_driver w1_bus_master1: Attaching one wire slave 28.000005a2fac5 crc ea

 

 

 

Welcome to ARMBIAN 5.61 user-built Ubuntu 18.04.1 LTS 4.14.72-sunxi

 

Posted

Hi,

 

would anyone have a recommendation for an I2C temperature sensor working with OrangePi Zero?
I thought of I2C because it should be pretty straightforward, but if you ever have another setup that works flawlessly, I'm all ears.

Posted (edited)

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.

Edited by Zamana
Posted
3 hours ago, Zamana said:

overlays=usbhost2 usbhost3 w1-gpio

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.

Posted
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!

Posted

Hello,

I know that this is about Armbian but maybe someone can help me anyway. The orangepi forum doesn't seem to accept new registrations ...

 

I try to activate one wire communication with my Orange Pi One with kernel version 5.3.5+. I use the Debian image.

I just want to read out a DS18B20 sensor.

 

I modified the /boot/orangepiEnv.txt as descibed in http://linux-sunxi.org/1-Wire and above
with this items:

 

---

root@OrangePi:~# cat /boot/orangepiEnv.txt
verbosity=1
logo=disabled
console=both
disp_mode=1920x1080p60
overlay_prefix=sun8i-h3

 

overlays=w1-gpio usbhost0
param_w1_pin=PA10
param_w1_pin_int_pullup=0

---

 

If I make "ls /sys/bus/w1/devices/" there is no w1 directory.

where is the mistake? Does debian not support w1?

 

Greetings Axel

Posted
47 minutes ago, ahermann86 said:

5.3.5+

 

47 minutes ago, ahermann86 said:

/boot/orangepiEnv.txt

You are not using Armbian. This bugtracker is only for boards running Armbian. You should state your question at OrangePi forums.

Posted
Am 31.10.2020 um 14:26 schrieb martinayotte:

Those settings should be in /boot/armbianEnv.txt using an Armbian image ...

Hello, yes, that's how I understood it.

I thought that Debian also works....

 

If it makes sense, I'll switch to armbian.

Is armbian the better choice for hardware-related applications?

Posted

Hello,

 

I have set up my system again. Now I am using armbian 5.8.5-sunxi.

Now 1 wire also works, as described...

 

Thanks for pointing out that I noticed that the image I used before is not longer maintained ...

 

Greetings

Axel

Posted
On 9/19/2021 at 11:30 AM, Satyr said:

So, nobody knows ?

 

The DT overlay isn't written to support multiple buses ...

But, again, why do you need more than one bus, since OneWire support multiple devices on the same bus ?

Posted
On 9/24/2021 at 5:05 PM, martinayotte said:

 

The DT overlay isn't written to support multiple buses ...

But, again, why do you need more than one bus, since OneWire support multiple devices on the same bus ?

To respond on your question - I have 50x DS18B20 on breadboard with OPiZ (don't ask why). Out of these 50, max 24 works at the same time. If I connect more  to the bus they randomly drop out and/or give false readings.

I would also like to know how to configure more than one w1 bus.

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines