Can you please give us a value for the input resistance of ADC0 .. ADC3 ?
I have "defined" about 47kOhm - it seems for me very low value for an ADC input - is this true?
(value wil be needed for voltage divider calculation - for voltages >3V ...)
Thanks
Michael
Analog input (ADC) - input resistance
Re: Analog input (ADC) - input resistance
Looking in the spec gives even less: Rin = 7kOhm, Carray = 29pF. Let me re-check it with dev team
Re: Analog input (ADC) - input resistance
Found out the "problem":
(my voltage divider for testing is 100kOhm+100kOhm)
- Setting PIN 3...6 to pinmode INPUT - they will be in a high-impedance state - all is fine.
- Make an analogRead() the right value will be given back.
- after analogRead the PIN of the ADC is in pinmode OUTPUT
-> that's why the voltage will be changed at the reference point (input).
Changing back pinmode in code to INPUT - all will be ok again.
Is this by design - that pinmode will be after analogRead set to OUTPUT ?
Michael
(my voltage divider for testing is 100kOhm+100kOhm)
- Setting PIN 3...6 to pinmode INPUT - they will be in a high-impedance state - all is fine.
- Make an analogRead() the right value will be given back.
- after analogRead the PIN of the ADC is in pinmode OUTPUT
-> that's why the voltage will be changed at the reference point (input).
Changing back pinmode in code to INPUT - all will be ok again.
Is this by design - that pinmode will be after analogRead set to OUTPUT ?
Michael
-
- Posts: 10
- Joined: 13 Nov 2016 21:05
Re: Analog input (ADC) - input resistance
Hello,
Have you figured out the appropriate values of the voltage divider?
I need to convert 5V to about 3.3V for analogRead on A2 and A3. I planning to use two resistors, 330K and 180K. At 5V, I get 3.23 V over 330K to earth, then I have a little margin.
I'll get the right value in the controller using the straight-line equation.
Grateful for your comments
/Rogga
Have you figured out the appropriate values of the voltage divider?
I need to convert 5V to about 3.3V for analogRead on A2 and A3. I planning to use two resistors, 330K and 180K. At 5V, I get 3.23 V over 330K to earth, then I have a little margin.
I'll get the right value in the controller using the straight-line equation.
Grateful for your comments
/Rogga
Re: Analog input (ADC) - input resistance
Hi,
you should not have higher voltage as VCC at analog input - this is about 3.05V.
So 3.0V is a good max value.
If you calculate the resistors (including the rolerance range) and check the voltage before with a good multimeter I think it will work fine. If possible you can add a capacitor...
With 100k + 100k I see no difference at multimeter.
Michael
you should not have higher voltage as VCC at analog input - this is about 3.05V.
So 3.0V is a good max value.
If you calculate the resistors (including the rolerance range) and check the voltage before with a good multimeter I think it will work fine. If possible you can add a capacitor...
With 100k + 100k I see no difference at multimeter.
Michael
-
- Posts: 10
- Joined: 13 Nov 2016 21:05
Re: Analog input (ADC) - input resistance
Thanks Michael!
I will measure the voltage of a control circuit that I want to impact as little as possible. My input voltage is <5V. I might choose 200K and 300K. I can not understand the capacitor in a voltage divider?
Thanks for your help
Rogga
I will measure the voltage of a control circuit that I want to impact as little as possible. My input voltage is <5V. I might choose 200K and 300K. I can not understand the capacitor in a voltage divider?
Thanks for your help
Rogga
Re: Analog input (ADC) - input resistance
Only to reduce the noise - for a high Ohm input.Rogga10000 wrote:can not understand the capacitor in a voltage divider?
Michael
-
- Posts: 10
- Joined: 13 Nov 2016 21:05
Re: Analog input (ADC) - input resistance
OK, should I, in my case, connect the capacitor in parallel with the 300K?
/ Rogga
/ Rogga
Re: Analog input (ADC) - input resistance
yes, parallel to ADC input, 100nF should be ok.
Michael
Michael