Hello,
NCS1.9.1, nRF52840DK, Windows10 X64, VS Code,
1.
i want to read voltage from RT_ADC pin (P0.04),
and than converting NTC thermistor value to Temperature.
2.
read battery Voltage;
is there any sample code?
thanks
Best Regards
Hello,
NCS1.9.1, nRF52840DK, Windows10 X64, VS Code,
1.
i want to read voltage from RT_ADC pin (P0.04),
and than converting NTC thermistor value to Temperature.
2.
read battery Voltage;
is there any sample code?
thanks
Best Regards
Hi,
You can find general ADC sample and battery voltage sample in Zephyr:
There is also an un-official example in this GitHub repository. This is written for the nRF9160, but it should work for the SAADC in nRF52 devices as well.
Best regards,
Jørgen
Hi,Jørgen
thanks for reply,
the project v1.9.1\zephyr\samples\boards\nrf\battery,

the project v1.9.1\samples/drivers/adc

how to write overlay file for nRF52840DK (NTC pin P0.04)?

the voltage for what pin?
what is the raw value ? for which pin?
Best regards,
Hi,Jørgen
thanks for reply,
the project v1.9.1\zephyr\samples\boards\nrf\battery,

the project v1.9.1\samples/drivers/adc

how to write overlay file for nRF52840DK (NTC pin P0.04)?

the voltage for what pin?
what is the raw value ? for which pin?
Best regards,