<?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[RGB LED on Expansion Dock]]></title><description><![CDATA[<p dir="auto">I was looking around for information on the GPIO connected to the RGB LED on the expansion dock, didn't find any, so I tried to traced back using a multimeter. Below is the connection, please correct me if I'm wrong, otherwise at least this should help the next guy looking for it.</p>
<p dir="auto">1kOhm current limiting resistors are connected to each pin</p>
<pre><code class="language-LED">LED R  - GPIO17
LED G  - GPIO16
LED B  - GPIO15
</code></pre>
<p dir="auto">Set GPIO to 0 to turn on and 1 to turn off. I'm guessing the invert is because most GPIO have better sinking capability than sourcing. I would have expect a slightly different resistor value, especially for Red as each color have different luminosity and to achieve a better "white" when all are turned on.</p>
<p dir="auto">Below is some code to get started</p>
<pre><code>#Setup export and GPIO direction
echo 17 &gt; /sys/class/gpio/gpiochip0/subsystem/export
echo 16 &gt; /sys/class/gpio/gpiochip0/subsystem/export
echo 15 &gt; /sys/class/gpio/gpiochip0/subsystem/export
echo out &gt; /sys/class/gpio/gpio17/direction
echo out &gt; /sys/class/gpio/gpio16/direction
echo out &gt; /sys/class/gpio/gpio15/direction

#turn off RGB LED
echo 1 &gt; /sys/class/gpio/gpio17/value
echo 1 &gt; /sys/class/gpio/gpio16/value
echo 1 &gt; /sys/class/gpio/gpio15/value

#turn on R
echo 0 &gt; /sys/class/gpio/gpio17/value
#turn on G
echo 0 &gt; /sys/class/gpio/gpio16/value
#turn on B
echo 0 &gt; /sys/class/gpio/gpio15/value
</code></pre>
]]></description><link>http://community.onion.io/topic/50/rgb-led-on-expansion-dock</link><generator>RSS for Node</generator><lastBuildDate>Wed, 14 Oct 2026 11:18:48 GMT</lastBuildDate><atom:link href="http://community.onion.io/topic/50.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 08 Nov 2015 01:57:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to RGB LED on Expansion Dock on Sun, 08 Nov 2015 02:03:40 GMT]]></title><description><![CDATA[<p dir="auto">I was looking around for information on the GPIO connected to the RGB LED on the expansion dock, didn't find any, so I tried to traced back using a multimeter. Below is the connection, please correct me if I'm wrong, otherwise at least this should help the next guy looking for it.</p>
<p dir="auto">1kOhm current limiting resistors are connected to each pin</p>
<pre><code class="language-LED">LED R  - GPIO17
LED G  - GPIO16
LED B  - GPIO15
</code></pre>
<p dir="auto">Set GPIO to 0 to turn on and 1 to turn off. I'm guessing the invert is because most GPIO have better sinking capability than sourcing. I would have expect a slightly different resistor value, especially for Red as each color have different luminosity and to achieve a better "white" when all are turned on.</p>
<p dir="auto">Below is some code to get started</p>
<pre><code>#Setup export and GPIO direction
echo 17 &gt; /sys/class/gpio/gpiochip0/subsystem/export
echo 16 &gt; /sys/class/gpio/gpiochip0/subsystem/export
echo 15 &gt; /sys/class/gpio/gpiochip0/subsystem/export
echo out &gt; /sys/class/gpio/gpio17/direction
echo out &gt; /sys/class/gpio/gpio16/direction
echo out &gt; /sys/class/gpio/gpio15/direction

#turn off RGB LED
echo 1 &gt; /sys/class/gpio/gpio17/value
echo 1 &gt; /sys/class/gpio/gpio16/value
echo 1 &gt; /sys/class/gpio/gpio15/value

#turn on R
echo 0 &gt; /sys/class/gpio/gpio17/value
#turn on G
echo 0 &gt; /sys/class/gpio/gpio16/value
#turn on B
echo 0 &gt; /sys/class/gpio/gpio15/value
</code></pre>
]]></description><link>http://community.onion.io/post/317</link><guid isPermaLink="true">http://community.onion.io/post/317</guid><dc:creator><![CDATA[faulty lee]]></dc:creator><pubDate>Sun, 08 Nov 2015 02:03:40 GMT</pubDate></item><item><title><![CDATA[Reply to RGB LED on Expansion Dock on Sun, 08 Nov 2015 02:56:01 GMT]]></title><description><![CDATA[<p dir="auto">Nice! That's some good detective work <img src="http://community.onion.io/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=ic093v0mjao" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" title=":)" alt="🙂" /></p>
<p dir="auto">We've actually made a tool that can run software PWM to control the colour of the LED. Check out this <a href="https://onion.freshdesk.com/solution/articles/6000069980-how-can-i-control-the-led-on-the-expansion-dock-" rel="nofollow">help desk article</a>.</p>
]]></description><link>http://community.onion.io/post/320</link><guid isPermaLink="true">http://community.onion.io/post/320</guid><dc:creator><![CDATA[Lazar Demin]]></dc:creator><pubDate>Sun, 08 Nov 2015 02:56:01 GMT</pubDate></item><item><title><![CDATA[Reply to RGB LED on Expansion Dock on Sun, 08 Nov 2015 02:58:10 GMT]]></title><description><![CDATA[<p dir="auto">Lol, I was searching for RGB LED, no wonder I didn't find anything here and at the help desk. That's what I've been thinking, you guys wouldn't have missed such a simple thing.</p>
]]></description><link>http://community.onion.io/post/321</link><guid isPermaLink="true">http://community.onion.io/post/321</guid><dc:creator><![CDATA[faulty lee]]></dc:creator><pubDate>Sun, 08 Nov 2015 02:58:10 GMT</pubDate></item><item><title><![CDATA[Reply to RGB LED on Expansion Dock on Sun, 08 Nov 2015 11:22:46 GMT]]></title><description><![CDATA[<p dir="auto">Very nice work! Thank you very much. I am so stupid not realising that you needed a 0 to turn it on. Doh! Cheers!</p>
]]></description><link>http://community.onion.io/post/326</link><guid isPermaLink="true">http://community.onion.io/post/326</guid><dc:creator><![CDATA[T NT]]></dc:creator><pubDate>Sun, 08 Nov 2015 11:22:46 GMT</pubDate></item><item><title><![CDATA[Reply to RGB LED on Expansion Dock on Wed, 11 Nov 2015 03:14:09 GMT]]></title><description><![CDATA[<p dir="auto">The code for <code>expled</code> used in the <a href="https://onion.freshdesk.com/solution/articles/6000069980-how-can-i-control-the-led-on-the-expansion-dock-" rel="nofollow">help desk article</a> is here <a href="https://github.com/OnionIoT/fast-gpio/blob/master/scripts/expled.sh" rel="nofollow">https://github.com/OnionIoT/fast-gpio/blob/master/scripts/expled.sh</a> in case someone is looking.</p>
]]></description><link>http://community.onion.io/post/503</link><guid isPermaLink="true">http://community.onion.io/post/503</guid><dc:creator><![CDATA[faulty lee]]></dc:creator><pubDate>Wed, 11 Nov 2015 03:14:09 GMT</pubDate></item></channel></rss>