Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
en:automation:02-glossary:1wire-hidden [2021/04/28 14:18] avsetula [1-Wire bus on Unipi devices] |
en:automation:02-glossary:1wire-hidden [2023/09/06 12:36] avsetula |
||
---|---|---|---|
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 (DATA, GND) are used. 1-Wire sensors from the Unipi product range use four conductors (Vcc, DATA_0, DATA_1, GND) for better reliability and enhanced serialisation options. | + | 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, {{:files:data_0.png?nolink&15|}}1W, {{:files:data_1.png?nolink&15|}}1W, GND) for better reliability and enhanced serialisation options. |
- | 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 single bus can be up to 200 m long with up to 15 sensors connected at once. Each sensor is also provided with its own HW address for its addressing on the bus. | + | 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. Up to 15 sensors can be connected to the bus, OR a distance of up to 200 m from the controller can be reached (with a lower number of sensors). Each sensor is also provided with its own HW address for its addressing on the bus. |
===== 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 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: | ||
{{ :cs:hw:rj45-pinout_1-wire.png?direct&400 |}} | {{ :cs:hw:rj45-pinout_1-wire.png?direct&400 |}} | ||
- | A total of 4 wires is used. However, the connector description above has 6 wires connected, as the Vcc 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 | | + | | 4 | VCC (+5 V⎓) | |
- | | 5 | VCC | | + | | 5 | VCC (+5 V⎓) | |
- | | 6 | DATA_0 | | + | | 6 | {{:files:data_0.png?nolink&15|}}1W (DATA_1) | |
- | | 7 | DATA_1 | | + | | 7 | {{:files:data_1.png?nolink&15|}}1W (DATA_0) | |
| 8 | GND | | | 8 | GND | | ||
Line 57: | Line 57: | ||
<WRAP center round box> | <WRAP center round box> | ||
- | **Note:** DATA_0 is the main data wire. That said, if you connect a cable sensor with only a single data wire to the RJ45 connector, always connect it to pin 6 (eg. DATA_0 pin). The DATA_1 contact is a supplemental contact of Unipi sensors designed for a maximum possible bus serialization and serves for connecting the next sensor on the bus. The Unipi 1-Wire hub can serve as an example of the double-data wire principle. If you use a non-Unipi cable sensor with only a single data wire, the above-mentioned serialization with Unipi 1-Wire hub is not possible. You can, however, connect the sensor to the end of the bus (eg. as the last sensor in the hub). | + | **Note:** {{:files:data_1.png?nolink&15|}}1W, sometimes also DATA_0, is the main data wire. That said, if you connect a cable sensor with only a single data wire to the RJ45 connector, always connect it to pin 7 (eg. {{:files:data_1.png?nolink&15|}}1W pin). The {{:files:data_0.png?nolink&15|}}1W contact, sometimes also DATA_1, is a supplemental contact of Unipi sensors designed for a maximum possible bus serialization and serves for connecting the next sensor on the bus. The Unipi 1-Wire hub can serve as an example of the double-data wire principle. If you use a non-Unipi cable sensor with only a single data wire, the above-mentioned serialization with Unipi 1-Wire hub is not possible. You can, however, connect the sensor to the end of the bus (eg. as the last sensor in the hub). |
</WRAP> | </WRAP> | ||
Line 85: | Line 85: | ||
</span></html> | </span></html> | ||
- | - cut off the RJ45 connector from the sensor, fasten ferrules onto the wires and screw them into the three-wire 1-Wire terminal on the controllers | + | - cut off the RJ45 connector from the sensor and connect to the three-wire 1-Wire terminal on the controllers |
- use a cable reduction in combination with the Unipi 1-Wire hub | - use a cable reduction in combination with the Unipi 1-Wire hub | ||
- | - use the 1-Wire splitter (3-pin terminal variant). | + | - use the 1-Wire splitter (3-pin terminal variant) |
All described methods are depicted in the schematics below. | All described methods are depicted in the schematics below. | ||
<WRAP center round info 90%> | <WRAP center round info 90%> | ||
- | 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 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. |
</WRAP> | </WRAP> | ||
Line 130: | Line 130: | ||
The basic 1-Wire temperature sensor is described above in the [[#rj45_connector_connection_for_unipi_1-wire|RJ45 connection]] chapter. | The basic 1-Wire temperature sensor is described above in the [[#rj45_connector_connection_for_unipi_1-wire|RJ45 connection]] chapter. | ||
- | ==== 1W-T/H-IB & 1W-T/H-IB2 ==== | + | ==== 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://www.unipi.technology/nastenny-teplotni-senzor-1w-t-ib2-p350|1W-T-IB2 model]]), or temperature and relative air humidity ([[https://www.unipi.technology/nastenny-teplotni-vlhkostni-senzor-1w-th-ib2-p351|1W-TH-IB2 model]]) in building interiors. Sensors are equipped with 4-wire screw or spring terminals and can be modified for RJ45 connector or for the 3-wire terminal. | + | Unipi product range also contains 1W-T/H-IB and 1W-T/H-IB2 compact on-wall sensors designed for measuring temperature ([[https://www.unipi.technology/nastenny-teplotni-senzor-1w-t-ib2-p350|1W-T-IB2 model]]), or temperature and relative air humidity ([[https://www.unipi.technology/nastenny-teplotni-vlhkostni-senzor-1w-th-ib2-p351|1W-TH-IB2 model]]) in building interiors. Furthermore, the exterior wall sensor [[https://www.unipi.technology/1-wire-temperature-sensor-outdoor-wall-mounted-p396|SD 115C]], or the sensor [[https://www.unipi.technology/1-wire-sump-temperature-sensor-with-a-head-p395|SD 125C]] for measuring the temperature of water or air in pipes or tanks. Sensors are equipped with 4-wire screw or spring terminals and can be modified for RJ45 connector or for the 3-wire terminal. |
<WRAP group> | <WRAP group> | ||
Line 146: | Line 146: | ||
;#; | ;#; | ||
<html><span class="kbBlueText">RJ45 connection</span></html> \\ | <html><span class="kbBlueText">RJ45 connection</span></html> \\ | ||
- | 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. 1W-T-IB and 1W-T-IB2 sensors can be also connected to the [[https://www.unipi.technology/unipi-extension-xg18-p331|Unipi Extension xG18 module]]. Coloured connection scheme on the picture corresponds to the T568B connection. | + | 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 can also be connected to the [[https://www.unipi.technology/unipi-extension-xg18-p331|Unipi Extension xG18 module]] with a minor wiring modification. Coloured connection scheme on the picture corresponds to the T568B connection. | ||
;#; | ;#; | ||