Sending data via Bluetooth using Arduino Nano 33 IoT

Hello everyone!

I am super new to using Arduino and decided to use it as school project. I am using a Piezo sensor to measure heart rate and would like to use Bluetooth to get those numbers on my phone. I connected to Arduino using LightBlue app and feels like I need one library or one line of code just to print out the data on the phone.

Any help is appreciated!

Yes, you will need the ArduinoBLE.h library and a line of code with writeValue().

So I got that to work, played around but eventually got it, thanks! Another thing I'd wish to fix if that is possible is to get the values to my phone in dec instead of hex format I'm getting now. Is that possible?

All data is sent in binary bytes. If your data is being sent as numerical data and not text, then the representation as hex, decimal, or binary is for human viewing and is set by the receiving display code.

Light Blue certainly has a setting for showing the data as decimal.

Appreciate it a a lot! Got it to work eventually