ADC

hello

I try to make work the ADC on the NRF52840DK

I would like to use any of the 6 channels on the ARDUINO connector (p0.3, p0.4, p0.28-p0.31)

I am simply not able to make the code work. The only channel that works is channel 1. The project can be found here:

https://drive.switch.ch/index.php/s/NXyb6rleEa9Mcc2

It is an entire workspace. You may open the project through the workspace file.

Any help is apreciated.

/medard

Parents
  • Hi,

    Can you provide more details on what is not working, and how you test the channels?

    I had a quick look at your workspace, but it is not that easy to find your ADC initialization and configuration in the code. Can you please post the relevant code here?

    Note that the configuration in Zephyr is relating to the AIN0-AIN7 pins, and not the A0-A5 Arduino markings on the DK. You can find the mappings from AIN to GPIO pin number in Pin assignments documentation.

    Best regards,
    Jørgen

Reply
  • Hi,

    Can you provide more details on what is not working, and how you test the channels?

    I had a quick look at your workspace, but it is not that easy to find your ADC initialization and configuration in the code. Can you please post the relevant code here?

    Note that the configuration in Zephyr is relating to the AIN0-AIN7 pins, and not the A0-A5 Arduino markings on the DK. You can find the mappings from AIN to GPIO pin number in Pin assignments documentation.

    Best regards,
    Jørgen

Children
No Data
Related