This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2652RB: Add analog read code to simple peripheral example

Part Number: CC2652RB


Hi TI expert

I am using a simple peripheral code for doing a project with TI's CC2652RB LP. How i can add existing ADCSinglechannel from resource explorer to the project zero code. What things i need to do?
My final task is to store ADC value in characteristic 3 of simple peripheral and transmit the same through BLE. I am really stuck in this please help me out.

Best regards,

Thomas

  • You can create a periodic event to do ADC reading and update ADC reading  value in characteristic 3.

  • Thomas,

    I just assigned an expert to help you. Also, consider the suggestion made by YK Chen. 

    Can you clarify what SDK version you are intending to use?

    -Luis

  • Hi Thomas,

    I agree with YK that creating a periodic event would be a straightforward way of implementing the functionality you are looking for. The Custom Profile SLA lab discusses how to add a periodic task. Specifically, Task 6 goes in-depth into the procedure. I believe that section of the SLA lab will provide insight into how to implement your desired functionality.

    Regards,

    Jan

  • How to make the update periodic? I have used project zero code for custom BLE profile the same as suggested by JAN, in that tutorial in step 4 of task 5 it talks about making the data periodic. I have followed all the steps, but the data is not getting updated when i press the button.

  • Hello,

    If you have completed all steps properly, then pressing the button in step 4 in Task 5 should increment the value. Try pressing the button and then reading the characteristic again or enabling notifications. If you have any further questions, please consider creating a new thread on E2E since this thread was not originally about that question.

    Regards,

    Jan