This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

RGB LED with NRF5340

Hi,

I need your help to know "How to control RGB LED using PWM in nrf5340?". I have already tried the "RGB_led" sample in NRFconnect SDK v1.5.0 

But can't able to control my led. Kindly Support me to understand the Project and also to get output.

Thanks & Regards 

Navin Chakravarthy K

Parents
  • Hi,

    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?

    Regards,

    Priyanka

  • Hi Priyanka,

     I want to use via PWM individual mode of nrf5340 or SDK already has RGB LED samples  I need to know how to use that sample for nrf5340

    Thanks & regards

    Navin

  • Hi Navin,

    I would like to know whether you are using the nRF5340 DK or nRF5340 PDK?

    Also, your connection seems correct. I will mention my steps below:

    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.

    2. While building using the SEGGER, the nrf5340dk_nrf5340_cpuapp was chosen as the board variant. 

    3. Build and flash using SEGGER.

    These worked well. Kindly verify these with yours. Also make sure you have the latest version of nRF Connect SDK.

    Regards,

    Priyanka

  • Also make sure you have the latest version of nRF Connect SDK.

    Hi priyanka

    all the others are verified. I am using nrf connect sdk v 1.5.0

    Thanks & Regards

    Navin

  • Hi,

    Could you verify this program on the nRF5340 DK, using the nRF Connect SDK version 1.7.0?

  • Hi Priyanka 

    I need to know two things

    1) What is the difference are there between NCS version 1.5.0 & 1.7.0

    2) I have given 20000 for pulse red it glows the pink color. But I need red color how to give the  proper pulse value

  • Mr.NCK said:
    1) What is the difference are there between NCS version 1.5.0 & 1.7.0

    version 1.7.0 is an updated version. Please refer the release notes for further details.

    Mr.NCK said:
    2) I have given 20000 for pulse red it glows the pink color. But I need red color how to give the  proper pulse value

    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.

    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.

Reply
  • Mr.NCK said:
    1) What is the difference are there between NCS version 1.5.0 & 1.7.0

    version 1.7.0 is an updated version. Please refer the release notes for further details.

    Mr.NCK said:
    2) I have given 20000 for pulse red it glows the pink color. But I need red color how to give the  proper pulse value

    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.

    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.

Children
No Data
Related