<?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[Ultrasonic I2C problems]]></title><description><![CDATA[<p dir="auto">I have a problem with the I2C version of the Ultrasonic distance measuring unit. If I connect it together with the MLX90640 Thermal Camera Unit the Camera data is corrupted. If I load and run the Demo and only connect the Ultrasonic distance measuring unit every other sample has the distance 4500mm. If I use this code it works fine in the demo but still corrupts the Thermal camera</p>
<p dir="auto">uint32_t data;<br />
Wire.beginTransmission(0x57);                                                                      // Transfer data to 0x57.<br />
Wire.write(0x01);<br />
Wire.endTransmission();                                                                            // Stop data transmission with the Ultrasonic Unit.<br />
delay(120);<br />
Wire.requestFrom(0x57,3);                                                                          // Request 3 bytes from Ultrasonic Unit.<br />
data  = Wire.read();data &lt;&lt;= 8;<br />
data |= Wire.read();data &lt;&lt;= 8;<br />
data |= Wire.read();</p>
]]></description><link>https://community.m5stack.com/topic/4255/ultrasonic-i2c-problems</link><generator>RSS for Node</generator><lastBuildDate>Thu, 30 Apr 2026 06:20:55 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/4255.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 29 Apr 2022 18:02:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Ultrasonic I2C problems on Sat, 19 Nov 2022 21:11:08 GMT]]></title><description><![CDATA[<p dir="auto">It seems if I set the i2c rate to 100Khz this works.</p>
]]></description><link>https://community.m5stack.com/post/19336</link><guid isPermaLink="true">https://community.m5stack.com/post/19336</guid><dc:creator><![CDATA[ispybadguys]]></dc:creator><pubDate>Sat, 19 Nov 2022 21:11:08 GMT</pubDate></item></channel></rss>