<?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[Using GPIO11 clobbers I2C?]]></title><description><![CDATA[<p dir="auto">Hi all,</p>
<p dir="auto">I'm trying to use the PWM Expansion module along with a GPIO (11) as an output.  Though as soon as I set the output mode on the GPIO, all the I2C devices vanish, disabling the PWM Expansion module.</p>
<p dir="auto">Nothing is connected, just the Omega2 on a Power Dock with the PWM Expansion on top.  I even have a rubber spacer in between the two to avoid any shorts.  I've used the PWM Expansion on its own in past projects, has worked fine.</p>
<p dir="auto">On bootup, everything looks fine:</p>
<pre><code>root@Omega-10D9:~# i2cdetect -y 0
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- 5a -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: 70 -- -- -- -- -- -- --
</code></pre>
<p dir="auto">Great!   5A is the PWM Expansion (not sure what 70 is).  But then I run this little python script:</p>
<pre><code>import onionGpio

gpio11 = onionGpio.OnionGpio(11)
gpio11.setOutputDirection(0)
</code></pre>
<p dir="auto">And wham, no more I2C devices:</p>
<pre><code>root@Omega-10D9:~# i2cdetect -y 0
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
</code></pre>
<p dir="auto">Any suggestions?  I specifically chose GPIO11 because it's not associated with any other function.</p>
<p dir="auto">Thanks!</p>
]]></description><link>http://community.onion.io/topic/4107/using-gpio11-clobbers-i2c</link><generator>RSS for Node</generator><lastBuildDate>Mon, 16 Nov 2026 09:38:56 GMT</lastBuildDate><atom:link href="http://community.onion.io/topic/4107.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 17 Apr 2020 21:00:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Using GPIO11 clobbers I2C? on Fri, 17 Apr 2020 21:03:21 GMT]]></title><description><![CDATA[<p dir="auto">Hi all,</p>
<p dir="auto">I'm trying to use the PWM Expansion module along with a GPIO (11) as an output.  Though as soon as I set the output mode on the GPIO, all the I2C devices vanish, disabling the PWM Expansion module.</p>
<p dir="auto">Nothing is connected, just the Omega2 on a Power Dock with the PWM Expansion on top.  I even have a rubber spacer in between the two to avoid any shorts.  I've used the PWM Expansion on its own in past projects, has worked fine.</p>
<p dir="auto">On bootup, everything looks fine:</p>
<pre><code>root@Omega-10D9:~# i2cdetect -y 0
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- 5a -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: 70 -- -- -- -- -- -- --
</code></pre>
<p dir="auto">Great!   5A is the PWM Expansion (not sure what 70 is).  But then I run this little python script:</p>
<pre><code>import onionGpio

