Hello,
I want a simple example of ADC that can be used by nrf5340 pdk, so I found an example on the forum, but when I compile, it shows an error.
Can someone give me an example simple of ADC that works on nrf5340 pdk?
Thank you in advance!

Hello,
I want a simple example of ADC that can be used by nrf5340 pdk, so I found an example on the forum, but when I compile, it shows an error.
Can someone give me an example simple of ADC that works on nrf5340 pdk?
Thank you in advance!

Hello!
What kind of error are you getting when trying to build the sample? Please share your prj.conf as well.
Best regards,
Carl Richard
Hello!
What kind of error are you getting when trying to build the sample? Please share your prj.conf as well.
Best regards,
Carl Richard
Hi,
When I try to build the sample, it show this:




Hello again!
Seems like you are using the Analog-to-Digital Converter sample from Zephyr? The documentation for this sample states that it won't work properly on Nordic platforms and points to Battery Voltage Measurement sample as a better demonstration of how to use the ADC on Nordic products. I recommend trying that!
Best regards,
Carl Richard
Hello,
I found the example that you say (battery), but when I try to build, it show aussi an error.

Do you have some idea for this?
Besides, do you have a simpler example than that? I think it's a little bit complicated.
Thank you in advance!
Hi again!
I see now that the sample may not be supported on the nRF5340 yet. We don't have any other official ADC samples, unfortunately, but could you try this one. It's an unofficial sample that I've added on my GitHub. It should work for the nRF5340DK.
Best regards,
Carl Richard
Yes, this sample functioning perfect. Thank you very much!