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
  • The ADXL335 is an analog sensor - has voltage outputs, you could use internal ADC to get the voltage levels. Pls check ADC Examples Also check the forum on how to connect and use ADC, there are good answers with details, I'm not sure I can add new info on that :)

    I would use a time to periodically read the date from pins and the characteristics with new data.

    Hope it points to the right path.

    Cheers!

Reply
  • The ADXL335 is an analog sensor - has voltage outputs, you could use internal ADC to get the voltage levels. Pls check ADC Examples Also check the forum on how to connect and use ADC, there are good answers with details, I'm not sure I can add new info on that :)

    I would use a time to periodically read the date from pins and the characteristics with new data.

    Hope it points to the right path.

    Cheers!

Children
Related