<?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>nrf51422a led intensity control</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/8777/nrf51422a-led-intensity-control</link><description>I wonder if I can ask about the leds intensity control: 
 I need to control the led intensity without the PWM because I&amp;#39;m using the softdevice &amp;amp; PWM didn&amp;#39;t work with it, I&amp;#39;m thinking of applying a waveform of zeros&amp;amp; ones to led &amp;amp; the resultant intensity</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 21 Aug 2015 10:03:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/8777/nrf51422a-led-intensity-control" /><item><title>RE: nrf51422a led intensity control</title><link>https://devzone.nordicsemi.com/thread/32200?ContentTypeID=1</link><pubDate>Fri, 21 Aug 2015 10:03:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc562c98-63f4-40e6-826d-581818e7299c</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Hi mohamed&lt;/p&gt;
&lt;p&gt;Can you perhaps provide a code snippet to show us what you have tried. Then we can figure out what is wrong and make further suggestions&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51422a led intensity control</title><link>https://devzone.nordicsemi.com/thread/32199?ContentTypeID=1</link><pubDate>Tue, 18 Aug 2015 11:10:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ddce949-702f-4e76-ad6a-aac4e93a570e</guid><dc:creator>Mohamed O.Abouzeid</dc:creator><description>&lt;p&gt;it played the patterns before the ble start advertising but after ble advertisied &amp;amp; connected to the mobile when I try to play the pattern, it stopped working and the pattern is hanged, I lost the connection also&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51422a led intensity control</title><link>https://devzone.nordicsemi.com/thread/32196?ContentTypeID=1</link><pubDate>Tue, 18 Aug 2015 10:48:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf220325-4084-43b0-b141-5ab6bb72fe1e</guid><dc:creator>Mohamed O.Abouzeid</dc:creator><description>&lt;p&gt;okay I&amp;#39;ll try it again right now and show you the code I&amp;#39;m developing &amp;amp; the results&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51422a led intensity control</title><link>https://devzone.nordicsemi.com/thread/32198?ContentTypeID=1</link><pubDate>Tue, 18 Aug 2015 10:20:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ac7a93f-0a79-4dfb-ae48-3adadc31e613</guid><dc:creator>Krzysztof Chruscinski</dc:creator><description>&lt;p&gt;Hi,
the goal of sdk drivers was to work with and without softdevice. app_pwm is using nrf_drv_timer and nrf_drv_ppi underneath which works the same with and without softdevice (ppi has less channels, you cannot use timer0 instance).
To make app_pwm work with softdevice you need to use it with TIMER1 or TIMER2 instance. It is the second argument of APP_PWM_INSTANCE(name, num) macro. Timer instance must be enabled in nrf_drv_config.h before it can be used. If you check pwm example it is already using TIMER1 instance so if you merge this code with one of ble examples it should work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51422a led intensity control</title><link>https://devzone.nordicsemi.com/thread/32197?ContentTypeID=1</link><pubDate>Tue, 18 Aug 2015 10:04:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:261adecd-d1f7-4171-9846-22134e7a2092</guid><dc:creator>Mohamed O.Abouzeid</dc:creator><description>&lt;p&gt;the main problem is that the softdevice reserve some resources like timers &amp;amp; the pwm need to use these resources, how to manage on that?&lt;/p&gt;
&lt;p&gt;I tried to put the pwm functions before the softdevice (ble stack init) and after it but no gain
is this a sample code showing me how to use it ? ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51422a led intensity control</title><link>https://devzone.nordicsemi.com/thread/32193?ContentTypeID=1</link><pubDate>Tue, 18 Aug 2015 09:08:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4277874b-76e3-4c45-a205-c18d36648e2a</guid><dc:creator>Krzysztof Chruscinski</dc:creator><description>&lt;p&gt;Hi, yes it is in SDK and works with softdevice. Try to initialize softdevice and then call app_pwm_init.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51422a led intensity control</title><link>https://devzone.nordicsemi.com/thread/32195?ContentTypeID=1</link><pubDate>Tue, 18 Aug 2015 09:01:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28552221-f21b-4537-8b62-81359a1c762f</guid><dc:creator>Mohamed O.Abouzeid</dc:creator><description>&lt;p&gt;where to find the app_pwm ? ?
I tried the app_pwm from SDK and it didn&amp;#39;t work with softdevice
is there a method to make it work with softdevice&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51422a led intensity control</title><link>https://devzone.nordicsemi.com/thread/32194?ContentTypeID=1</link><pubDate>Tue, 18 Aug 2015 05:25:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d34fb44-5bab-418c-9c2f-d1063de89f5f</guid><dc:creator>Krzysztof Chruscinski</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;have you tried PWM (app_pwm) from SDK? It&amp;#39;s working fine with SoftDevice. Another thing that you could try is to use app_timer to create software-controlled low power, low frequency PWM. It&amp;#39;s not precise because of other interrupts (mainly softdevice) but might be good enough for LED intensity changing. BTW you will find such module in upcoming SDK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>