Pages: 1 [2] 3 4   Go Down
Author Topic: Analog pin problems  (Read 3855 times)
0 Members and 1 Guest are viewing this topic.
London
Offline Offline
Full Member
***
Karma: 0
Posts: 192
Yes, we can (solder)!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Since my last post I've been experimenting with different pull-down resistor and pot values. Unfortunately, whatever resistor I use the connections effect each other. I came to the conclusion that I have to break the connection between the pull-down and the analog pin the moment I connect a voltage source. Alas, I tested the concept on the breadboard and it works (I simply removed pull-downs from the connected analog pins). I wonder, is there a plug socket that breaks the existing connection between the pull-down while creating a new connection? Or should I add a transistor switch driven by the voltage source inserted?
Logged

Pittsburgh, PA, USA
Offline Offline
Faraday Member
**
Karma: 98
Posts: 4801
I learn a bit every time I visit the forum.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

When switching analog inputs quickly, SOP is to sample the new pin twice and ignore the first read.

Logged

I find it harder to express logic in English than in Code.
Sometimes an example says more than many times as many words.

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 208
Posts: 8822
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I wonder, is there a plug socket that breaks the existing connection between the pull-down while creating a new connection?

Yes.  Many mono and stereo phone jacks (like for headphones) have a switch which opens when you plug in a cable.  In normal use this disconnects the speaker(s) when you plug in headphones but can be used for your pull-down resistors.
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

London
Offline Offline
Full Member
***
Karma: 0
Posts: 192
Yes, we can (solder)!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Brilliant! Thanks!
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 618
Posts: 33938
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Unfortunately, whatever resistor I use the connections effect each other.
That is because the values you are using are too large.
If the impedance of anything fed into the analogue inputs is greater than 10K, there is not enough time to charge the sample capacitor before the sample is taken.
So can you lower your impedance?
Your solution of shorting it out will only result in you not getting the right value the first time you take the reading although you might miss this.
Logged

London
Offline Offline
Full Member
***
Karma: 0
Posts: 192
Yes, we can (solder)!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I've tried 1 ohm to 1 M reistors and some in between. No succes. What are you suggesting, Mike?
Logged

London
Offline Offline
Full Member
***
Karma: 0
Posts: 192
Yes, we can (solder)!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Your solution of shorting it out will only result in you not getting the right value the first time you take the reading although you might miss this.

I guess if I add a short delay, it would should be all right.
Logged

London
Offline Offline
Full Member
***
Karma: 0
Posts: 192
Yes, we can (solder)!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

[quote author=Grumpy_Mike link=topic=72289.msg597190#msg597190 date=1321357387
That is because the values you are using are too large.
If the impedance of anything fed into the analogue inputs is greater than 10K, there is not enough time to charge the sample capacitor before the sample is taken.
So can you lower your impedance?
[/quote]


Sorry Mike but I'm still struggling with the idea of impedance. Can you give me an example? And what does that mean that the analog inputs have great impedance? What are the implications of these?
Logged

London
Offline Offline
Full Member
***
Karma: 0
Posts: 192
Yes, we can (solder)!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If the analog input has high impedance, what happens when you add a low and a high impedance source?
Logged

London
Offline Offline
Full Member
***
Karma: 0
Posts: 192
Yes, we can (solder)!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If an analog input has high impedance (whatever it means), does it mean it allows more current through than a low impedance input? Any help to shed some lights on this issue would be appreciated!
Logged

London
Offline Offline
Full Member
***
Karma: 0
Posts: 192
Yes, we can (solder)!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

BTW, does it help if I set the internal pull-ups? Are they any better or reliable than the external ones?
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 618
Posts: 33938
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Are they any better or reliable than the external ones?
No.

An impedance is like a series resistance to the voltage source. In your case the voltage source is a resistance so it means the value.

Quote
I guess if I add a short delay, it would should be all right.
No... the delay you need is between the switching of the multiplexer and the grabbing of the sample. This can only be acheaved by taking two readings of the same panel.

Quote
I've tried 1 ohm t
If you truly have then you have something else that is seriously wrong. Can you provide a schematic of what you have.


Logged

London
Offline Offline
Full Member
***
Karma: 0
Posts: 192
Yes, we can (solder)!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Sure! 

[/URL][/img]
Logged

London
Offline Offline
Full Member
***
Karma: 0
Posts: 192
Yes, we can (solder)!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

][URL=http://s125.photobucket.com/albums/p66/alkopop79/?action=view&current=ardui.jpg][/url]
Logged

London
Offline Offline
Full Member
***
Karma: 0
Posts: 192
Yes, we can (solder)!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Grrrrrrrrrrrrr, direct link here:

http://tiny.cc/hwg2r
Logged

Pages: 1 [2] 3 4   Go Up
Jump to: