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
  • To be honest with you, I thought about using the debugger to understand what is happening better. But as I'm not that experienced writing code this way, I'm even less using debug tools. Not that sure how to configure it.

    Anyway, I was trying to understand if there was any known issue or direct tip.

    I will search a bit more to understand how to make a proper and useful debug. If you have any tip on this...it would be really welcome Slight smile

Children
Related