Switch a led of the board on and off using bluetooth on a smartphone

1. Dear Nordic,

I am a software developer and I have a Nordic nRF52840-DK board on which I flash sample and custom applications exactly as you explain in these your tutorials www.youtube.com/watch. (so I use Visual Studio Code with the related Nordic extension).

I spent the last week searching all over the web trying to find a clear solution to these two very simple problems:
1.) I want to switch a led of the board on and off using bluetooth on a smartphone. (the simplest possible version of what you see in this video www.youtube.com/watch
2.) Let's say then that I have the typical "hello world" application taken from the Application template: zephyr/samples/hello_world and I want to change the string "hello world" into "something else" modifying the string with a smartphone using bluetooth.

Please consider that I have already managed to test successfully many other sample and custom applications that don't use bluetooth and that I have already watched you tutorials here www.youtube.com/watch, here www.youtube.com/watch and here www.youtube.com/watch .

My problem with your tutorials is that I can't find a step by step explanation on how to get from a blinking led application to something like what you show in this your other video
www.youtube.com/watch .

Thank you in advance for all the help you'll provide me.

Parents
  • Hi Guglielmo,

    Thank you for contacting DevZone at NordicSemi.

    Sorry to hear that you are struggling to find a clear solution / guide for your basic projects.

    Using Nordic sample Peripheral LBS, you will be able to see and control the state of LED through connected device (for example a mobile phone). 

    You will need nRF connect for Mobile application on your smartphone. All of the procedure, including building and testing the sample, is mentioned on this page: Peripheral_LBS

    Our Peripheral UART sample demonstrates the use-case of sending data back and forth between the UART connection and the DK. Peripheral_UART

    Hope it helps,

    Naeem

  • Dear Naeem 

    Thank you very much!

    Your indications on how to use the Peripherial LBS for switching a led on and off worked and from there we developed a lot using the nRF52833 micros.

    Now we want to understand how to perform an OTA update with the bluetooth. Can you please suggest me where to look? 

    The following is an example of a very simple application that I would like to implement with the nRF52840dk or nRF52833dk:

    1.) The board has a led off

    2.) I update the firmware using the bluetooth of my smartphone

    3.) The board has the led on

    Thank you very much,

    Guglielmo.

Reply
  • Dear Naeem 

    Thank you very much!

    Your indications on how to use the Peripherial LBS for switching a led on and off worked and from there we developed a lot using the nRF52833 micros.

    Now we want to understand how to perform an OTA update with the bluetooth. Can you please suggest me where to look? 

    The following is an example of a very simple application that I would like to implement with the nRF52840dk or nRF52833dk:

    1.) The board has a led off

    2.) I update the firmware using the bluetooth of my smartphone

    3.) The board has the led on

    Thank you very much,

    Guglielmo.

Children
Related