Raspberry Pi 1-Wire Plugin
The Raspberry Pi GPIO Plugin is designed to work with DS18B20 temperature sensors connected to the GPIO4 input
Settings on Raspberry Pi
For the plugin to work, you must log in to the Raspberry Pi over SSH and in the terminal do the following:
1. Edit file config.txt:
Add a line to the end of the file to enable the 1Wire protocol for 4 pins GPIO
2. Add additional modules:
w1-gpio (supports 1Wire protocol via GPIO ports) and
w1-therm (DS18B20 temperature sensor support module).
3. Reboot Raspberry Pi
Press the button to call up the channel list and select “Channel list”:
In the list of channels you will see a list of connected 1-Wire sensors.
Attention: If the channel list is empty, then there are no sensors connected.
To bind a channel (sensor) to a virtual device of the system:
- double click to open the channel properties window
- select a device from the list of available system devices
By default, the system substitutes the formula:
A number comes from the 1-Wire sensor. For example, 25375.
Divide by 100: (25375/100 = 253.75)
Round to integer: Math.round(value/100).
We get: 254
Divide by 10: (254/10 = 25.4)
As a result, from the channel we get the number 25.4