Pages: 1 [2]   Go Down
Author Topic: Wrong readings from voltage divider  (Read 2244 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Jr. Member
Karma: 1
Posts: 75
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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).

United Kingdom
Offline Offline
Tesla Member
Karma: 224
Posts: 6613
Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Please do not ask for unpaid help via PM, use the forum.

Pages: 1 [2]   Go Up
Jump to: