Linear Voltage Divider Question
Posted: Sat Aug 08, 2015 8:57 pm
I've been searching for a while about a possible voltage divider setup. I'm having trouble calculating the values for the resisters to make it work.
Essentially, I have a sensor mapped to the ADC pin of the ESP8266. The sensor itself uses a range of vdd/2 to vdd (my vdd being 3.34v).
So, essentially I've been trying to calculate the voltage dividers so;
VDD/2 (1.67v) would be 0 and VDD(3.34) would be 1023. I would like it to scale in a linear fashion within the range.
I understand that the ESP8266 ADC can only measure from 0v to 1v.
Currently, I've been using the values without success;
R1 = 4300k (to v3.3) to ADC0 PIN
R2 = 10k (to ADC Source) to ADC0 PIN
R3 = 1k (to GND) to ADC0 PIN
Can anyone point me to an online calculator, or at least the right direction, to find the solution?
Thank You.
EDIT: An example, but can't figure it out for some reason: http://reibot.org/2011/12/26/linear-res ... r-the-adc/
Essentially, I have a sensor mapped to the ADC pin of the ESP8266. The sensor itself uses a range of vdd/2 to vdd (my vdd being 3.34v).
So, essentially I've been trying to calculate the voltage dividers so;
VDD/2 (1.67v) would be 0 and VDD(3.34) would be 1023. I would like it to scale in a linear fashion within the range.
I understand that the ESP8266 ADC can only measure from 0v to 1v.
Currently, I've been using the values without success;
R1 = 4300k (to v3.3) to ADC0 PIN
R2 = 10k (to ADC Source) to ADC0 PIN
R3 = 1k (to GND) to ADC0 PIN
Can anyone point me to an online calculator, or at least the right direction, to find the solution?
Thank You.
EDIT: An example, but can't figure it out for some reason: http://reibot.org/2011/12/26/linear-res ... r-the-adc/