This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Implementing SAADC example to send data over Bluetooth

Hi,

I'm trying to implement a testing firmware for my Nordic nRF52840 PDK where I can send the data generated on an analog input over Bluetooth.

Basically the idea is to send something like a potentiometer data over Bluetooth MIDI.

First I tried to simply mount the correct circuit on a breadboard and test the SAADC example (via serial) to make sure that everything was ok on the hardware side.

Then, as required for MIDI messages, I successfully found a way to scale down the readings of the pot to 127 values.

My issue now is merging both the SAADC example with a Bluetooth example.

For the Bluetooth MIDI I'm following this tutorial.

I modified it and experiment with it before just using digital inputs and it was everything ok.

On my attempts first I had some errors compiling. Following topics like this I discovered that I needed to modify my sdk_config file.

Apparently I did all the required modifications on the file, so I got no errors while compiling and also no errors uploading the code to my PDK.

The problem is that like this my PDK doesn't appear anywhere as a Bluetooth device (not only checking as a Bluetooth MIDI device, but any Bluetooth terminal). Apparently it is not reaching the Bluetooth device "generation" function.

What am I doing wrong?

Parents Reply Children
No Data
Related