<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.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>Driving RGB LEDs with nRF52</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/17304/driving-rgb-leds-with-nrf52</link><description>In my case LEDs (N&amp;lt;10) would be animated (think pulsing). 
 My only concern is that the BLE core will limit the possibility to control the LEDs in real time, thus causing flickering and other artifacts. Perhaps DMA could help with that? 
 Has anyone</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 02 Nov 2016 20:28:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/17304/driving-rgb-leds-with-nrf52" /><item><title>RE: Driving RGB LEDs with nRF52</title><link>https://devzone.nordicsemi.com/thread/66493?ContentTypeID=1</link><pubDate>Wed, 02 Nov 2016 20:28:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d7ce6d8-1e63-430f-95e9-e89a741646ff</guid><dc:creator>andrey</dc:creator><description>&lt;p&gt;I&amp;#39;m not sure. And I have to qualify my previous statement -- I&amp;#39;m using a single LED, not an array.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Driving RGB LEDs with nRF52</title><link>https://devzone.nordicsemi.com/thread/66494?ContentTypeID=1</link><pubDate>Mon, 31 Oct 2016 09:37:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a90f53fe-4047-4f9d-8027-0cfb91058ba0</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Nice, I have not seen this before.&lt;/p&gt;
&lt;p&gt;I guess it uses the same principle as the one I linked to which uses PWM, but I don&amp;#39;t see how using SPIM is better, either the timing will be incorrect or it will use much more RAM. I have not looked at exactly how it works, this is based on the description. Also it says: &amp;quot;It may not work with all WS2812B based array, because current version is not meet with the official spec&amp;quot;. Do you know what he means about this? Is it that the timing is not correct?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Driving RGB LEDs with nRF52</title><link>https://devzone.nordicsemi.com/thread/66492?ContentTypeID=1</link><pubDate>Sat, 29 Oct 2016 03:00:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa9c80f3-c960-4138-9aae-2e2cfabc9bd7</guid><dc:creator>andrey</dc:creator><description>&lt;p&gt;WS2812B work fine with &lt;a href="https://github.com/takafuminaka/nrf52832-spi_ws2812b_flashing_random"&gt;this port&lt;/a&gt; even with softdevice running. Glitch-free in connection mode with the loosest timing that iOS allows:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define MIN_CONN_INTERVAL                MSEC_TO_UNITS(180, UNIT_1_25_MS)
#define MAX_CONN_INTERVAL                MSEC_TO_UNITS(200, UNIT_1_25_MS)
#define SLAVE_LATENCY                    4
#define CONN_SUP_TIMEOUT                 MSEC_TO_UNITS(5000, UNIT_10_MS) 
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Driving RGB LEDs with nRF52</title><link>https://devzone.nordicsemi.com/thread/66491?ContentTypeID=1</link><pubDate>Tue, 25 Oct 2016 12:38:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2bc9131-3d49-4b30-99cd-1e88d64ee88d</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Without knowing exactly what you aim to do I would recommend using the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/pwm.html?cp=2_2_0_46#concept_pzc_1pw_nr"&gt;PWM peripheral&lt;/a&gt; on nRF52. This allows you to play sequences with different duty cycle. The lowest period you can get is &lt;code&gt;32767/125KHz ~= 0.26s&lt;/code&gt;. But this can be extended if you pad the sequence with some zeros (or ones).&lt;/p&gt;
&lt;p&gt;I can also recommend to use programmable LEDs, like the &lt;a href="https://www.adafruit.com/product/1655"&gt;WS2812B&lt;/a&gt;. These only require power, ground and signal, so no additional transistor needed. You can search the forum for code to control these (uses software to toggle gpio) or take a look at &lt;a href="https://github.com/OBauck/nrf_WS2812"&gt;this&lt;/a&gt; to use the PWM peripheral for controlling the LEDs (this project is not yet finished, but I have tested it).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>