Go Down

Topic: Wrong readings from voltage divider (Read 9122 times) previous topic - next topic


I 'm sorry michinyon, I don't understand what you mean by: Those things are not "resistors"

Which things? The schematic for the circuit I took the measurements on is this:

As for the voltage divider not being the best way to approach the problem, I 'm all ears, as long as you bear in mind that I have very limited kit at my disposal (resistor kit, handful of ceramic caps and NPN transistors, couple of MOSFETs, DMM, some zeners, IR and normal LEDs, breadboards, veroboard, wires, soldering stuff, Seeeduino Mega 1280, laptop, um, that's about it).


I forgot to mention that this point:

2. If you feed the ADC from a source resistance of more than 10K, then you need to take precautions to prevent the increased source resistance affecting the reading. There are two simple ways of doing this. One is to connect a capacitor of 0.01uF or greater between the analog pin and ground. This has the side effect of slowing down the rate of change of the signal, but this is acceptable in some applications. The other is to introduce a delay in the code for analogRead() between selecting the input channel and starting the conversion. The delay needed is about 1us per additional 10K source resistance.

is most relevant if you are using 2 or more analog input pins. If you only ever read from one analog pin, then after the first reading the internal multiplexer is always set to that pin, in which case the effects of using a high source resistance are much reduced.
Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

Go Up