1-Wire DS2482-800 RPi AdapterSetting up a 2022 Raspberry Pi 3B or Pi 4 for 1-wire Temperature Measurement
I use several 1-wire temperature probes (DS18B20) to measure a few things in my home set-up, mainly my central heating and solar hot water panels. I have them connected on an old Raspberry Pi 3 with an old version of Raspbian that I use as a remote Domoticz node. Recently I updated the main house Pi for a Raspberry Pi3B with the aim to update it again in the near future to a Raspberry Pi 4 but even in 2022, these are extremely rare to buy and even if you can, they cost a little too much, so I’ll wait.
However, to get 1-wire installed onto an original Raspberry Pi took all sorts of messing around with Fuse, modprobe and loading extra modules. Once that was done, you then installed OWFS to present the connected 1-wire probes automagically to the Raspberry Pi’s file system.
If you search for adding 1-wire to a Raspberry Pi today (2022), most of the blurb Google presents to you will drect you down this old road and you will end up adding configurations onto your Pi that are now unnecessary. What I aim to do is to direct you to the simplest way to get your 1-wire measurements working without all unnecessary guff installed.
What is 1-Wire?
One wire is great! It’s not truely 1-wire, basically, is a common serial bus with a supply line and a data line. Most commonly it uses these three wires although I’ve seen the +ve phantom supply present on the data line where a simple resistor at the sensor powers itself by the data line; however there are usually 3 distinct connections.
The nice thing about 1-wire is that you simply connect your sensors in parallel and magically they all appear as separate measurements, this is because they are uniquely assigned addresses during manufacture. Your application just assigns the relavent address to the relavent sensor, easy.
A Simple 1-Wire Interface Card
Sheepwalk Electronics in the UK produce a few varieties of cards for the Raspberry Pi and are very good.
This is Amazing Stuff
Thanks and you can use it easily with Domoticz too.