<?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[Can we use GPIO36 as Servo control pIn ?]]></title><description><![CDATA[<p dir="auto">Hello.</p>
<p dir="auto">I'm trying to use M5Stack FIRE V2.7 portB(GND, 5V, GPIO26, GPIO36) as Servo motor control pin. The purpose is that two Servo motors ( SG-90 ) connected to portB can be controlled by software.</p>
<p dir="auto">First of all, I tested one Servo motor connected to portB (GND, 5V, GPIO26) by using the following Arduino IDE sketch, and it works well.<br />
But the same Servo motor connected to portB (GND, 5V, GPIO36) doesn't work by using the same Arduino IDE sketch with replacing pin number 26 to 36.<br />
It seems that GPIO36 pin cannot be set to OUTPUT mode.</p>
<p dir="auto">#include &lt;M5Stack.h&gt;    //Board : M5Stack-FIRE<br />
#include &lt;esp32-hal-ledc.h&gt;<br />
#define LOW 1500<br />
#define HIGH 8500<br />
#define TIMER_WIDTH 16<br />
#define PIN 26   // PIN should be set to 36, if GPIO36 is used</p>
<p dir="auto">void setup() {<br />
M5.begin();<br />
pinMode(PIN, OUTPUT);<br />
ledcSetup(1, 50, TIMER_WIDTH);<br />
ledcAttachPin(PIN, 1);<br />
}</p>
<p dir="auto">void loop() {<br />
for(int i = LOW; i &lt; HIGH; i = i + 100) {<br />
ledcWrite(1, i);<br />
delay(100);<br />
}<br />
}</p>
<p dir="auto">I don't know the reason why GPIO36 cannot be used as Servo motor control pin.<br />
Furthermore, I opened M5Stack FIRE cover, and connected Servo motor to GPIO pins directly, but the result is the same as ever.</p>
<p dir="auto">Please help, if you have any advice or information on it.<br />
Thank you In advance.</p>
<p dir="auto">RuriObb</p>
]]></description><link>https://community.m5stack.com/topic/6910/can-we-use-gpio36-as-servo-control-pin</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 00:09:14 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/6910.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 19 Oct 2024 20:31:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Can we use GPIO36 as Servo control pIn ? on Sun, 20 Oct 2024 06:41:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ruriobb" aria-label="Profile: RuriObb">@<bdi>RuriObb</bdi></a> No, it is an input pin only. as specified in the various my stack documents.</p>
]]></description><link>https://community.m5stack.com/post/26797</link><guid isPermaLink="true">https://community.m5stack.com/post/26797</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Sun, 20 Oct 2024 06:41:38 GMT</pubDate></item><item><title><![CDATA[Reply to Can we use GPIO36 as Servo control pIn ? on Sun, 20 Oct 2024 00:28:32 GMT]]></title><description><![CDATA[<p dir="auto">GPIO36が入力専用であることを理解しました。<br />
情報をありがとうございました。</p>
<p dir="auto">RuriObb</p>
]]></description><link>https://community.m5stack.com/post/26793</link><guid isPermaLink="true">https://community.m5stack.com/post/26793</guid><dc:creator><![CDATA[RuriObb]]></dc:creator><pubDate>Sun, 20 Oct 2024 00:28:32 GMT</pubDate></item><item><title><![CDATA[Reply to Can we use GPIO36 as Servo control pIn ? on Sun, 20 Oct 2024 10:39:05 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/ruriobb" aria-label="Profile: RuriObb">@<bdi>RuriObb</bdi></a></p>
<p dir="auto">ESP32 GPIO36 is one of the few pins which can only be used as input. See note <a href="https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/peripherals/gpio.html" target="_blank" rel="noopener noreferrer nofollow ugc">here</a>.</p>
<p dir="auto"><em>GPI: GPIO34-39 can only be set as input mode and do not have software-enabled pullup or pulldown functions.</em></p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/26792</link><guid isPermaLink="true">https://community.m5stack.com/post/26792</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Sun, 20 Oct 2024 10:39:05 GMT</pubDate></item></channel></rss>