<?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>RGB LED with NRF5340</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80275/rgb-led-with-nrf5340</link><description>Hi, 
 I need your help to know &amp;quot;How to control RGB LED using PWM in nrf5340?&amp;quot;. I have already tried the &amp;quot;RGB_led&amp;quot; sample in NRFconnect SDK v1.5.0 
 But can&amp;#39;t able to control my led. Kindly Support me to understand the Project and also to get output. </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 19 Oct 2021 13:03:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80275/rgb-led-with-nrf5340" /><item><title>RE: RGB LED with NRF5340</title><link>https://devzone.nordicsemi.com/thread/334885?ContentTypeID=1</link><pubDate>Tue, 19 Oct 2021 13:03:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b1eb151-4283-41f8-8a16-4495a429745d</guid><dc:creator>Priyanka</dc:creator><description>[quote user="Mr.NCK"]1) What is the difference are there between NCS version 1.5.0 &amp;amp; 1.7.0[/quote]
&lt;p&gt;version 1.7.0 is an updated version. Please refer the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/release_notes.html"&gt;release notes&lt;/a&gt; for further details.&lt;/p&gt;
[quote user="Mr.NCK"]2) I have given 20000 for pulse red it glows the pink color. But I need red color how to give the&amp;nbsp; proper pulse value[/quote]
&lt;p&gt;Are you using a digital RGB LED? Because the steps mentioned and the discussions were meant for an analog RGB LED. You just have to connect the corresponding pins to R, G and B respectively and give the common cathode to ground. Kindly try with an analog RGB LED.&lt;/p&gt;
&lt;p&gt;Kindly check the datasheet of the RGB LED that you are using for the information about what colour, intensity and temperature and even the voltage levels.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RGB LED with NRF5340</title><link>https://devzone.nordicsemi.com/thread/334761?ContentTypeID=1</link><pubDate>Tue, 19 Oct 2021 07:56:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c2fa978-3401-49b9-9629-1e830f78dfb5</guid><dc:creator>Mr.NCK</dc:creator><description>&lt;p&gt;Hi Priyanka&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I need to know two things&lt;/p&gt;
&lt;p&gt;1) What is the difference are there between NCS version 1.5.0 &amp;amp; 1.7.0&lt;/p&gt;
&lt;p&gt;2) I have given 20000 for pulse red it glows the pink color. But I need red color how to give the&amp;nbsp; proper pulse value&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RGB LED with NRF5340</title><link>https://devzone.nordicsemi.com/thread/334561?ContentTypeID=1</link><pubDate>Mon, 18 Oct 2021 11:05:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:383dc6da-f21f-4fcd-b87b-cdb692ac60e3</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Could you verify this program on the nRF5340 DK, using the nRF Connect SDK version 1.7.0?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RGB LED with NRF5340</title><link>https://devzone.nordicsemi.com/thread/334542?ContentTypeID=1</link><pubDate>Mon, 18 Oct 2021 10:13:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5dd750c8-ffbd-4b26-a54b-07c9c511a3bb</guid><dc:creator>Mr.NCK</dc:creator><description>[quote userid="107729" url="~/f/nordic-q-a/80275/rgb-led-with-nrf5340/334506#334506"]Also make sure you have the latest version of nRF Connect SDK.[/quote]
&lt;p&gt;Hi priyanka&lt;/p&gt;
&lt;p&gt;all the others are verified. I am using nrf connect sdk v 1.5.0&lt;/p&gt;
&lt;p&gt;Thanks &amp;amp; Regards&lt;/p&gt;
&lt;p&gt;Navin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RGB LED with NRF5340</title><link>https://devzone.nordicsemi.com/thread/334506?ContentTypeID=1</link><pubDate>Mon, 18 Oct 2021 08:24:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1de4b246-a43f-4750-b0f9-afce40a2a4ab</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi Navin,&lt;/p&gt;
&lt;p&gt;I would like to know whether you are using the nRF5340 DK or nRF5340 PDK?&lt;/p&gt;
&lt;p&gt;Also, your connection seems correct. I will mention my steps below:&lt;/p&gt;
&lt;p&gt;1. Connect the R, G and B pins respectively to the pins mentioned in the overlay file. You can choose the PINS that you wish to configure by verifying the pin numbers written behind the DK that you are using and then mention them correctly in the overlay file. Make sure you save the overlay file in the rgb_led folder.&lt;/p&gt;
&lt;p&gt;2. While building using the SEGGER, the nrf5340dk_nrf5340_cpuapp was chosen as the board variant.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;3. Build and flash using SEGGER.&lt;/p&gt;
&lt;p&gt;These worked well. Kindly verify these with yours. Also make sure you have the latest version of nRF Connect SDK.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RGB LED with NRF5340</title><link>https://devzone.nordicsemi.com/thread/334453?ContentTypeID=1</link><pubDate>Sun, 17 Oct 2021 13:15:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:059ac531-7c35-4b97-902b-61d4224f57db</guid><dc:creator>Mr.NCK</dc:creator><description>&lt;p&gt;Hi Priyanka,&lt;/p&gt;
&lt;p&gt;I have tried that sample but, it didn&amp;#39;t work.&amp;nbsp; I can able to glow the same LED by using Arduino. But, with nrf5340 it was not working. The LED was a common cathode type. The common pin was directly connected to the ground. The RGB pins are connected with respective I/O pins of nrf5340 DK as mentioned in the Overlay file through 220-ohm resistance. Kindly,&amp;nbsp; help me to glow the RGB LED from nrf5340&lt;/p&gt;
&lt;p&gt;Thanks &amp;amp; Regards&lt;/p&gt;
&lt;p&gt;Navin Chakravarthy KI&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RGB LED with NRF5340</title><link>https://devzone.nordicsemi.com/thread/334192?ContentTypeID=1</link><pubDate>Thu, 14 Oct 2021 13:46:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b2b5cb0-30cc-4bae-a85a-44b9c98d81ec</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi Navin,&lt;/p&gt;
&lt;p&gt;There are basically two SDKs. The&lt;strong&gt; nrf5 SDK&lt;/strong&gt; (which was used for all the previous&amp;nbsp;SoC) and there is the &lt;strong&gt;nRF Connect SDK&lt;/strong&gt; (which is new, more commonly used now and is recommended). The nRF5340 DK&amp;nbsp;has a&amp;nbsp;dual core Bluetooth SoC and this does &lt;strong&gt;not&lt;/strong&gt; support the nrf5 SDK. You have to use the nRF Connect SDK for this. You can read about this &lt;a href="https://www.nordicsemi.com/Products/Development-hardware/nRF5340-DK"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Also, the file that you shared is written for nrf5 SDK and cannot be used for the nRF5340 DK. Like I mentioned earlier, if you need to glow R, G &amp;amp; B at different conditions, you could try modifying the main.c of the rgb_led program.&lt;/p&gt;
&lt;p&gt;Hope this helps !&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RGB LED with NRF5340</title><link>https://devzone.nordicsemi.com/thread/333818?ContentTypeID=1</link><pubDate>Wed, 13 Oct 2021 05:07:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65a2a27a-61f6-48f5-b730-9a31ac5dd154</guid><dc:creator>Mr.NCK</dc:creator><description>&lt;p&gt;Hi Priyanka,&lt;/p&gt;
&lt;p&gt;The above solution was&amp;nbsp;working. I need to know one more thing. Is there any chance to use the below code for nrf5340.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/34515.main.c"&gt;devzone.nordicsemi.com/.../34515.main.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kindly, Help me I need to glow red for some time and green for some time based on certain conditions&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks &amp;amp; Regards&lt;/p&gt;
&lt;p&gt;Navin Chakravarthy K&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RGB LED with NRF5340</title><link>https://devzone.nordicsemi.com/thread/333341?ContentTypeID=1</link><pubDate>Sat, 09 Oct 2021 11:00:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84db6154-35b8-4de8-b432-e03e5aaa7975</guid><dc:creator>Mr.NCK</dc:creator><description>&lt;p&gt;Hi Priyanka,&lt;/p&gt;
&lt;p&gt;Sorry for the delay, Now I am facing some issues because of nrf connect to update. Afterward, I will contact you&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Navin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RGB LED with NRF5340</title><link>https://devzone.nordicsemi.com/thread/333085?ContentTypeID=1</link><pubDate>Thu, 07 Oct 2021 13:41:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c68b00fc-8ad2-4ec3-8e3c-8447f3b52ce8</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi Navin,&lt;/p&gt;
&lt;p&gt;I guess there was a bit of a confusion in what I mentioned yesterday. I get that an RGB Led is a multicolour LED but there is no such LED on nrf5340 DK. It has just 4 green LEDs.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But if you need to run the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;&amp;#39;rgb_led&amp;#39;&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;example with an RGB Led, then you will have to use an&lt;strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;external analog RGB Led&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and also, create a&amp;nbsp;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;.overlay file&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;with the necessary pwm leds initialised. You can do it like I mentioned yesterday.&lt;/p&gt;
[quote user="PriyankaKesav"]Making any changes in the main.c file may cause errors so it would be better if this change&amp;nbsp;is reflected in the &lt;strong&gt;.dts&lt;/strong&gt; file. For which, you don&amp;#39;t have to modify that, but you can create a &lt;strong&gt;.overlay&amp;nbsp;&lt;/strong&gt;file inside the&lt;strong&gt; &amp;#39;&amp;#39;rgb_led&amp;#39;&amp;#39;&lt;/strong&gt; folder&lt;strong&gt;.&lt;/strong&gt; Here, you can mention the changes that you want to see in the &lt;strong&gt;.dts&lt;/strong&gt; file (the LEDs you wish to set).&amp;nbsp;[/quote]
&lt;blockquote&gt;&lt;span&gt;&lt;em&gt;&lt;/em&gt;&lt;/span&gt;&lt;/blockquote&gt;
&lt;p&gt;I will attach my &lt;strong&gt;.overlay&lt;/strong&gt; file for your reference. Also,&lt;span&gt;&amp;nbsp;&lt;/span&gt;make sure&amp;nbsp;your RGB led pins are connected to the proper pins and&amp;nbsp;you can calculate the resistance required by using your voltage supply and current limit from the datasheet of the RGB Led.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;As for controlling the LED, you could try making changes in the &lt;strong&gt;main.c&lt;/strong&gt; of the &amp;#39;rgb_led&amp;#39; example. At present, it runs as per a for loop with a specific count that is defined. You could try changing this. In case you need to control them via buttons, you may have to again define them in the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;.overlay&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;file.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5305.nrf5340dk_5F00_nrf5340_5F00_cpuapp.overlay"&gt;devzone.nordicsemi.com/.../5305.nrf5340dk_5F00_nrf5340_5F00_cpuapp.overlay&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RGB LED with NRF5340</title><link>https://devzone.nordicsemi.com/thread/332872?ContentTypeID=1</link><pubDate>Wed, 06 Oct 2021 14:36:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd65b44f-4073-4b37-9119-0887eff95b7f</guid><dc:creator>Mr.NCK</dc:creator><description>&lt;p&gt;Hi Priyanka,&lt;/p&gt;
&lt;p&gt;Basically, RGB led means multicolor controllable led. For your reference &amp;quot;www.circuitbread.com/.../how-rgb-leds-work-and-how-to-control-color&amp;quot;&lt;/p&gt;
&lt;p&gt;And that can be controlled via PWM. Kindly, Check that link and suggest a way to control multicolor led with nrf5340&lt;/p&gt;
&lt;p&gt;Thanks &amp;amp; Regards&lt;/p&gt;
&lt;p&gt;Navin Chakravarthy K&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RGB LED with NRF5340</title><link>https://devzone.nordicsemi.com/thread/332868?ContentTypeID=1</link><pubDate>Wed, 06 Oct 2021 14:15:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:788904ec-f85c-40c5-96d9-773ae1330766</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi Navin,&lt;/p&gt;
&lt;p&gt;Since the nrf5340 has only 4 green LEDS, and does not have dedicated red or blue LEDs, while running the&lt;strong&gt; &amp;#39;&amp;#39;rgb_led&amp;#39;&amp;#39;&lt;/strong&gt;&amp;nbsp;example&lt;strong&gt;,&amp;nbsp;&lt;/strong&gt;you will have to consider any two LEDs to be red and blue respectively&lt;em&gt; (for eg: led0 -&amp;gt; green, led1-&amp;gt; blue, led2 -&amp;gt; red)&lt;/em&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Making any changes in the main.c file may cause errors so it would be better if this change&amp;nbsp;is reflected in the &lt;strong&gt;.dts&lt;/strong&gt; file. For which, you don&amp;#39;t have to modify that, but you can create a &lt;strong&gt;.overlay&amp;nbsp;&lt;/strong&gt;file inside the&lt;strong&gt; &amp;#39;&amp;#39;rgb_led&amp;#39;&amp;#39;&lt;/strong&gt; folder&lt;strong&gt;.&lt;/strong&gt; Here, you can mention the changes that you want to see in the &lt;strong&gt;.dts&lt;/strong&gt; file (the LEDs you wish to set).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This will help you build and flash the program onto the DK.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also, I would recommend you to use the latest version of nrf Connect.&lt;/p&gt;
&lt;p&gt;Hope this helps &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RGB LED with NRF5340</title><link>https://devzone.nordicsemi.com/thread/332727?ContentTypeID=1</link><pubDate>Wed, 06 Oct 2021 06:30:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c43a71e3-839d-42b7-87e1-4b3ede5d7f36</guid><dc:creator>Mr.NCK</dc:creator><description>&lt;p&gt;Hi Priyanka,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I want to use via PWM individual mode of nrf5340 or SDK already has RGB LED samples&amp;nbsp; I need to know how to use that sample for nrf5340&lt;/p&gt;
&lt;p&gt;Thanks &amp;amp; regards&lt;/p&gt;
&lt;p&gt;Navin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RGB LED with NRF5340</title><link>https://devzone.nordicsemi.com/thread/332651?ContentTypeID=1</link><pubDate>Tue, 05 Oct 2021 13:33:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3409d212-5d66-412c-9d4b-061f6488d088</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am looking into it and will get back to you within a day or two. Also, by controlling the LED, could you be more specific as to how you wish to do so?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>