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

Getting ADC working with Asset Tracker

Hi

Im using the NRF9160 DK

I have got the Asset tracker working, can modify the code, runs with nrfCloud, beauty

Just followed the docs

But then, I want to use the SAADC module of the 9160 - OMG, big vacuum black hole of documentation here

I am using Windows

Can someone point me to an example of using the SAADC module from within the Asset tracker application code?

I can not seem to run this ninja thing, can't find any docs on getting that to work under windows with SES and connect SDK, need to add the ADC files from zephyr master if following the example on GIT - but can't seem to get the ninja bit working to do that

Would be happy just to use the nrfx hal file, but can't find an example for that either

I can see making the asset tracker with so many auto-config options is great out of the box for a basic demo, but actually, if you want to add something. it becomes a multi-headed config monster

Must be a tutorial on this somewhere?

Thanks for any help

Parents
  • I would suggest you to try to achive this step-by-step. First you could try to get a simple ADC sample up and running, then you can merge it with the Asset Tracker sample. There is actually a guide for one such sample in the NCS tutorial,

    Check it out here: Create a Light Intensity Controller. You can skip section "3.1 Tools and Tips", but complete section 3.2-3.5

    When you've gotten that up and running, you can merge it with the asset tracker. Simply merge the prj.conf files, then transfer the file file nrf9160dk_nrf9160ns.overlay file (which you create in 3.4. Modify the device tree) to nrf/applications/asset_tracker, and eventually merge the main.c files.

    It may be easier to follow the tutorial if you complete part 0 and 1 first.

    Please get back to me if you encounter any problems.

    Best regards,

    Simon

Reply
  • I would suggest you to try to achive this step-by-step. First you could try to get a simple ADC sample up and running, then you can merge it with the Asset Tracker sample. There is actually a guide for one such sample in the NCS tutorial,

    Check it out here: Create a Light Intensity Controller. You can skip section "3.1 Tools and Tips", but complete section 3.2-3.5

    When you've gotten that up and running, you can merge it with the asset tracker. Simply merge the prj.conf files, then transfer the file file nrf9160dk_nrf9160ns.overlay file (which you create in 3.4. Modify the device tree) to nrf/applications/asset_tracker, and eventually merge the main.c files.

    It may be easier to follow the tutorial if you complete part 0 and 1 first.

    Please get back to me if you encounter any problems.

    Best regards,

    Simon

Children
Related