Temperature monitoring with Dallas DS18B20 sensors and Domoticz

From CommonsLab
Revision as of 17:14, 25 July 2017 by Jann (talk | contribs) (connector/cable colors)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Sensors

We use the DS18B20 sensors, pre-mounted into a waterproof flange from the BrewPi project. These have RJ11 (6P4C) connectors pre-crimped, which we replace with the more common RJ45 (8P8C) connectors and extend the cable with a standard CAT5e FTP (or STP) cable. The connections are similar to the the common T568B color coding and the follow the 802.3af (Power Over Ethernet / POE) with respect to the DC +/- colors.

Sensor Pinouts

802.3af Standards A and B from the power sourcing equipment perspective
Pins at switch T568B color 10/100 mode B,
DC on spares
RJ45 connector (8p8c) RJ11 connector (6p4c) DS18B20
flange-cable color
Pin 1 Pair 2 Tip
White/orange stripe
Rx + not connected empty (no contact)
Pin 2 Pair 2 Ring
Orange solid
Rx − not connected not connected
Pin 3 Pair 3 Tip
White/green stripe
Tx + DATA Vdd (+3.0V — +5.5V) Pair 2 Ring
Red
Pin 4 Pair 1 Ring
Blue solid
DC + +3.3V GND (-) Pair 2 Ring
Black
Pin 5 Pair 1 Tip
White/blue stripe
DC + +3.3V DQ (DATA) Pair 2 Ring
White
Pin 6 Pair 3 Ring
Green solid
Tx − GND (- for data) empty (no contact)
Pin 7 Pair 4 Tip
White/brown stripe
DC − DC - (for power)
Pin 8 Pair 4 Ring
Brown solid
DC − DC - (for power)