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

How can I modify the HRS code to send data from external sensors to toolbox app

Hi, I'm new to coding on this platform and i'm having issues. I have an ADXL335 acc sensor connected to P0.04, P0.05 and P0.06 of my NRF51822 (on a custom board). Please how would I go about editing the hrs example code to get data from these pins (if not from all 3, then one atleast) and send to the toolbox app? Thanks a lot :).

Parents
  • Hi

    Yes, take a look at the ADC examples that OleHSky has pointed to. You could try out the ADC with UART example specifically which samples voltage on pin P0.01 and converts that to a value and then sends that value over the BLE link and over the physical UART. You can pick up the data with the nRF UART app, available both for IOS and Android. You can also pick up the data on your PC with Master Control Panel. Follow the instructions given in the main file of the example.

Reply
  • Hi

    Yes, take a look at the ADC examples that OleHSky has pointed to. You could try out the ADC with UART example specifically which samples voltage on pin P0.01 and converts that to a value and then sends that value over the BLE link and over the physical UART. You can pick up the data with the nRF UART app, available both for IOS and Android. You can also pick up the data on your PC with Master Control Panel. Follow the instructions given in the main file of the example.

Children
Related