gpio11 = onionGpio.OnionGpio(11)
gpio11.setOutputDirection(0)
</code></pre>
<p dir="auto">And wham, no more I2C devices:</p>
<pre><code>root@Omega-10D9:~# i2cdetect -y 0
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
</code></pre>
<p dir="auto">Any suggestions?  I specifically chose GPIO11 because it's not associated with any other function.</p>
<p dir="auto">Thanks!</p>
]]></description><link>http://community.onion.io/post/21528</link><guid isPermaLink="true">http://community.onion.io/post/21528</guid><dc:creator><![CDATA[Leif Bloomquist]]></dc:creator><pubDate>Fri, 17 Apr 2020 21:03:21 GMT</pubDate></item><item><title><![CDATA[Reply to Using GPIO11 clobbers I2C? on Fri, 17 Apr 2020 21:55:58 GMT]]></title><description><![CDATA[<p dir="auto">Dug a bit deeper and it seems GPIO11 <strong>is</strong> reserved for the reset button, etc.  It's just not shown on the dock pinouts, it appears to be free i.e.</p>
<p dir="auto"><img src="https://raw.githubusercontent.com/OnionIoT/Onion-Docs/master/Omega2/Documentation/Hardware-Overview/img/power-dock-expansion-header-pinout.png" alt="alt text" class="img-responsive img-markdown" /></p>
<p dir="auto">Reference:</p>
<p dir="auto"><a href="https://docs.onion.io/omega2-docs/using-gpios.html#pins-at-boot" rel="nofollow">https://docs.onion.io/omega2-docs/using-gpios.html#pins-at-boot</a><br />
<a href="http://onioniot.github.io/wiki/Documentation/Hardware/Omega-Hardware.html" rel="nofollow">http://onioniot.github.io/wiki/Documentation/Hardware/Omega-Hardware.html</a></p>
<p dir="auto">So I think I'll be OK using a different GPIO, but would be nice to understand what's going on here a little more and have that shown in the dock pinouts.</p>
]]></description><link>http://community.onion.io/post/21529</link><guid isPermaLink="true">http://community.onion.io/post/21529</guid><dc:creator><![CDATA[Leif Bloomquist]]></dc:creator><pubDate>Fri, 17 Apr 2020 21:55:58 GMT</pubDate></item><item><title><![CDATA[Reply to Using GPIO11 clobbers I2C? on Mon, 20 Apr 2020 05:07:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/1489">@Leif-Bloomquist</a> This issue is a hardware compatibility side effect.</p>
<p dir="auto">Omega2: During boot the boot loader sets GPIO11 to Output and High. This ~3.3V high level will be the "<strong>power suply</strong>" (instead of Omega's 2.5V)</p>
<ul>
<li>for the RESET BUTTON (FW_RST) on Omega2 Expansion Dock, Power Dock, Power Dock 2 and Arduino Dock</li>
<li>for the I2C level shifter's lower voltage section on a <a href="https://github.com/OnionIoT/Onion-Hardware/blob/master/Schematics/Omega-Servo-Expansion.pdf" rel="nofollow"><strong>PWM/Servo Expansion</strong></a> and/or an <a href="https://github.com/OnionIoT/Onion-Hardware/blob/master/Schematics/Omega-OLED-Expansion.pdf" rel="nofollow">OLED Expansion</a></li>
</ul>
<hr />
<p dir="auto">The <strong>Expansion Header</strong> of the "original" Omega vs. Omega2<br />
<img src="/assets/uploads/files/1587283840950-expansion-headers.png" alt="expansion-headers.png" class="img-responsive img-markdown" /></p>
<p dir="auto"><strong>I2C logic level shifters</strong>: VDD25 ie. 2.5V or 3.3V of the GPIO11 Output High is the power supply of the lower voltage section - these circuits don't work without it.<br />
( GPIO20,  GPIO21 are GPIO4 and GPIO5 on Ommega2 respectively)<br />
<img src="/assets/uploads/files/1587283739745-pwm-expansion-resized.png" alt="pwm-expansion-resized.png" class="img-responsive img-markdown" /></p>
<p dir="auto">You can find lots of details about <strong>Omega2</strong> hardware for example here:<br />
<a href="https://github.com/OnionIoT/Onion-Hardware" rel="nofollow">https://github.com/OnionIoT/Onion-Hardware</a></p>
]]></description><link>http://community.onion.io/post/21530</link><guid isPermaLink="true">http://community.onion.io/post/21530</guid><dc:creator><![CDATA[György Farkas]]></dc:creator><pubDate>Mon, 20 Apr 2020 05:07:59 GMT</pubDate></item><item><title><![CDATA[Reply to Using GPIO11 clobbers I2C? on Fri, 15 Jan 2021 15:47:28 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for the detailed explanation!</p>
<p dir="auto">Though it makes me wonder why GPIO11 is on the breakout header at all.  It doesn't seem usable by end users.</p>
]]></description><link>http://community.onion.io/post/21538</link><guid isPermaLink="true">http://community.onion.io/post/21538</guid><dc:creator><![CDATA[Leif Bloomquist]]></dc:creator><pubDate>Fri, 15 Jan 2021 15:47:28 GMT</pubDate></item></channel></rss>