I have a sensor which has output in the range of 0-5V. I want to connect it to an nrf51822 GPIO pin and to be able to read the value via it's 10 bit ADC. Is there any guide on how to select the voltage divider values, prescaler etc??
I have a sensor which has output in the range of 0-5V. I want to connect it to an nrf51822 GPIO pin and to be able to read the value via it's 10 bit ADC. Is there any guide on how to select the voltage divider values, prescaler etc??
That won't fly, you cannot exeed VDD+0.3V
on any GPIO input.
And since you need a divider anyway you can now design it to fit your selected reference voltage.
Not more help possible at this point- as the OP did not provide the needed infos (impedance, accuracy).
@Jorn according to my calculations I should use R2 - 1kOhm, R1 - 7.3kOhm for the voltage divider. What is the formula to calculate the capacitance? Is there a schematic on how to connect the FET? When using these values should I adjust the prescaling of ADC as well??
@Jorn according to my calculations I should use R2 - 1kOhm, R1 - 7.3kOhm for the voltage divider. What is the formula to calculate the capacitance? Is there a schematic on how to connect the FET? When using these values should I adjust the prescaling of ADC as well??