<?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[Connect DS18B20 to Grove Port A?]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">has anyone been able to connect a 1 wire ds18b20 waterproof temperature sensor to the m5stack grove connector A?<br />
I see a + and a - port, and an SDA and an SCL port. Can either of those be used to one wire connections? And how would I do that in code?</p>
<p dir="auto">Thank you so much!</p>
<p dir="auto">Christian</p>
]]></description><link>https://community.m5stack.com/topic/3286/connect-ds18b20-to-grove-port-a</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 06:43:29 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/3286.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 17 May 2021 10:35:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Connect DS18B20 to Grove Port A? on Wed, 23 Jun 2021 14:38:52 GMT]]></title><description><![CDATA[<p dir="auto">I am happy to read that the post was helpful.<br />
Which changes did you apply to make it work?</p>
]]></description><link>https://community.m5stack.com/post/14194</link><guid isPermaLink="true">https://community.m5stack.com/post/14194</guid><dc:creator><![CDATA[grelm]]></dc:creator><pubDate>Wed, 23 Jun 2021 14:38:52 GMT</pubDate></item><item><title><![CDATA[Reply to Connect DS18B20 to Grove Port A? on Wed, 23 Jun 2021 13:56:27 GMT]]></title><description><![CDATA[<p dir="auto">All right, to answer my own post :<br />
This post helped a lot :<br />
<a href="https://community.m5stack.com/topic/1086/problem-when-connecting-more-than-3-ds18b20-temperature-sensors-solved/6">https://community.m5stack.com/topic/1086/problem-when-connecting-more-than-3-ds18b20-temperature-sensors-solved/6</a></p>
<p dir="auto">And XX is 21.</p>
<p dir="auto"><img src="/assets/uploads/files/1624456574477-index-resized.jpg" alt="0_1624456572701_index.jpg" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.m5stack.com/post/14191</link><guid isPermaLink="true">https://community.m5stack.com/post/14191</guid><dc:creator><![CDATA[critter]]></dc:creator><pubDate>Wed, 23 Jun 2021 13:56:27 GMT</pubDate></item><item><title><![CDATA[Reply to Connect DS18B20 to Grove Port A? on Wed, 23 Jun 2021 11:55:37 GMT]]></title><description><![CDATA[<p dir="auto">I've connected a DS1820 waterproof sensor to the Grove / Port A of the M5basic</p>
<p dir="auto">GND=black<br />
VCC=red<br />
SDA=yellow</p>
<p dir="auto">My code is :</p>
<p dir="auto">#include &lt;M5Stack.h&gt;<br />
#include &lt;OneWire.h&gt;<br />
#include &lt;DallasTemperature.h&gt;</p>
<p dir="auto">#define ONE_WIRE_BUS XX<br />
OneWire oneWire(ONE_WIRE_BUS);<br />
DallasTemperature sensors(&amp;oneWire);</p>
<p dir="auto">void setup(){</p>
<p dir="auto">M5.begin();<br />
M5.Power.begin();</p>
<p dir="auto">M5.Lcd.print("onewire temp test");<br />
}</p>
<p dir="auto">void loop() {<br />
sensors.requestTemperatures();<br />
String text = String(sensors.getTempCByIndex(0),2)+"C";<br />
M5.Lcd.println(text);<br />
delay(800);<br />
M5.Lcd.println("test");<br />
}</p>
<p dir="auto">for XX, I've tried port 21,22,32,33 and a few other I read rumours about. No success to read the temperature so far. Any clue?</p>
]]></description><link>https://community.m5stack.com/post/14187</link><guid isPermaLink="true">https://community.m5stack.com/post/14187</guid><dc:creator><![CDATA[critter]]></dc:creator><pubDate>Wed, 23 Jun 2021 11:55:37 GMT</pubDate></item><item><title><![CDATA[Reply to Connect DS18B20 to Grove Port A? on Mon, 17 May 2021 18:00:54 GMT]]></title><description><![CDATA[<p dir="auto">I made custom block for uiflow for do this. But i implemented use only one sensor per gpio pin without checking crc errors (shorter and simplicity code).</p>
<p dir="auto"><a href="https://github.com/stonatm/UiFlow-custom-blocks/tree/master/ds18b20" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/stonatm/UiFlow-custom-blocks/tree/master/ds18b20</a></p>
<p dir="auto">and here is python code used in this custom block:</p>
<p dir="auto"><a href="https://github.com/stonatm/M5Atom_matrix_library/blob/master/lib/dallas.py" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/stonatm/M5Atom_matrix_library/blob/master/lib/dallas.py</a></p>
<p dir="auto">Try connect sensor to SDA pin in groove port, but you must find a number of gpio pin assigned for this line.<br />
You also should connect a pullup resistor (2-10kohm) betwen sensor DQ pin and sensor Vcc. In my case i use ds18b20 without this resistor, but my connection to sensor is shorter than 10cm.</p>
]]></description><link>https://community.m5stack.com/post/13806</link><guid isPermaLink="true">https://community.m5stack.com/post/13806</guid><dc:creator><![CDATA[robalstona]]></dc:creator><pubDate>Mon, 17 May 2021 18:00:54 GMT</pubDate></item></channel></rss>