<?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[How to read Standard RC signal]]></title><description><![CDATA[<p dir="auto">I want to read Standard RC PWM input signal on port A (or B, C). Standard RC PWM signal is between 1.5 ms to 2 ms and have timeout at 20 ms. How to do it in UI FLOW.</p>
<p dir="auto">PS.<br />
Something that similar to "pulseIn" command in arduino?</p>
]]></description><link>https://community.m5stack.com/topic/537/how-to-read-standard-rc-signal</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 06:02:29 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/537.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 25 Jan 2019 04:23:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to read Standard RC signal on Thu, 01 Sep 2022 05:39:29 GMT]]></title><description><![CDATA[<p dir="auto"><strong>Method 1:</strong> As far as I know the pulse goes from 1ms to 2ms (1.5ms is middle position). It should be possible to "analogify" or mathematically say "integrate" the PWM signal using a R-C combination on the input pin and read the voltage from this. But the voltage level will be low due the duty cycle which goes from approx. 1:20 (1ms/20ms) to 1:10 (2ms/20ms). From 5V full scale you read 0.25V to 0.5V. You may add an analog OPAMP amplify it to 5V. This method will slow down the reaction time a little bit</p>
<p dir="auto"><strong>Method 2:</strong> Before doing the Method 1 it may be less effort to write it in Arduino and use either a PWM read library or use a interrupt to measure the pulse width. You can also read the low time to determine if the input signal is valid or not eg. to detect signal loss.</p>
<p dir="auto"><strong>Method 3:</strong> This is the simple but ugly workaround! Add a small Servo to your signal and drive a potentiometer which ist then read by the M5 analog input.</p>
]]></description><link>https://community.m5stack.com/post/18512</link><guid isPermaLink="true">https://community.m5stack.com/post/18512</guid><dc:creator><![CDATA[holofloh]]></dc:creator><pubDate>Thu, 01 Sep 2022 05:39:29 GMT</pubDate></item><item><title><![CDATA[Reply to How to read Standard RC signal on Wed, 31 Aug 2022 20:48:07 GMT]]></title><description><![CDATA[<p dir="auto">Hope you still consider adding sbus blocks to uiflow. It would be very useful with all the servo controller units available for m5stack products.</p>
]]></description><link>https://community.m5stack.com/post/18511</link><guid isPermaLink="true">https://community.m5stack.com/post/18511</guid><dc:creator><![CDATA[hetzer]]></dc:creator><pubDate>Wed, 31 Aug 2022 20:48:07 GMT</pubDate></item><item><title><![CDATA[Reply to How to read Standard RC signal on Sun, 16 Jun 2019 13:22:39 GMT]]></title><description><![CDATA[<p dir="auto">Is it possible to do it now with the ticks ?</p>
]]></description><link>https://community.m5stack.com/post/4649</link><guid isPermaLink="true">https://community.m5stack.com/post/4649</guid><dc:creator><![CDATA[hetzer]]></dc:creator><pubDate>Sun, 16 Jun 2019 13:22:39 GMT</pubDate></item><item><title><![CDATA[Reply to How to read Standard RC signal on Thu, 21 Mar 2019 10:07:46 GMT]]></title><description><![CDATA[<p dir="auto">Hope it supports in the future. I need a similar function to read sbus signal.</p>
]]></description><link>https://community.m5stack.com/post/3373</link><guid isPermaLink="true">https://community.m5stack.com/post/3373</guid><dc:creator><![CDATA[hetzer]]></dc:creator><pubDate>Thu, 21 Mar 2019 10:07:46 GMT</pubDate></item><item><title><![CDATA[Reply to How to read Standard RC signal on Fri, 25 Jan 2019 08:14:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pattiuak" aria-label="Profile: pattiuak">@<bdi>pattiuak</bdi></a> said in <a href="/post/2689">How to read Standard RC signal</a>:</p>
<blockquote>
<p dir="auto">But if I can get delta time between it change from 0 to 1 and change back from 1 to 0 it will work. But UI FLOW don't have any block that can read processing time. So it impossible to read duty time with digital pin read only.</p>
</blockquote>
<p dir="auto">sorry, uiflow now not support it</p>
]]></description><link>https://community.m5stack.com/post/2690</link><guid isPermaLink="true">https://community.m5stack.com/post/2690</guid><dc:creator><![CDATA[heybin]]></dc:creator><pubDate>Fri, 25 Jan 2019 08:14:06 GMT</pubDate></item><item><title><![CDATA[Reply to How to read Standard RC signal on Fri, 25 Jan 2019 07:49:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ajb2k3" aria-label="Profile: ajb2k3">@<bdi>ajb2k3</bdi></a> As I Know</p>
<ul>
<li>
<p dir="auto">analog read will read voltage input from 0 V. to 5 V. in this case it will pickup either 0 V. or full 5 V. (depend on PWM duty when you read it). So analog read is useless for this case.</p>
</li>
<li>
<p dir="auto">digital pin read is just get 0 or 1. But if I can get delta time between it change from 0 to 1 and change back from 1 to 0 it will work. But UI FLOW don't have any block that can read processing time. So it impossible to read duty time with digital pin read only.</p>
</li>
</ul>
]]></description><link>https://community.m5stack.com/post/2689</link><guid isPermaLink="true">https://community.m5stack.com/post/2689</guid><dc:creator><![CDATA[pattiuak]]></dc:creator><pubDate>Fri, 25 Jan 2019 07:49:03 GMT</pubDate></item><item><title><![CDATA[Reply to How to read Standard RC signal on Fri, 25 Jan 2019 06:02:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pattiuak" aria-label="Profile: pattiuak">@<bdi>pattiuak</bdi></a> said in <a href="/post/2684">How to read Standard RC signal</a>:</p>
<blockquote>
<p dir="auto">I want to read Standard RC PWM input signal on port A (or B, C). Standard RC PWM signal is between 1.5 ms to 2 ms and have timeout at 20 ms. How to do it in UI FLOW.</p>
<p dir="auto">PS.<br />
Something that similar to "pulseIn" command in arduino?</p>
</blockquote>
<p dir="auto">there isn't a dedicate pwm read block,( and I am way behind with my experiments,) Have you tried playing with the analogue or digital pin reads?</p>
]]></description><link>https://community.m5stack.com/post/2686</link><guid isPermaLink="true">https://community.m5stack.com/post/2686</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Fri, 25 Jan 2019 06:02:44 GMT</pubDate></item></channel></rss>