<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Problem when connecting more than 3 DS18B20 temperature sensors! - solved!]]></title><description><![CDATA[<p dir="auto">Hi!<br />
M5STACK-FIRE with 3 DS18B20 1-Wire-Temperature-Sensors connected to Grove B connector (GPIO26) and appropriate Software works perfect and the software reads and displays the 3 temperatures.<br />
As soon as I connect 1 additional sensor to the 3 sensors, the software does not detect any of the sensors.<br />
I have a total of 5 sensors and all of them are ok. It does not matter which 3 of the 5 sensors are used, everything works fine, as long as I don't connect an additional sensor.<br />
Each sensor has a 1 meter cable and yes, the 4,7 kohm resistor is installed between data-wire and +5V (from Grove B connector).<br />
Measured with a oscilloscope:</p>
<ul>
<li>the +5V voltage stays constant at +5V</li>
<li>the data-line switches between 0V and 3,8V (3 sensors connected and system works)</li>
<li>the data-line switches to 0V (for 480 microseconds) <strong>and than to 2,0V</strong> (4 sensors connected and system does not work)</li>
</ul>
<p dir="auto">Is there anything I have to take care of to use more than 3 DS18B20 on a 1-wire-bus?<br />
Would it help, if the value of the pull-up resistor ist reduced? What is the minimum allowed value?</p>
]]></description><link>https://community.m5stack.com/topic/1086/problem-when-connecting-more-than-3-ds18b20-temperature-sensors-solved</link><generator>RSS for Node</generator><lastBuildDate>Tue, 17 Mar 2026 06:33:10 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/1086.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 16 Jun 2019 09:01:28 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem when connecting more than 3 DS18B20 temperature sensors! - solved! on Tue, 12 Oct 2021 08:47:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/11391">@saiaman01</a> What exactly do you want to know or see?<br />
May be the two pictures are of help to you.<br />
Or do you need a schematic or any explanation?</p>
<p dir="auto">Picture 1<br />
<img src="/assets/uploads/files/1634028169530-m5stack-fire-ds18b20-connection-grove-s-1-resized.jpg" alt="0_1634028165581_M5Stack Fire - DS18B20 Connection Grove s (1).jpg" class=" img-fluid img-markdown" /></p>
<p dir="auto">Picture 2<br />
<img src="/assets/uploads/files/1634028182974-m5stack-fire-ds18b20-connection-grove-s-2-resized.jpg" alt="0_1634028180286_M5Stack Fire - DS18B20 Connection Grove s (2).jpg" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.m5stack.com/post/15105</link><guid isPermaLink="true">https://community.m5stack.com/post/15105</guid><dc:creator><![CDATA[grelm]]></dc:creator><pubDate>Tue, 12 Oct 2021 08:47:43 GMT</pubDate></item><item><title><![CDATA[Reply to Problem when connecting more than 3 DS18B20 temperature sensors! - solved! on Mon, 11 Oct 2021 08:14:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/1539">@grelm</a> Hello can you show how you have connected ds18b20 to jack and jack to grove please ?</p>
]]></description><link>https://community.m5stack.com/post/15093</link><guid isPermaLink="true">https://community.m5stack.com/post/15093</guid><dc:creator><![CDATA[saiaman01]]></dc:creator><pubDate>Mon, 11 Oct 2021 08:14:51 GMT</pubDate></item><item><title><![CDATA[Reply to Problem when connecting more than 3 DS18B20 temperature sensors! - solved! on Wed, 19 Jun 2019 08:05:00 GMT]]></title><description><![CDATA[<p dir="auto"><strong>Measuremnts of supply-voltage and signal-shape:</strong></p>
<ul>
<li>Voltage of +5V-line: +5,07 V at Grove-connector and at end of 20m-cable = ok = no voltage drop (measured with DMM)</li>
<li>Signal-shape of 1-wire-signal-line: see attached photo below = ok, but seee comments in photo (measured with oscilloscope Sony/Tektronix 335)</li>
</ul>
<p dir="auto"><img src="/assets/uploads/files/1560931392966-1-wire-signal_20m_2019-06-19_s-resized.jpg" alt="0_1560931390809_1-wire-signal_20m_2019-06-19_s.jpg" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.m5stack.com/post/4665</link><guid isPermaLink="true">https://community.m5stack.com/post/4665</guid><dc:creator><![CDATA[grelm]]></dc:creator><pubDate>Wed, 19 Jun 2019 08:05:00 GMT</pubDate></item><item><title><![CDATA[Reply to Problem when connecting more than 3 DS18B20 temperature sensors! - solved! on Tue, 18 Jun 2019 17:34:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/1539">@grelm</a> Check the volt drop on each end of the cable. When I connected my shed lights to the solar panels it was something I had to check.</p>
<p dir="auto">Nice work so far, any chance of some photo's?</p>
]]></description><link>https://community.m5stack.com/post/4660</link><guid isPermaLink="true">https://community.m5stack.com/post/4660</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Tue, 18 Jun 2019 17:34:12 GMT</pubDate></item><item><title><![CDATA[Reply to Problem when connecting more than 3 DS18B20 temperature sensors! - solved! on Tue, 18 Jun 2019 16:33:30 GMT]]></title><description><![CDATA[<p dir="auto"><strong>FYI: Update on hardware configuration, 2019-06-18:</strong><br />
There is now a 20 meter long cable between the M5stack (Grove B) and the 5 DS18B20 (each with 1 meter cable).<br />
The software still works fine as before: it detects all 5 sensores and displays the temperature values on the M5Stick Lcd.</p>
<p dir="auto">NB: The used cable is a YM-L3G 0,75mm2 installation cable. I know, it is much to massive for the signal current, but it is easier and more robust for later installation.</p>
]]></description><link>https://community.m5stack.com/post/4658</link><guid isPermaLink="true">https://community.m5stack.com/post/4658</guid><dc:creator><![CDATA[grelm]]></dc:creator><pubDate>Tue, 18 Jun 2019 16:33:30 GMT</pubDate></item><item><title><![CDATA[Reply to Problem when connecting more than 3 DS18B20 temperature sensors! - solved! on Tue, 18 Jun 2019 16:21:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/443">@ajb2k3</a> Sorry, up to now I do not know how to to create a "github" and a "project" - I will need to do some "learning" on that.</p>
<p dir="auto">In the meantime I am giving you some information in this forum:</p>
<p dir="auto">The planned project:<br />
<strong>Logging of data of the house heating system for "years"</strong> for diagnostical and statistical purposes</p>
<p dir="auto">Functions needed in detail:</p>
<ul>
<li>measuring of about 10 temprature sensors, environmant data, oil burner run time, +++</li>
<li>getting date and time from webserver via WLAN</li>
<li>use buttons for start/stop of measurement, single measurement, +++</li>
<li>show actual data on Lcd of M5Stack and monitor (if connected)</li>
<li>write all data to SD-card</li>
<li>use LED's of M5Stack-Fire for heartbeat, measurement in progress, waiting for next measurement slot, WLAN connection, +++</li>
<li>optional: sending data to PC via WLAN to import them into Excel for analysis (or transfering the data from SD-card to PC via a card-reader)</li>
<li>optional:Webserver for live-data and SD-card-data</li>
<li>+++, tbd</li>
</ul>
<p dir="auto">... puh..., I fear, this will be long way to go (at least for me...).</p>
<p dir="auto">The software (up to now, this is all I have so far - I wanted to start with testing and building up some experiences of using the DS18B20 sensors connected to a M5Stack-Fire):</p>
<p dir="auto"><img src="/assets/uploads/files/1560694025048-ds18b20-test-2019-06-16-vs-resized.jpg" alt="0_1560694018093_DS18B20 test 2019-06-16 vs.jpg" class=" img-fluid img-markdown" /></p>
<pre><code>/*
 * Software for basic tests of temperature measurement on M5Stack-FIRE with several DS18B20 temperature sensors
 * 1-wire-pull-up resistor = 2 kohm  (did not not work with 4,7 kohm !!!!
 * modified by GRELM; 2019-06-16
 */

  #include &lt;M5Stack.h&gt;
  #include &lt;OneWire.h&gt;
  #include &lt;DallasTemperature.h&gt;

  #define ONE_WIRE_BUS 26  //DS18B20 on Grove B corresponds to GPIO26 on ESP32

  OneWire oneWire(ONE_WIRE_BUS);
  DallasTemperature DS18B20(&amp;oneWire);

