Jump to content

Recommended Posts

Posted
Armbianmonitor:

Hello!

 

How to enable 1-Wire Dallas?

I tried this:

vi /boot/armbianEnv.txt

-----------------------------------------------------

overlays=w1-gpio
param_w1_pin=PA10
param_w1_pin_int_pullup=1

-----------------------------------------------------

Then I saw /sys/bus/w1/devices

   00-400000000000 -> ../../../devices/w1_bus_master1/00-400000000000/
   00-800000000000 -> ../../../devices/w1_bus_master1/00-800000000000/
   w1_bus_master1 -> ../../../devices/w1_bus_master1/

But there was not data.

 

I tried this:

vi /etc/modules

-----------------------------------------------------

g_serial
w1-sunxi
w1-gpio
w1-therm

-----------------------------------------------------

..and I even saw this:

   lsmod | grep w1
      w1_therm               16384  0
      w1_gpio                16384  0
      wire                   28672  2 w1_gpio,w1_therm

 

But with no effect.

 

May you help to understand what's wrong?

 

Kind regards,

Ellad

Posted
4 hours ago, eyatsko said:

vi /etc/modules

-----------------------------------------------------

g_serial
w1-sunxi
w1-gpio
w1-therm

Don't load modules via /etc/modules, it is short-circuit the DT loader, the overlay will take care of loading with proper pin settings.

 

4 hours ago, eyatsko said:

00-400000000000 -> ../../../devices/w1_bus_master1/00-400000000000/

Usually, getting such strange device number is either using the wrong pin or not having a strong enough pullup, maybe try to use external 4K7 pullup instead of "param_w1_pin_int_pullup=1"

Posted

Hello Martin!

 

First of all, I'd like to thank you! You were absolutely right about 4K7.

But now I have another problem: may you explain why 2 certain Thermometers of 6 disaplears sometimes, and I should reboot by power cycle my Orange board.

Sometimes they come back accidentally.  Two certain Dallas-es. Are they broken? And is there way to reset 1-Wire by CLI in Armbian?

 

Kind regards,

Ellad

Posted
8 minutes ago, eyatsko said:

why 2 certain Thermometers of 6 disaplears sometimes

Are they always the same 2 ones ?

You can try to lower even more the pullup, maybe to 3K3 ...

Posted

@eyatsko

What is the total cable length for your 6 sensors ? Do you use CAT5 / CAT6 ?

 

5 or 6 years ago, I tried to add 4 sensors in each of my first floor rooms (in the ceiling) -> 4 * 4 = 16 DS18B20 but it was way too much cable length (even with cat5) to have a consistent sensor read. I often had only 8 or 9 sensor available (and sometimes to whole bus disappeared). I tried lowering the pullup, it helped. I tried replacing my only pullup with 3 (and even 4) 15k (distributed along the cable) : it also helped but it was never perfect.

 

Finally I ended up with 4 buses of 4 sensors using 4 pins and it was flawless.

 

Less interesting for you but now I have a single ESP8266 for each room with a some i2c sensors (SI7021, ...). All my DS18B20 were donated or binned.

 

Hope this helps

Posted

Hello friends!

 

The length of the whole line is approximately 60 cm. I use 6 sensors at all. When they all are online, they are read perfect.

OrangePI --6cm-- (4K7) --15cm-- [ba81] --8cm-- [4035] --9cm-- [c554] --10cm-- [5c11] --9cm-- [bbff] --9cm-- [55d9]      all are present

OrangePI --6cm-- (4k7) --15cm-- [        ] --8cm-- [4035] --9cm-- [        ] --10cm-- [5c11] --9cm-- [bbff] --9cm-- [55d9]      two are abscent

This always repeats. 6, then 4. then 6, then again 4, again 6.

 

Do you think 3K3 will correct the situation?

 

Kind regards,

Ellad

Posted

It seems I got it... :-( I soldered with flux. I washed it no clean and it shortened Dallas pins.

Simply, isn't it..

 

Kind regards,

Ellad

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines