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).
I am aware of that 5V would potentially harm the GPIO so that I asked for some guidance in order to avoid such a situation. What parameters are essential to calculate a circuit that will drive the sensor to the ADC?
I am aware of that 5V would potentially harm the GPIO so that I asked for some guidance in order to avoid such a situation. What parameters are essential to calculate a circuit that will drive the sensor to the ADC?