<?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[pbhub change Analog to Digital ports?]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I have a pbhub unit: <a href="http://docs.m5stack.com/en/unit/pbhub" target="_blank" rel="noopener noreferrer nofollow ugc">http://docs.m5stack.com/en/unit/pbhub</a></p>
<p dir="auto">And what I didn't know: CH4 + CH5 seem to support "analogRead" only. I don't get any values when I read them digital (from an IR module).</p>
<p dir="auto">Question: is it possible to change the ports from analog to digital somehow? Maybe modify the firmware of the pbhub?</p>
<p dir="auto">Thanks</p>
]]></description><link>https://community.m5stack.com/topic/6314/pbhub-change-analog-to-digital-ports</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 11:29:46 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/6314.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 09 Apr 2024 19:12:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to pbhub change Analog to Digital ports? on Wed, 10 Apr 2024 12:45:56 GMT]]></title><description><![CDATA[<p dir="auto">Thnx, a threshold is exactly what I used as a workaround for know.<br />
Just wanted to ensure I'm not missing a point here.</p>
]]></description><link>https://community.m5stack.com/post/24730</link><guid isPermaLink="true">https://community.m5stack.com/post/24730</guid><dc:creator><![CDATA[membersound]]></dc:creator><pubDate>Wed, 10 Apr 2024 12:45:56 GMT</pubDate></item><item><title><![CDATA[Reply to pbhub change Analog to Digital ports? on Tue, 09 Apr 2024 19:43:38 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/membersound" aria-label="Profile: membersound">@<bdi>membersound</bdi></a></p>
<p dir="auto">no, it is not possible. If you look at the <a href="http://docs.m5stack.com/en/unit/pbhub" target="_blank" rel="noopener noreferrer nofollow ugc">schematic</a> you'll see that CH4 and CH5 are connected to ADC6 and ADC7 or the integrated MCU. These two inputs are analog only.</p>
<p dir="auto">BTW: you might still be able to use the analog value together with a threshold. If the analog value is above the threshold treat is as digital 1 and if it is below the threshold treat is as digital 0.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/24725</link><guid isPermaLink="true">https://community.m5stack.com/post/24725</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Tue, 09 Apr 2024 19:43:38 GMT</pubDate></item></channel></rss>