<?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 Distance Unit (RCWL-9600)]]></title><description><![CDATA[<p dir="auto">Hello!<br />
Does anybody know what speed of sound (or rather speed of sound at what temperature) is used by Ultrasonic Distance Unit (RCWL-9600) to calculate the distance? May be somebody can translate the following notice on that from Chinese?<img src="https://shopee.tw/%E3%80%90%E9%87%8F%E5%A4%9A%E5%83%B9%E5%84%AA%E3%80%91RCWL-9600-%E6%94%AF%E6%8C%81GPIO-UART-IIC-%E7%9B%B8%E5%AE%B9HC-SR04-%E8%B6%85%E8%81%B2%E6%B3%A2%E6%B8%AC%E8%B7%9D%E5%96%AE%E6%99%B6%E7%89%87-F-i.113679392.5322919672" alt="RCWL-9600" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.m5stack.com/topic/3240/ultrasonic-distance-unit-rcwl-9600</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Apr 2026 20:46:41 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/3240.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 28 Apr 2021 11:27:25 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Ultrasonic Distance Unit (RCWL-9600) on Wed, 28 Apr 2021 17:01:45 GMT]]></title><description><![CDATA[<p dir="auto">Hello,<br />
the RCWL-9600 is very accurate.<br />
You may read the data using a simple function like this:</p>
<p dir="auto">#define M5_I2C_ADDR_ULTRA 0x57</p>
<p dir="auto">float ReadI2CDistance()<br />
{<br />
uint32_t data;</p>
<pre><code>Wire.beginTransmission(M5_I2C_ADDR_ULTRA);
Wire.write(0x01);
Wire.endTransmission();
delay(120);
Wire.requestFrom(M5_I2C_ADDR_ULTRA,3);
data  = Wire.read();data &lt;&lt;= 8;
data |= Wire.read();data &lt;&lt;= 8;
data |= Wire.read();
return float(data) / 10000;  // distance in cm
</code></pre>
<p dir="auto">}</p>
]]></description><link>https://community.m5stack.com/post/13662</link><guid isPermaLink="true">https://community.m5stack.com/post/13662</guid><dc:creator><![CDATA[antimix]]></dc:creator><pubDate>Wed, 28 Apr 2021 17:01:45 GMT</pubDate></item></channel></rss>