<?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[Connecting temp sensor DS18B20 direct to A grove port - 5V supply vs 3.3v logic]]></title><description><![CDATA[<p dir="auto">Hi guys</p>
<p dir="auto">I would like to use ubiquitous DS18B20 temp sensors (dallas 1-wire) connecting directly to the M5stack core or M5 stickC core I2C port</p>
<p dir="auto">Sensor works perfectly with power supply ranging from 3 to 5.5v,  on the grove I2C connector I can use 5V power but the SCL/SDA lines (will use one to read the sensor)  connected to the ESP32 are 3.3v logic</p>
<p dir="auto">Any ideas on how to manage such a situation in general? How to manage 3.3v external logic with 5V power supply from the expansion port ?</p>
<p dir="auto">possible option I see..<br />
-partition resistor<br />
-clamp diode (TVS, Zener)<br />
-level shifter<br />
-3.3v LDO on the external circuit</p>
<p dir="auto">any suggestion is appreciated<br />
br<br />
Davide</p>
]]></description><link>https://community.m5stack.com/topic/5658/connecting-temp-sensor-ds18b20-direct-to-a-grove-port-5v-supply-vs-3-3v-logic</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 05:07:31 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/5658.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 21 Sep 2023 08:59:50 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Connecting temp sensor DS18B20 direct to A grove port - 5V supply vs 3.3v logic on Thu, 21 Sep 2023 12:56:24 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/arzaman" aria-label="Profile: arzaman">@<bdi>arzaman</bdi></a>, Sorry to answer with a question, but I just want to check I've understood.</p>
<p dir="auto">You want to accommodate the 5V supply into this sensor and associated 5V? logic output from it down to the 3V3 input of StickC, Core2, etc?</p>
<p dir="auto">A couple of thoughts:<br />
#1 StickC has a 3V pin out on the end opposite Groove port, so I guess you could go from the head end of the StickC to sensor (reduce all to 3V3).</p>
<p dir="auto">#2 Copy the voltage divider circuit a lot of the M5Stack sensors use (they are quite cheap, so you could even use one as a donor and solder your sensor on to it).<br />
<a href="https://docs.m5stack.com/en/unit/dual_button" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.m5stack.com/en/unit/dual_button</a></p>
<p dir="auto">#3 I've a feeling Seeed, DFRobot, Waveshare do a mini board to do such a thing, but probably equivalent to donor M5Stack part.</p>
<p dir="auto">If you used the M5Stack Mini Dual Button Unit as a donor/connection board. I suppose you could have two inputs, pin 32 and pin 33, hide the pull up resistors, etc. Or the Proto units, perhaps an easier solder at home proposition.</p>
<p dir="auto">Q) If it "can be powered from data line. Power supply range is 3.0V to 5.5V", would 5V power issue go away anyway?<br />
<a href="https://shop.pimoroni.com/products/temperature-probe-ds18b20-arduino-compatible-adapter?variant=39365415829587" target="_blank" rel="noopener noreferrer nofollow ugc">https://shop.pimoroni.com/products/temperature-probe-ds18b20-arduino-compatible-adapter?variant=39365415829587</a><br />
(NB Alt schemtic for circuit)</p>
]]></description><link>https://community.m5stack.com/post/22286</link><guid isPermaLink="true">https://community.m5stack.com/post/22286</guid><dc:creator><![CDATA[gavin67890]]></dc:creator><pubDate>Thu, 21 Sep 2023 12:56:24 GMT</pubDate></item></channel></rss>