<?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[stampS3 capacitive touch detect : GPIO#3 NOT working??]]></title><description><![CDATA[<p dir="auto">Now making a tool with 12 capacitive touch sensors using stampS3 on Arduino.<br />
I am confusing why touch detect does not work well when using GPIO#3pin.<br />
I have confirmed that pin define WITHOUT GPIO#3pin , it works well.<br />
I have confirmed that both of my two stampS3 show the same result with nothing connected to stampS3.</p>
<p dir="auto">I may not understand well of official documents, can you tell me where to read?</p>
<p dir="auto">quotation of my Arduino program<br />
........<br />
#define numSW 12 //define number of touch SWs<br />
int TOUCH_PIN[numSW] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13 }; //define GPIO number for.each touchSW<br />
.....<br />
void serialPrintThresh() {  //読み取り値と閾値を列記<br />
for (int touchNum = 0; touchNum &lt; numSW; touchNum++) {<br />
USBSerial.print(touchNum + 1);  //+1してピン番号に換算<br />
USBSerial.print(": ");<br />
USBSerial.print(touchRead(TOUCH_PIN[touchNum]));<br />
USBSerial.print(" / ");<br />
USBSerial.print(threshold[touchNum]);<br />
USBSerial.println(" ");<br />
}<br />
}</p>
<p dir="auto">......serial print result:<br />
......many GPIO pins show big number, not only #3<br />
......only #1 pin can detect touch well, BUT others can not  !</p>
<p dir="auto">1: 13859 / 2764<br />
2: 13998 / 2799<br />
3: 2443023 / 488604<br />
4: 2783227 / 556645<br />
5: 4178149 / 835629<br />
6: 1179519 / 235903<br />
7: 4060029 / 812005<br />
8: 1920687 / 384137<br />
9: 4003023 / 800604<br />
10: 893757 / 178751<br />
11: 3026140 / 605228<br />
12: 3399653 / 679930</p>
<p dir="auto">_____________modified program, exchange #3 to #12</p>
<p dir="auto">int TOUCH_PIN[numSW] = { 1, 2, 12, 4, 5, 6, 7, 8, 9, 10, 11, 13 }; //define GPIO number for.each touchSW<br />
..........all pins shows similar number<br />
..........each pin detect touch well !</p>
<p dir="auto">1: 13840 / 2758<br />
2: 13982 / 2796<br />
3: 13921 / 2770 // #12GPIO pin<br />
4: 13443 / 2680<br />
5: 12204 / 2434<br />
6: 12192 / 2427<br />
7: 12522 / 2495<br />
8: 11920 / 2377<br />
9: 12530 / 2501<br />
10: 12662 / 2533<br />
11: 20303 / 4060<br />
12: 13899 / 2779</p>
]]></description><link>https://community.m5stack.com/topic/5432/stamps3-capacitive-touch-detect-gpio-3-not-working</link><generator>RSS for Node</generator><lastBuildDate>Sat, 09 May 2026 13:50:37 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/5432.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 28 Jun 2023 02:16:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to stampS3 capacitive touch detect : GPIO#3 NOT working?? on Sat, 01 Jul 2023 23:58:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/felmue" aria-label="Profile: felmue">@<bdi>felmue</bdi></a><br />
thanks!<br />
I will change my PCB design not to use GPIO#3 for capacitive touch detect.</p>
]]></description><link>https://community.m5stack.com/post/21428</link><guid isPermaLink="true">https://community.m5stack.com/post/21428</guid><dc:creator><![CDATA[sunshine]]></dc:creator><pubDate>Sat, 01 Jul 2023 23:58:28 GMT</pubDate></item><item><title><![CDATA[Reply to stampS3 capacitive touch detect : GPIO#3 NOT working?? on Wed, 28 Jun 2023 21:50:09 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/sunshine" aria-label="Profile: sunshine">@<bdi>sunshine</bdi></a></p>
<p dir="auto">I don't know if G3 could be used a touch detect with the pull-up in place. Sorry.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/21370</link><guid isPermaLink="true">https://community.m5stack.com/post/21370</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Wed, 28 Jun 2023 21:50:09 GMT</pubDate></item><item><title><![CDATA[Reply to stampS3 capacitive touch detect : GPIO#3 NOT working?? on Wed, 28 Jun 2023 09:02:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/felmue" aria-label="Profile: felmue">@<bdi>felmue</bdi></a><br />
Thank you for your prompt reply.<br />
On the same document showing pin assignment of <a href="https://static-cdn.m5stack.com/resource/docs/products/core/StampS3/img-b18b0819-2154-4bb3-9389-88e5df2ac7ca.png" target="_blank" rel="noopener noreferrer nofollow ugc">stampS3</a>, I thought that G3 can be used for TCH3 same as others.<br />
But I understand that G3 can not be used for touch detect as others.<br />
And, other touch pins do not work as touch pins affected by G3 pin assignment for touch, is more serious issue for me.<br />
If you know, can I use with some special treatment for G3 ? eg. it can be used as touch detect after certain time passed after boot time?</p>
]]></description><link>https://community.m5stack.com/post/21360</link><guid isPermaLink="true">https://community.m5stack.com/post/21360</guid><dc:creator><![CDATA[sunshine]]></dc:creator><pubDate>Wed, 28 Jun 2023 09:02:05 GMT</pubDate></item><item><title><![CDATA[Reply to stampS3 capacitive touch detect : GPIO#3 NOT working?? on Wed, 28 Jun 2023 05:06:01 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/sunshine" aria-label="Profile: sunshine">@<bdi>sunshine</bdi></a></p>
<p dir="auto">GPIO0, GPIO3, GPIO45 and GPIO46 are so called strapping pins which are used to setup various things at boot time.</p>
<p dir="auto">In the M5StampS3 <a href="https://docs.m5stack.com/en/core/StampS3" target="_blank" rel="noopener noreferrer nofollow ugc">schematic</a> you'll see that an external 10 k pull-up resistor has been connected to GPIO3. I guess that's the reason for the values you are getting.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/21358</link><guid isPermaLink="true">https://community.m5stack.com/post/21358</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Wed, 28 Jun 2023 05:06:01 GMT</pubDate></item></channel></rss>