GPIO 1-Wire Temp sensors on Raspberry Pi with openHABian

Hi,

I have CAT5 Cables in my whole house. 3 loops in each floor. The length of each floor is about 20m.
Is that a problem for the raspberrypi ? should I take the 3,3V from external ?
or is for that kind of project the raspberry pi not possible?
Thanks,
Klaus

I have ā€œonlyā€ simple wiring over ā€œbell wiresā€ for my sensors. in total they’re about 40-50m long.
I connected them to a DS9490R - 1-Wire USB Adapter. Works fine since 8+ years.

Though it says, they’re not intended for new designs… :wink:

https://www.maximintegrated.com/en/products/interface/controllers-expanders/DS2490.html

It’s EOL, but if you find one, I’ll think it still works. Don’t know, if a Raspberry Pi without it can uphold the voltage and doesn’t take damage over a long period. I think I read something about it years ago as I tried to implement onewire. I switched from directly GPIO to the USB-bridge for that reason - AFAIR…

Thanks for your reply! Do you use your USB Stick on the raspberrypi to connect and transfer data to openhab? is that made the same way as using a gpio port ?
trying to find a seller for DS2490R adapter… :wink:
Thanks

No, as you then have a USB-bridge, there’s no such thing as GPIO anymore.

have a look here:

you basically have to install the onewire-stuff from openHABian menu 28 - then you can configure the onewire binding for using the owserver functionality.

Sorry for the very delayed response to this.

The short answer is that binding didn’t exist when I wrote this. The original onewire binding was dependent on owserver, which in turn was written to be connected to physical onewire network via serial or USB ports. Early on I messed around with creating virtual serial ports for owserver but settled on the RPi native onewire support via GPIO.

I would say that the onewire-gpio-binding you linked to would probably replace this entire process and script, however it does state it is specifically for RPi 3. I would hope as long as you set the proper hardware GPIO pin for the interface it shouldn’t matter, but I don’t know and haven’t tested the new binding yet with my hardware. Openhab 3 won’t even run on my RPi 1 or zeros that are currently running the onewire network for my real-world application.

@binderth I’m not sure what you mean…there DEFINITELY still is GPIO…

Of course, there’s GPIO. But you don’t need it or better can’t use it, if you connect your 1-wire devices to the USB-Hub.

I think, you got confused! :wink:
There is a onewire-gpio-binding, but then you have to connect your devices to GPIO on the underlying Raspberry Pi.
What I linked is the onewire-binding, which needs an owserver running - which you can easily start on the same machine using menu 28 on openHABian. And there you can use the USB-hub easily.

Respectfully, you are confused: look at my post, I was replying to @brianlay. He posted to the onewire-gpio-binding for raspberry pi.

Yes, the binding you posted relies on owserver which uses a serial port or usb. Read the title of this thread…the whole point was to connect the onewire network of sensors directly to a raspberry pi using the GPIO pins and the native support for onewire. You introduced your setup which uses a USB adapter and is completely unrelated to this, other than you also happen to be using onewire sensors. I would agree that it makes way more sense for you to use the other binding.

Respectfully, you are confused: look at my post, I was replying to @brianlay. He posted to the onewire-gpio-binding for raspberry pi.

Yes, the binding you posted relies on owserver which uses a serial port or usb. Read the title of this thread…the whole point was to connect the onewire network of sensors directly to a raspberry pi using the GPIO pins and the native support for onewire. You introduced your setup which uses a USB adapter and is completely unrelated to this, other than you also happen to be using onewire sensors. I would agree that it makes way more sense for you to use the other binding.

If I knew how to archive this post, I would! :laughing:

I’m not sure how relevant it is 6 years later, given the changes to openhab, bindings, etc.