Setting up BLE on Nano 33 iOT

Hello,

Can anyone point me to a documents that shows how to use the Arduino BLE library? I have looked here at the Arduino library doc. It talks alot about the functions and methods available and what each one does, but does not talk about how to put it all together. For instance, which methods are needed for simply connecting to the Nano through Bluetooth connection from my cell phone or computer. I have also seen the example sketches but they only refer to the sketch purpose and not how to build a BLE connection from scratch. Thanks in advance.

When you installed the libraries trough Tools -> Manage Libraries, go to

File -> Examples -> ArduinoBLE -> Peripheral -> LED

Compile and download the example to your board.

Then use a smartphone app like BLE Scanner from bluepixel (free on iPhone). Start the app and connect from the app. Look at the different services and characteristics and compare with the source code. Start modifying the code and compare the results with the app.

If you have any questions, feel free to come back and ask.

First, Please install the BLE library(IDE-> Sketch->Include library->Manage Libraries->BLE) and then, open the LED sketch under the Peripheral folder.
(File->Examples->ArduinoBLE->Peripheral->LED)

Install the nRF connect app on the mobile.

  • Upload the BLE sketch
  • Open the serial monitor
  • Follow the commands as per in the attachments
  • Pass values 0 and 1 to UINT 8 to turn on and turn off your board LED and you can see the output in the serial monitor too

//Arduino

Thanks.

I also found this video series on the basics of Bluetooth LE here. For anyone looking for more info.