Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

You are here: Forum Home → ANT+ Forums → Miscellaneous → Thread

   

ANT+ BPWR Example and hx711 ADC

Rank

Total Posts: 4

Joined 2020-11-30

PM

Hi looking for a pointer of where to look here! Note I'm fairly new to this so bear with me!

I have a DT52 kit and have it all loaded up and running the BPWR (Bike power) example. I would like to use this as a test platform to send some data as Power to a watch. So far so good. I can use Simulant and see the device and change the values with the buttons. I then enabled the SAADC and was able to pick up the analog value and send this as power too.

The SAADC is a bit low res so I purchased a hx711 (Strain gauge amp/ADC) and using some example code I was able to get this working in isolation i.e. I can sample the ADC and see the value in my code (NRF_LOG).

However, if I try to run the BPWR and the hx711 code together the ANT+ will not connect. I have some LOG entries configured and I only see entries from the hx711 event and not the BPWR/ANT events which I would see if I comment out the hx711 code. The hx711 code uses some PPIs, timers and gpiote and I'm wondering if there is a conflict here but I am finding the levels of abstraction in the BPWR code a challenge.

Any pointers as to where/how to look here would be much appreciated as I'm in a bit of a rut at the moment!

Cheers

Stephen

     
Rank

Total Posts: 4

Joined 2020-11-30

PM

OK - Apologies - writing the above focused my mind! The hx711 code was doing NRF_PPI->CHEN = 7 and search of the web indicated the softdevice needs a lot of others! I changed this and it now all works.......