<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Raspberry pi 3 GPIO not working</title><link>https://community.element14.com/products/raspberry-pi/f/forum/30825/raspberry-pi-3-gpio-not-working</link><description>I am currently trying to turn an LED off but it is not working. (LED is always on, yes I do have a resistor 220 ohm) I have Wiringpi installed and looking at the readall data I do not see any change when I run my commands. I have tried directly in the</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><lastBuildDate>Tue, 03 Jan 2017 12:19:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://community.element14.com/products/raspberry-pi/f/forum/30825/raspberry-pi-3-gpio-not-working" /><item><title>RE: Raspberry pi 3 GPIO not working</title><link>https://community.element14.com/thread/104734?ContentTypeID=1</link><pubDate>Tue, 03 Jan 2017 12:19:52 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:2e2f231f-eb1c-42ec-8487-be4e4bf301b6</guid><dc:creator>gadget.iom</dc:creator><description>&lt;p style="margin:0;"&gt;Good to hear you&amp;#39;re sorted. And thanks for getting back with your findings. &lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/16x16/__key/communityserver-discussions-components-files/91/18032.contentimage_5F00_1.png"&gt;&lt;img alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/discussions/components/files/91/18032.contentimage_1.png-16x16.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=NcYAHhlu2BzYeZG5iumSZQAXj6doj4%2FsdGlz%2B8uqwmw%3D&amp;amp;se=2026-07-04T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=zGEM7pHL10Vt71gae75OdA==" style="max-height: 16px;max-width: 16px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;Please do stick around, you&amp;#39;re always welcome. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Raspberry pi 3 GPIO not working</title><link>https://community.element14.com/thread/104713?ContentTypeID=1</link><pubDate>Sun, 01 Jan 2017 18:09:41 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:59a49b93-f4c6-4ea8-9aa7-163f28412d2b</guid><dc:creator>byrd</dc:creator><description>&lt;p style="margin:0;"&gt;The ribbon cable was inverted..... Wow that&amp;#39;s completely my fault for not reading the instructions clear enough, I just went back and read them and it says which side should be where. &lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;Thank you all for pitching in to help me! This was my first post on this site and the responses were quick and helpful. I&amp;#39;ll be sticking around here for a while!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Raspberry pi 3 GPIO not working</title><link>https://community.element14.com/thread/104695?ContentTypeID=1</link><pubDate>Sun, 01 Jan 2017 12:03:50 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:e34883f9-147e-4c87-a04d-ab74422c565c</guid><dc:creator>rew</dc:creator><description>&lt;p style="margin:0;"&gt;Wait!....&lt;/p&gt;&lt;p style="margin:0;"&gt;As far as I know there are two numbering schemes. NEITHER uses the pin number on the connector. &lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;Can you try &amp;quot;sudo apt-get install wiringpi&amp;quot; and then &amp;quot;gpio readall&amp;quot;. That should give you an overview of what is currently configured.&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;As bcm pin 17 is listed as wiring pi pin number zero, I would then test:&lt;/p&gt;&lt;p style="margin:0;"&gt;gpio mode 0 OUT and verify that something changed by using gpio readall again. I just did that for you on my pi and I see:&lt;/p&gt;&lt;blockquote class="jive-quote"&gt;&lt;p style="margin:0;"&gt;| 17 | 0 | GPIO. 0 | IN | 0 | 11 || 12 | 0 | IN | GPIO. 1 | 1 | 18 |&lt;/p&gt;&lt;/blockquote&gt;&lt;p style="margin:0;"&gt;changed into:&lt;/p&gt;&lt;blockquote class="jive-quote"&gt;&lt;p style="margin:0;"&gt;| 17 | 0 | GPIO. 0 | OUT | 0 | 11 || 12 | 0 | IN | GPIO. 1 | 1 | 18 |&lt;/p&gt;&lt;/blockquote&gt;&lt;p style="margin:0;"&gt;Now, on my pi the led would be off, as the output value is low, but&lt;/p&gt;&lt;p style="margin:0;"&gt;gpio write 0 1&lt;/p&gt;&lt;p style="margin:0;"&gt;would turn it on:&lt;/p&gt;&lt;blockquote class="jive-quote"&gt;&lt;p style="margin:0;"&gt;| 17 | 0 | GPIO. 0 | OUT | 1 | 11 || 12 | 0 | IN | GPIO. 1 | 1 | 18 |&lt;/p&gt;&lt;/blockquote&gt;&lt;p style="margin:0;"&gt;This eliminates possible errors with you interacting with the python, and verifies the hardware.&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;Worst case you&amp;#39;ve already blown up that GPIO output of the pi with some earlier experiment.....&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;Another theory.... Could it be that you have the cable between the pi and the breadboard inverted? The side of the cable with the red pin goes FURTHEST away from the USB and ethernet connectors. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Raspberry pi 3 GPIO not working</title><link>https://community.element14.com/thread/104683?ContentTypeID=1</link><pubDate>Sun, 01 Jan 2017 11:26:28 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:11b0b0f2-ba85-4f56-a82e-13457f8c267e</guid><dc:creator>byrd</dc:creator><description>&lt;p style="margin:0;"&gt;I have tried using GPIO.BOARD and changing pin 11&amp;#39;s output to False and nothing happened.&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/675x900/__key/communityserver-discussions-components-files/91/contentimage_5F00_183135.jpg"&gt;&lt;img alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/discussions/components/files/91/contentimage_183135.jpg-675x900.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=AzKExJ0eBrsA04Wbc7S1H%2F0WTnG5tWnMfEc2nYhk%2B8g%3D&amp;amp;se=2026-07-04T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=F40BJ25I7hfKrjOm37aYzg==" style="max-height: 900px;max-width: 675px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;I have tried flashing the LED as well and it didn&amp;#39;t do anything.&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;i have found out while targeting other pins and reading the readall data that I am able to change all the gpio pins modes, but some i cannot change the output. 17 for instance will not change from 1 to 0 but the rest do.&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;I have moved over my jumper wire from 17 to all other pins but nothing happens. If they&amp;#39;re off and I turn them on the LED doesn&amp;#39;t come on, and vice versa if they&amp;#39;re on by default and I turn them off the LED stays on&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Raspberry pi 3 GPIO not working</title><link>https://community.element14.com/thread/104694?ContentTypeID=1</link><pubDate>Sun, 01 Jan 2017 10:07:54 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:0163f7f8-30ad-4b44-8072-239ebceca114</guid><dc:creator>rew</dc:creator><description>&lt;p style="margin:0;"&gt;With the code setting the output LOW, I would hope the led is between 3.3V an the pin... &lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;To prevent this kind of mistake, you can try flashing the led: turn it on wait a while, turn it ff again. If you get the hardware polarity wrong, you can still see it flash... &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Raspberry pi 3 GPIO not working</title><link>https://community.element14.com/thread/104672?ContentTypeID=1</link><pubDate>Sun, 01 Jan 2017 09:55:16 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:99859c2a-7d0e-46b4-b339-438cef67ee82</guid><dc:creator>royleith</dc:creator><description>&lt;p style="margin:0;"&gt;I have spent years collecting vital information about the various releases of the Pi to document the differences so that I can apply that to GPIO operations. It&amp;#39;s about time I got on with actual bit bashing.&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;I got this from the official raspberry GPIO Python site,&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a class="jive-link-external-small" href="https://sourceforge.net/p/raspberry-gpio-python/wiki/Examples/" rel="nofollow ugc noopener" style="text-decoration:underline;" target="_blank" title="https://sourceforge.net/p/raspberry-gpio-python/wiki/Examples/"&gt;https://sourceforge.net/p/raspberry-gpio-python/wiki/Examples/&lt;/a&gt; &lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="western" style="margin:0;"&gt; &lt;span style="color:#555555;font-size:9pt;font-family:sans-serif;"&gt;To specify which you are using (mandatory):&lt;/span&gt;&lt;/p&gt;&lt;pre class="western"&gt;&lt;blockquote class="jive-quote"&gt;&lt;span style="color:#555555;background:transparent;font-size:9pt;font-family:monospace, sans-serif;"&gt;GPIO&lt;span style="color:#666666;background:transparent;"&gt;.&lt;/span&gt;&lt;span style="background:transparent;"&gt;setmode(GPIO&lt;/span&gt;&lt;span style="color:#666666;background:transparent;"&gt;.&lt;/span&gt;&lt;span style="background:transparent;"&gt;BOARD)&lt;br /&gt;&lt;/span&gt;&lt;/span&gt; &lt;span style="color:#555555;background:#f8f8f8;"&gt;&amp;nbsp; &lt;span style="color:#408080;font-size:9pt;font-family:monospace, sans-serif;"&gt;&lt;em style="background:transparent;"&gt;# or&lt;/em&gt;&lt;/span&gt;&lt;/span&gt; &lt;br /&gt;&lt;span style="color:#555555;background:transparent;font-size:9pt;font-family:monospace, sans-serif;"&gt;GPIO&lt;span style="color:#666666;background:transparent;"&gt;.&lt;/span&gt;&lt;span style="background:transparent;"&gt;setmode(GPIO&lt;/span&gt;&lt;span style="color:#666666;background:transparent;"&gt;.&lt;/span&gt;&lt;span style="background:transparent;"&gt;BCM)&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;/pre&gt;&lt;p style="margin:0;"&gt;You are using the numbering of the GPIO pins on the BCM controller rather than the BOARD numbers of the Raspberry Pi GPIO. The following chart does not relate to all Pi revisions, but should be OK for the Pi 3.&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/208x733/__key/communityserver-discussions-components-files/91/contentimage_5F00_183134.png"&gt;&lt;img alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/discussions/components/files/91/contentimage_183134.png-208x733.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=At94ghv6hd1GpzxVOGuM1gMrKsoZuuSRGW7CynnsVFQ%3D&amp;amp;se=2026-07-04T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=0Ka17tXrdIOGJfDxlX5lxw==" style="max-height: 733px;max-width: 208px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;So the BCM GPIO pin 17 (the one you are controlling) is actually Raspberry Pi GPIO pin 11. Could this be the problem? I notice that Pi pin 17 is a 3.3Volt pin which would light any LED via a resistor to Ground.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>