Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:automation:02-glossary:1wire-hidden [2021/04/29 08:08] – [1-Wire bus on Unipi devices] avsetula | en:automation:02-glossary:1wire-hidden [2025/04/28 16:18] (current) – [Creating a multi-hub extensive network of 1-Wire sensors] updated wrap ofojt | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== 1-Wire ====== | ====== 1-Wire ====== | ||
| - | 1-Wire is a name for a communication bus designed by Dallas Semiconductor company, that is designed for the low-speed transmission of digital signals. As the name suggests 1-Wire sensors can theoretically use only a single conductor for both power voltage and data. The negative pole can be grounded. In practice, however, at least two conductors are used -> 1W/DATA and GND. 1-Wire sensors from the Unipi product range use four conductors (VCC, {{: | + | 1-Wire is a name for a communication bus designed by Dallas Semiconductor company, that is designed for the low-speed transmission of digital signals. As the name suggests 1-Wire sensors can theoretically use only a single conductor for both power voltage and data. The negative pole can be grounded. In practice, however, at least two conductors are used -> 1W (DATA) and GND. 1-Wire sensors from the Unipi product range use four conductors (VCC, {{: |
| - | A distinct advantage of the 1-Wire bus is the low component price; thermometers available at Unipi e-shop are offered from approx. €10 apiece. | + | A distinct advantage of the 1-Wire bus is the low component price; thermometers available at Unipi e-shop are offered from approx. € 10 apiece. |
| ===== 1-Wire temperature sensor ===== | ===== 1-Wire temperature sensor ===== | ||
| Line 8: | Line 8: | ||
| The DS18B20 is widely used 1-Wire temperature sensor placed within TO-92 casing. | The DS18B20 is widely used 1-Wire temperature sensor placed within TO-92 casing. | ||
| - | * power voltage range: 3.0V - 5.5V | + | * power voltage range: 3.0-5.5 V⎓ |
| - | * measurement range: -55°C/+125°C | + | * measurement range: -55 °C / +125 °C |
| - | * accuracy ±0,5°C in the range of -10°C/+85°C | + | * accuracy ±0,5°C in the range of -10 °C / +85 °C |
| * conversion of 12-bit temperature value to a digital signal (750 ms max. latency) | * conversion of 12-bit temperature value to a digital signal (750 ms max. latency) | ||
| - | * can be powered by the 1W/DATA wire (parasite mode) | + | * can be powered by the 1W (DATA) wire - parasite mode |
| ===== 1-Wire devices offered by Unipi ===== | ===== 1-Wire devices offered by Unipi ===== | ||
| Line 41: | Line 41: | ||
| {{ : | {{ : | ||
| - | A total of 4 wires is used. However, the connector description above has 6 wires connected, as the VCC (or +5V) and GND voltage conductors can be doubled (depicted by white streaks in the picture). As some devices were not designed for a dual power supply we need to connect the pins 5 and 8 (basic colours) first. | + | A total of 4 wires is used. However, the connector description above has 6 wires connected, as the VCC (or +5 V⎓) and GND voltage conductors can be doubled (depicted by white streaks in the picture). As some devices were not designed for a dual power supply we need to connect the pins 5 and 8 (basic colours) first. |
| ^ Pin (contact) number ^ Meaning ^ | ^ Pin (contact) number ^ Meaning ^ | ||
| | 1, 2 | unused | | | 1, 2 | unused | | ||
| | 3 | GND | | | 3 | GND | | ||
| - | | 4 | VCC (+5V) | | + | | 4 | VCC (+5 V⎓) | |
| - | | 5 | VCC (+5V) | | + | | 5 | VCC (+5 V⎓) | |
| - | | 6 | {{: | + | | 6 | {{: |
| - | | 7 | {{: | + | | 7 | {{: |
| | 8 | GND | | | 8 | GND | | ||
| Line 57: | Line 57: | ||
| <WRAP center round box> | <WRAP center round box> | ||
| - | **Note:** {{:files:data_0.png? | + | **Note:** {{:files:data_1.png? |
| </ | </ | ||
| - | + | < | |
| - | <WRAP center round info 90%> | + | {{ : |
| + | <WRAP half column 13%> | ||
| + | {{ : | ||
| + | </ | ||
| + | <WRAP half column 83%> | ||
| + | **Note:** \\ | ||
| The Unipi [[https:// | The Unipi [[https:// | ||
| + | </ | ||
| </ | </ | ||
| Line 91: | Line 97: | ||
| All described methods are depicted in the schematics below. | All described methods are depicted in the schematics below. | ||
| - | <WRAP center round info 90%> | + | < |
| + | {{ : | ||
| + | <WRAP half column 13%> | ||
| + | {{ : | ||
| + | </ | ||
| + | <WRAP half column 83%> | ||
| + | **Note:** \\ | ||
| The sensor features a 4-wire connection to improve the reliability of branched networks. However, it is possible to modify it for 3-wire connection by joining 1W (DATA) wires if needed. | The sensor features a 4-wire connection to improve the reliability of branched networks. However, it is possible to modify it for 3-wire connection by joining 1W (DATA) wires if needed. | ||
| You can also short-circuit VCC and GND wires to run the sensor in parasite mode with communication through two wires. | You can also short-circuit VCC and GND wires to run the sensor in parasite mode with communication through two wires. | ||
| + | </ | ||
| </ | </ | ||
| Line 113: | Line 126: | ||
| A compact | A compact | ||
| - | <WRAP center round important 90%> | + | < |
| + | {{ : | ||
| + | <WRAP half column 13%> | ||
| + | {{ : | ||
| + | </ | ||
| + | <WRAP half column 83%> | ||
| + | **Attention: | ||
| It is necessary to follow the correct port order when connecting devices to the hub! Port 1 must be always used as an input port, the remaining ports must not be skipped; otherwise, any devices connected after the skipped port would be cut off from the 1-Wire bus. | It is necessary to follow the correct port order when connecting devices to the hub! Port 1 must be always used as an input port, the remaining ports must not be skipped; otherwise, any devices connected after the skipped port would be cut off from the 1-Wire bus. | ||
| </ | </ | ||
| + | </ | ||
| + | |||
| {{: | {{: | ||
| Line 121: | Line 142: | ||
| It is possible to create a chain of multiple hubs if an extensive network of 1-Wire sensors or devices is needed. When interconnecting two hubs the topology stays the same - Port 1 serves as an input while the output is located on the last port in order. | It is possible to create a chain of multiple hubs if an extensive network of 1-Wire sensors or devices is needed. When interconnecting two hubs the topology stays the same - Port 1 serves as an input while the output is located on the last port in order. | ||
| - | <WRAP center round important 90%> | + | < |
| + | {{ : | ||
| + | <WRAP half column 13%> | ||
| + | {{ : | ||
| + | </ | ||
| + | <WRAP half column 83%> | ||
| + | **Attention: | ||
| Any other 1-Wire device connected after the output port will be cut off from the bus! | Any other 1-Wire device connected after the output port will be cut off from the bus! | ||
| - | |||
| </ | </ | ||
| + | </ | ||
| + | |||
| {{: | {{: | ||
| Line 130: | Line 158: | ||
| The basic 1-Wire temperature sensor is described above in the [[# | The basic 1-Wire temperature sensor is described above in the [[# | ||
| - | ==== 1W-T/ | + | ==== 1W-T/H-IB, 1W-T/H-IB2, SD 115C & SD 125C ==== |
| - | Unipi product range also contains 1W-T/H-IB and 1W-T/H-IB2 compact on-wall sensors designed for measuring temperature ([[https:// | + | Unipi product range also contains 1W-T/H-IB and 1W-T/H-IB2 compact on-wall sensors designed for measuring temperature ([[https:// |
| <WRAP group> | <WRAP group> | ||
| Line 146: | Line 174: | ||
| ;#; | ;#; | ||
| < | < | ||
| - | Connection to RJ45-connector network cable is useful for star-shaped network topologies created from 1-Wire hubs. You can also use it to connect the sensor to Unipi 1.1 extension board, or to the older variants of Unipi Neuron controllers. | + | Connection to RJ45-connector network cable is useful for star-shaped network topologies created from 1-Wire hubs. You can also use it to connect the sensor to Unipi 1.1 extension board, or to the older variants of Unipi Neuron controllers. |
| + | All sensors with the DS18b20 chip and parasite power support | ||
| ;#; | ;#; | ||