IC2 - DS18B20 - temperature sensors

Hi there!

I tried to add two temperature sensors via the one-wire plugin.

Unfortunately I am not able to add the IC2 interface with the parameters --i2c=ALL:ALL

Do I need to specify something else?

Both the sensors are recognized by the system because I have two directories in the /sys/bus/w1/devices directory with the right temperature.

Hope someone has a solution, because I need the sensors to make decisions based on it for my Koi pond.

Regards,

André

I must admit that I haven’t done anything with the one wire stuff yet, even tho I do have a bunch of such temperature sensors here. Maybe @bernhard.trinnes has some hints as he’s the author of the one-wire plugin. Otherwise I’ll see if I can get mine going and report back within the next days.

1 Like

The One wire plugin uses i2c, so I need to connect the 18B20 sensors to an i2c board instead of directly connect the 1 wire to the GPIO4 port.

Will get me one board and play around with that. Maybe some extra documentation clarifies it better.

Regards,

André

Hi Foenky,

it seems you have the one wire kernel module enabled.
The init argument --i2c=ALL:ALL tells owfs to look for 1-wire bus master
devices on each i2c interface.

In your case the init argument “–w1” should be all you need, so owfs takes the kernel module instead (not yet tested).

Bernhard

1 Like

Hi Bernhard,

And now the parameter is tested :wink:

All the sensors are there and working.

Thanks a lot!

André

2 Likes