# Third Temp Probe Port not working on emonPi2

**URL:** <https://community.openenergymonitor.org/t/third-temp-probe-port-not-working-on-emonpi2/26268>\
**Category:** Emoncms\
**Tags:** hardware, temperature\
**Created:** [8 June 2024 20:14 UTC](https://community.openenergymonitor.org/t/third-temp-probe-port-not-working-on-emonpi2/26268 "2024-06-08T20:14:39Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![grod55](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/grod55/32/26153_2.png) [@grod55](https://community.openenergymonitor.org/u/grod55)\
**Post date:** [8 June 2024 20:14 UTC](https://community.openenergymonitor.org/t/third-temp-probe-port-not-working-on-emonpi2/26268/1 "2024-06-08T20:14:40Z")

</div>

I was testing today and the third port (circled below) does not register the temperature probe. I have tried different probes and emonPi2s, and it does not register on any.

 ![image](https://community.openenergymonitor.org/uploads/default/original/3X/f/5/f57529b955e59430a3628ce4508e50e498b675c5.jpeg)

 ![image](https://community.openenergymonitor.org/uploads/default/original/3X/0/9/09fa464490907ce46c0bbf586a5feaa8c7a9f827.png)

Further, I tried manually adding the Probe ID in emonHub, but it still does not appear in the inputs screen.

 ![image](https://community.openenergymonitor.org/uploads/default/original/3X/8/3/83eb3dcec01c0711c53d0b7efdf479cf28adb1be.png)

Is there a setting somewhere that activates the 3rd port?

---

<div class="post-metadata">

**Author:** ![rupert](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/r/f14d63/32.png) [@rupert](https://community.openenergymonitor.org/u/rupert)\
**Post date:** [8 June 2024 21:36 UTC](https://community.openenergymonitor.org/t/third-temp-probe-port-not-working-on-emonpi2/26268/2 "2024-06-08T21:36:40Z")

</div>

See  
[https://docs.openenergymonitor.org/emonpi2/other\_sensors.html#](https://docs.openenergymonitor.org/emonpi2/other_sensors.html#)

The third terminal block is connected to the ANALOG\_INPUT on the AVR128DB48 measurement board microcontroller, and from the above link -

Update 14th May 2024: When running the latest emonPi2 single phase or three phase firmware, pulse counting is attached to the analog input as standard which leaves the other terminals for easier connection of multiple temperature sensors.

If you need more than two DS18B20 temperature sensors, the above link also says -

Temperature sensing is handled by the RaspberryPi directly rather than the measurement board microcontroller. This removes the hard limit on the number of temperature sensors that can be connected to the bus and allows sensor addresses to appear directly on the Emoncms inputs page. It also improves the accuracy of the electricity monitoring as the measurement board is freed up to focus soley on this task.  
DS18B20 temperature sensors are connected via the labelled pluggable terminal blocks (multiple sensors can be connected to each temperature input, e.g using a 6x sensor breakout board)

Hope this helps

---

<div class="post-metadata">

**Author:** ![TrystanLea](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/trystanlea/32/31_2.png) [@TrystanLea](https://community.openenergymonitor.org/u/TrystanLea)\
**Post date:** [8 June 2024 21:55 UTC](https://community.openenergymonitor.org/t/third-temp-probe-port-not-working-on-emonpi2/26268/3 "2024-06-08T21:55:22Z")

</div>

Thanks @rupert that is correct. The 3rd temperature sensor needs to double up on one of the other temperature inputs. On the emonTx4 it was possible to map temperature sensors to all three ports but this was restricted to the two labelled temperature ports on the emonPi2, if I can remember to keep the PCB routing simple and as you can add multiple sensors on the other temperature terminals anyway.

---

<div class="post-metadata">

**Author:** ![rupert](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/r/f14d63/32.png) [@rupert](https://community.openenergymonitor.org/u/rupert)\
**Post date:** [8 June 2024 22:11 UTC](https://community.openenergymonitor.org/t/third-temp-probe-port-not-working-on-emonpi2/26268/4 "2024-06-08T22:11:41Z")

</div>

@TrystanLea

Thanks for the confirmation.

The emonPi2 documentation is however a little ambiguous - e.g.

Under the Temperature Sensor heading:  
Pluggable terminal block connections are:  
GND (black), DATA (yellow), 3.3V (red), left to right, repeated for each of the **three** blocks

- implying that all three terminal blocks are used for temperature?

and under the Analog Input Section:

It’s possible to link analog input AIN19 (CT12) to right-most terminal block as shown here.

- Isn’t AIN19 (CT12) hard wired to CN3?

---

<div class="post-metadata">

**Author:** ![TrystanLea](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/trystanlea/32/31_2.png) [@TrystanLea](https://community.openenergymonitor.org/u/TrystanLea)\
**Post date:** [8 June 2024 22:13 UTC](https://community.openenergymonitor.org/t/third-temp-probe-port-not-working-on-emonpi2/26268/5 "2024-06-08T22:13:25Z")

</div>

Ah I’ll get that fixed! Good spot. I based the emonpi2 documentation on what I wrote for the emontx4. Looks like I missed that one!

---

<div class="post-metadata">

**Author:** ![rupert](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/r/f14d63/32.png) [@rupert](https://community.openenergymonitor.org/u/rupert)\
**Post date:** [8 June 2024 22:17 UTC](https://community.openenergymonitor.org/t/third-temp-probe-port-not-working-on-emonpi2/26268/6 "2024-06-08T22:17:06Z")

</div>

I think the two ambiguities are also present in the emonTx5 documentation - sorry!

---

<div class="post-metadata">

**Author:** ![rupert](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/r/f14d63/32.png) [@rupert](https://community.openenergymonitor.org/u/rupert)\
**Post date:** [9 June 2024 10:22 UTC](https://community.openenergymonitor.org/t/third-temp-probe-port-not-working-on-emonpi2/26268/7 "2024-06-09T10:22:49Z")

</div>

For more information on temperature measurement, see  
[https://docs.openenergymonitor.org/electricity-monitoring/temperature/DS18B20-temperature-sensing.html](https://docs.openenergymonitor.org/electricity-monitoring/temperature/DS18B20-temperature-sensing.html)  
From the link above:

_Multiple sensors can be connected to the same data bus. Each sensor identifies itself by a unique serial number._

From the link below:  
[https://docs.openenergymonitor.org/emonpi2/other\_sensors.html#temperature-sensing](https://docs.openenergymonitor.org/emonpi2/other_sensors.html#temperature-sensing)  
and using the photo below, which shows one sensor per terminal block -

 ![image](https://community.openenergymonitor.org/uploads/default/original/3X/5/b/5b17fec66902ddb36f8cd80e6269210f2023783f.jpeg)

If you need to connect two DS18B20s to one terminal block -  
You would put  
two black leads in the left connection of the terminal block  
two yellow leads in the middle connection of the terminal block  
two red leads in the right connection of the terminal block

Hope this helps

---

<div class="post-metadata">

**Author:** ![TrystanLea](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/trystanlea/32/31_2.png) [@TrystanLea](https://community.openenergymonitor.org/u/TrystanLea)\
**Post date:** [9 June 2024 11:40 UTC](https://community.openenergymonitor.org/t/third-temp-probe-port-not-working-on-emonpi2/26268/8 "2024-06-09T11:40:34Z")

</div>

Perfectly described thanks @rupert

---

<div class="post-metadata">

**Author:** ![grod55](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/grod55/32/26153_2.png) [@grod55](https://community.openenergymonitor.org/u/grod55)\
**Post date:** [9 June 2024 13:51 UTC](https://community.openenergymonitor.org/t/third-temp-probe-port-not-working-on-emonpi2/26268/9 "2024-06-09T13:51:37Z")

</div>

@rupert @TrystanLea Thank you both for the explanation - this helps quite a bit, and in most of my installations, two probes are sufficient.

One thing that added to my confusion, is the default in emonHub showing 3 temperature probe IDs and 3 names. So, naturally, I assumed this referred to the three ports on the emonPi2.

If I need more than two temperature probes in the future I could double up the probes per terminal block as suggested, or I could use this breakout board and add the IDs to emonHub as I normally would - correct?  
[![image](https://community.openenergymonitor.org/uploads/default/original/3X/3/0/30ff39ec57f90dd92291450812c3a0504846b132.png)](https://shop.openenergymonitor.com/terminal-block-breakout-for-ds18b20/)

thanks for the help.

Gordon

---

<div class="post-metadata">

**Author:** ![Robert.Wall](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/robert.wall/32/38246_2.png) [@Robert.Wall](https://community.openenergymonitor.org/u/Robert.Wall)\
**Post date:** [9 June 2024 14:59 UTC](https://community.openenergymonitor.org/t/third-temp-probe-port-not-working-on-emonpi2/26268/10 "2024-06-09T14:59:54Z")

</div>

> [@grod55](#):
>
> If I need more than two temperature probes in the future I could double up the probes per terminal block as suggested, or I could use this breakout board and add the IDs to emonHub as I normally would - correct?

The three wires to the temperature probe make up the “One-wire bus” (ok, one active wire that carries the _signal_, and two for the power). Data to and from the probe or probes is sent encoded in pulses, so you can have any sensible number of sensors connected on the bus, and using just one socket on the emonPi. The bus controller – in this case the Pi – can talk to them collectively (“Take a temperature reading”) or individually (“Send me the last temperature you measured”).

It needs to know the serial number of each sensor to address it individually – this is where numbers like “28-00008ee9b6d9” come in.

---

<div class="post-metadata">

**Author:** ![rupert](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/r/f14d63/32.png) [@rupert](https://community.openenergymonitor.org/u/rupert)\
**Post date:** [9 June 2024 15:07 UTC](https://community.openenergymonitor.org/t/third-temp-probe-port-not-working-on-emonpi2/26268/11 "2024-06-09T15:07:26Z")

</div>

@grod55  
Happy to help!  
Just one thing - I don’t have a emonPi2 so I can’t look at emonHub or try things out - I’m going by the documentation (see links in previous posts) …

The docs say that  
_We have tested up to 6 temperature sensors connected at once, the one-wire bus should however support more than this. There is a useful discussion on how many sensors can be supported on a single RaspberryPi GPIO input [here](https://raspberrypi.stackexchange.com/questions/23701/what-is-the-maximum-number-of-ds18b20-probes-that-can-attached-to-one-input-port)._

**Short answer** - yes you can use the _Terminal Block Breakout for DS18B20_ with the emonPi2; I don’t know if the IDs would need to be added manually to the emonHub cofiguration or whether they would automatically be added.

**Long answer** -

Just a bit of background explanation first which may be helpful (or perhaps confusing!):

Earlier models e.g. the emonPi1 and emonTx3 did not have terminal blocks for the Temperature, Pulse and Analog inputs. Instead a RJ45 connector was used. The _Terminal Block Breakout for DS18B20_ would be connected to the emonPi1 / emonTx3 with a RJ45 cable, and the DS18B20 sensors wired to the terminal blocks. The board just separately parallels up each of the three sensor connections (GND, DATA, +V) with the appropriate pin on the the RJ45 connectors. The emonPi1 / emonTx3 used 5V to power the DS18B20 sensors, as they can work at either 5v and 3.3V

The emonPi2 and emonTx5 onwards uses the RJ45 connector for the AC reference voltage and 5V power - it does **not** have any sensor connections. The sensor connections are on the terminal blocks.

To use the _Terminal Block Breakout for DS18B20_ with an emonPi2 / emonTx5 you would put three wires (just wires, **not** a sensor) in a emonPi2 / emonTx5 terminal block as follows:

a black lead (GND) in the left connection of the terminal block  
a yellow lead (DATA) in the middle connection of the terminal block  
a red lead (+3.3V) in the right connection of the terminal block

these wires would be then connected to one set of three terminals on the _Terminal Block Breakout for DS18B20_ as follows:

black lead (GND) to GND  
yellow lead (DATA) to 1-W (one wire)  
red lead (+3.3V) to +5V

up to five DS18B20 sensors can then be connected to the 5 remaining sets of three terminals on the _Terminal Block Breakout for DS18B20_ as follows:

black lead (GND) to GND  
yellow lead (DATA) to 1-W (one wire)  
red lead (+3.3V) to +5V

If more than five DS18B20 sensors are needed, a second _Terminal Block Breakout for DS18B20_ can be daisy-chained to to first one with a RJ45 to RJ45 lead.

Hope all this makes sense! If not please ask!

---

<div class="post-metadata">

**Author:** ![grod55](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/grod55/32/26153_2.png) [@grod55](https://community.openenergymonitor.org/u/grod55)\
**Post date:** [9 June 2024 16:00 UTC](https://community.openenergymonitor.org/t/third-temp-probe-port-not-working-on-emonpi2/26268/12 "2024-06-09T16:00:01Z")

</div>

@rupert thank you so much for taking the time to explain all this. This is very helpful. The learning never stops and I love the opportunity!

Best regards,

Gordon

---

<div class="post-metadata">

**Author:** ![RichardinCancale](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/r/df705f/32.png) [@RichardinCancale](https://community.openenergymonitor.org/u/RichardinCancale)\
**Post date:** [12 June 2024 10:57 UTC](https://community.openenergymonitor.org/t/third-temp-probe-port-not-working-on-emonpi2/26268/13 "2024-06-12T10:57:31Z")

</div>

Hi there - I have an emonpi2 with two DS18B20 probes mounted about 12 metres away to collect flow and return temperatures from my heat pump. Wired one on to each of the two inputs just as shown in the photo above.

If I added two further DS18B20 sensors (to log interior and exterior temperatures) would the emonpi2 pick up their addresses automatically so they would just ‘appear’ in the list of inputs - I know on the Arduino you can just probe the one-wire bus and ask ‘who’s there?’ - or would I need to explicitly code their addresses somewhere?

Thanks!

---

<div class="post-metadata">

**Author:** ![rupert](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/r/f14d63/32.png) [@rupert](https://community.openenergymonitor.org/u/rupert)\
**Post date:** [12 June 2024 11:51 UTC](https://community.openenergymonitor.org/t/third-temp-probe-port-not-working-on-emonpi2/26268/14 "2024-06-12T11:51:26Z")

</div>

@RichardinCancale

As I said,

> [@rupert](#):
>
> Just one thing - I don’t have a emonPi2 so I can’t look at emonHub or try things out - I’m going by the documentation (see links in previous posts) …

In the shop entry for the emonPi2 at:

> **[emonPi2: 6-Channel Energy Monitor](https://shop.openenergymonitor.com/emonpi2-6-channel-energy-monitor/)**
>
> Open-source hardware tools for energy monitoring and visualisation

it says:

_The emonPi2 has full DS18B20 temperature sensing support. Temperature sensing is handled by the RaspberryPi directly._  
_Temperature sensors can be connected to 2x 3-pin pluggable terminal blocks, while there is not a specific limit on the number of sensors that can be connected we have tested up to 6 sensors at any one time._

So I am guessing that it should automatically work!

Perhaps @TrystanLea can confirm this?

**Note:**  
I see that you have two 12 metre cables to the DS18B20s.  
The sensor cable lengths and topology may also affect the operation of the DS18B20 sensors.  
For more information see  
[https://docs.openenergymonitor.org/electricity-monitoring/temperature/index.html](https://docs.openenergymonitor.org/electricity-monitoring/temperature/index.html)

---

<div class="post-metadata">

**Author:** ![RichardinCancale](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/r/df705f/32.png) [@RichardinCancale](https://community.openenergymonitor.org/u/RichardinCancale)\
**Post date:** [12 June 2024 12:16 UTC](https://community.openenergymonitor.org/t/third-temp-probe-port-not-working-on-emonpi2/26268/15 "2024-06-12T12:16:37Z")

</div>

Thanks Rupert, I have a few of these sensors around from Arduino projects - I’ll just give it a try.

I did see the warnings about cable lengths etc. for the one-wire bus. In this case I used two separate twisted pair cables - even though 95% of the route is common and could have just used different pairs - in order to minimise the chance of cross-talk causing problems. Not had a single missed reading in the months I’ve had it installed.

---

<div class="post-metadata">

**Author:** ![TrystanLea](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/trystanlea/32/31_2.png) [@TrystanLea](https://community.openenergymonitor.org/u/TrystanLea)\
**Post date:** [12 June 2024 14:03 UTC](https://community.openenergymonitor.org/t/third-temp-probe-port-not-working-on-emonpi2/26268/16 "2024-06-12T14:03:35Z")

</div>

> [@rupert](#):
>
> So I am guessing that it should automatically work!

Yes they show up automatically on the input page with the sensor unique ID as soon as they are connected. No need to restart or configure anything.

---

<div class="post-metadata">

**Author:** ![rupert](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/r/f14d63/32.png) [@rupert](https://community.openenergymonitor.org/u/rupert)\
**Post date:** [12 June 2024 15:48 UTC](https://community.openenergymonitor.org/t/third-temp-probe-port-not-working-on-emonpi2/26268/17 "2024-06-12T15:48:13Z")

</div>

Thanks very much Trystan

---

<div class="post-metadata">

**Author:** ![RichardinCancale](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/r/df705f/32.png) [@RichardinCancale](https://community.openenergymonitor.org/u/RichardinCancale)\
**Post date:** [14 June 2024 13:21 UTC](https://community.openenergymonitor.org/t/third-temp-probe-port-not-working-on-emonpi2/26268/18 "2024-06-14T13:21:11Z")

</div>

Hi there - I just found my pack of temperature sensors in my big pile of stuff and tried it - works automagically as you predicted. I did a shutdown and power down before altering the wiring, added the sensor in parallel with an existing one and on restart it showed up fine.

Now to do the hard part of actually routing some cables for permanent installation!

Thanks!

---

<div class="post-metadata">

**Author:** ![rupert](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/r/f14d63/32.png) [@rupert](https://community.openenergymonitor.org/u/rupert)\
**Post date:** [14 June 2024 14:01 UTC](https://community.openenergymonitor.org/t/third-temp-probe-port-not-working-on-emonpi2/26268/19 "2024-06-14T14:01:25Z")

</div>

👍 Thanks for the update - happy to hear it all worked.