/*  Resolution of DS18B20 temperatur measurement = power-on-default = 12 bit = 0.0625 C
   *9-bit resolution --&gt; 93.75 ms
   *10-bit resolution --&gt; 187.5 ms
   *11-bit resolution --&gt; 375 ms
   *12-bit resolution --&gt; 750 ms
*/ 
  String monitorstring = "";  

  void setup() {
    M5.begin();
    M5.Lcd.setTextColor(TFT_WHITE,TFT_BLACK);  
    M5.Lcd.setTextSize(2);
    M5.Lcd.clear();  //just to make sure...

    Serial.println(); // to separate data from booting output
    monitorstring = "Date;Time;A;B;C;D;E;F;G;H;I;J;"; // up to 10 data-colums fpr up to 10 sensors
    Serial.println(monitorstring);  // Monitor Headline for Excel Headline
  }
  
  void loop() {
    float celsius;
    float fahrenheit;

    monitorstring = "Date;Time";  // change to realtime date and time of M5Stack (later)
    
    DS18B20.begin();
    int count = DS18B20.getDS18Count();  //check for number of connected sensors

//    M5.Lcd.clear();    //clearing causes flickering of Lcd-display, looks nicer without
    M5.Lcd.setCursor(0,0);
    M5.Lcd.print("Devices found: ");
    M5.Lcd.print(count);
    M5.Lcd.println(" DS18B20");

    if (count &gt; 0) {
    DS18B20.requestTemperatures();
    for (int i=0; i &lt; count; i++) {
      String m5stackstring = "Sensor ";
 
      celsius = DS18B20.getTempCByIndex(i);

      m5stackstring = m5stackstring + String(i) + String(": ") + String(celsius,4) + String(" C     ");  
      M5.Lcd.println(m5stackstring);  // 1 line per sensor on M5Stack Lcd
    
      monitorstring = monitorstring + String(";") + String(celsius,4);  // ";" is Excel compatibel separator
 
    }
    Serial.println(monitorstring);  // 1 line for all measurements on serial monitor
    }
    delay(500); //Measuremnt interval
  }</code></pre>
]]></description><link>https://community.m5stack.com/post/4650</link><guid isPermaLink="true">https://community.m5stack.com/post/4650</guid><dc:creator><![CDATA[grelm]]></dc:creator><pubDate>Tue, 18 Jun 2019 16:21:25 GMT</pubDate></item><item><title><![CDATA[Reply to Problem when connecting more than 3 DS18B20 temperature sensors! - solved! on Sun, 16 Jun 2019 10:11:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/1539">@grelm</a> Please do.<br />
Can you create a github and upload pictures and code to it?<br />
Can you also create a project to share your progress as I am now curious as to what your project is doing.</p>
]]></description><link>https://community.m5stack.com/post/4643</link><guid isPermaLink="true">https://community.m5stack.com/post/4643</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Sun, 16 Jun 2019 10:11:14 GMT</pubDate></item><item><title><![CDATA[Reply to Problem when connecting more than 3 DS18B20 temperature sensors! - solved! on Sun, 16 Jun 2019 10:07:09 GMT]]></title><description><![CDATA[<p dir="auto">After reading thru data sheets and application notes I took the risk and use a <strong>2 kohm resistor</strong> instead of a 4, 7kohm resistor (as almost everywhere recommendd).<br />
<strong>Now all 5 DS18B20 are detectable and readable by the software.</strong><br />
By the way:  signal low level &lt;= 0,2V, signal high level =&gt; 3,5 V, signal slopes are much "nicer".<br />
I will now continue with my project: total of 10 x DS18B20 and cable length of about 10 and 20 meters.<br />
I will keep you informed of the results.</p>
]]></description><link>https://community.m5stack.com/post/4642</link><guid isPermaLink="true">https://community.m5stack.com/post/4642</guid><dc:creator><![CDATA[grelm]]></dc:creator><pubDate>Sun, 16 Jun 2019 10:07:09 GMT</pubDate></item><item><title><![CDATA[Reply to Problem when connecting more than 3 DS18B20 temperature sensors! - solved! on Sun, 16 Jun 2019 09:27:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/1539">@grelm</a> I don't think anyone here knows the answer to this question as I think that you are the only one testing them. Have you tried asking on the suppliers community?<br />
If you solve this problem, please come back and let us know the solution.</p>
<p dir="auto">Please and Thank you<br />
AJB2K3.</p>
]]></description><link>https://community.m5stack.com/post/4641</link><guid isPermaLink="true">https://community.m5stack.com/post/4641</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Sun, 16 Jun 2019 09:27:45 GMT</pubDate></item></channel></rss>