Offline
Newbie
Karma: 0
Posts: 8
|
 |
« on: May 26, 2012, 03:46:43 pm » |
Hi all, I have a problem with Analog Input on my Arduino Uno. I have A0 port to AD620N in-amp (powered from Arduino - +5V from USB), which amplifies signal from MPX2010DP sensor (powered from external 12V power supply). Readings I get from A0 port are far from I expect - they tend to oscillate from around 400mV to 4000mV (with the same frequency as sine signal I get when A0 is not connected to anything), when, standard, simple voltometer shows "steady" 1700+-10mV - and I don't know why.
I've tried connecting AD* to the same power supply as MPX* (power supply has +5V and +12V rails with two ground lines), disconnecting external supply, changing AD* - but no success.
I would be very thankful for any help/ideas why this may be happening.
Thanks in advance.
|
|
|
|
|
Logged
|
|
|
|
|
Massachusetts, USA
Offline
Tesla Member
Karma: 98
Posts: 6389
|
 |
« Reply #1 on: May 26, 2012, 07:01:00 pm » |
What gain resistor are you using on the IA?
Do you have an oscilloscope handy?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 8
|
 |
« Reply #2 on: May 27, 2012, 12:35:34 am » |
I am using 47 Ohm resistor (for very high gain, since changes in pressure I'm going to detect are very small) - but changing it does not change the reading form A0 - it still oscillates.
Unfortunately, I do not have an oscilloscope, only very simple voltometer.
|
|
|
|
|
Logged
|
|
|
|
|
Netherlands
Offline
Tesla Member
Karma: 91
Posts: 9449
In theory there is no difference between theory and practice, however in practice there are many...
|
 |
« Reply #3 on: May 27, 2012, 05:34:11 am » |
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 8
|
 |
« Reply #4 on: May 27, 2012, 06:03:43 am » |
I do not have second Arduino either. I have tried connecting IA to other analog inputs, but with the same results - oscillating input (with nothing connected, it is simple sine wave).
|
|
|
|
|
Logged
|
|
|
|
|
Massachusetts, USA
Offline
Tesla Member
Karma: 98
Posts: 6389
|
 |
« Reply #5 on: May 27, 2012, 06:12:35 am » |
If you short -IN and +IN on the AD620 do you get 0 volts out?
Are you using long wires between the pressure sensor and the AD620? They might act as antenna and shielded twisted-pair cable might be a better choice.
Are you sure the 12V to the sensor is well filtered?
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Tesla Member
Karma: 73
Posts: 6638
Arduino rocks
|
 |
« Reply #6 on: May 27, 2012, 06:22:10 am » |
Can you photograph or sketch your whole circuit? We're guessing otherwise.
The AD620 will struggle work from a single 5V supply - its inputs both need to be very close to +2.5V (about 2V to 3.5V) or it'll saturate.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 8
|
 |
« Reply #7 on: May 27, 2012, 06:55:10 am » |
I'll post the sketch as soon as I get home. What baffles me is that readout from voltometer works (or looks like it is) OK- it changes from 1700mV to 1600mV (or 1900mV) as I change pressure on sensor inputs.
I can try and connect AD620 to 12V power, but I don't know if Arduino AIn can handle its output.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 8
|
 |
« Reply #8 on: May 27, 2012, 09:07:04 am » |
Little selfbump, here is my board, +5V comes from Arduino and AD620 is grounded by Arduino.  I have shorted IN+ an IN- and I do not get 0 volts, I get around 1.6V. Cables are quite short (max 5cm).
|
|
|
|
|
Logged
|
|
|
|
|
Massachusetts, USA
Offline
Tesla Member
Karma: 98
Posts: 6389
|
 |
« Reply #9 on: May 27, 2012, 09:13:08 am » |
There's your problem! You are hooking one side os a differential output to both sides of the amp!
Shouldn't you connect Vout+ (Pin 2) to +IN and Vout- (Pin 4) to -IN?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 8
|
 |
« Reply #10 on: May 27, 2012, 09:15:57 am » |
OK, i forgot so specify that MPX image is wrong here - in database I found it has only one output. I have VOut+ connected to VIn+ and VOut- to VIn-. My bad ^^'' But, nevertheless, when I shor the AD620 i do not get 0 volts...
|
|
|
|
|
Logged
|
|
|
|
|
Massachusetts, USA
Offline
Tesla Member
Karma: 98
Posts: 6389
|
 |
« Reply #11 on: May 27, 2012, 09:23:10 am » |
You don't seem to be providing a reference voltage on the REF pin of the IA. Have you tried grounding that pin?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 8
|
 |
« Reply #12 on: May 27, 2012, 09:32:55 am » |
I have grounded that pin, output still oscillates but with different pattern (i get "peaks" from time to time), and when shorted i still get 0.5V volts on IA. Voltometer reports changing pressure better, and "peaks" change in amplitude when I change pressure)
|
|
|
|
|
Logged
|
|
|
|
|
Massachusetts, USA
Offline
Tesla Member
Karma: 98
Posts: 6389
|
 |
« Reply #13 on: May 27, 2012, 03:19:03 pm » |
Is there something plugged into the AOUT jack? If not it appears to be wired to short DOUT to Ground. 
|
|
|
|
|
Logged
|
|
|
|
|
Miramar Beach, Florida
Offline
Faraday Member
Karma: 50
Posts: 3458
|
 |
« Reply #14 on: May 27, 2012, 04:31:09 pm » |
This is the datasheet at Analog Devices. http://www.analog.com/static/imported-files/data_sheets/AD620.pdfNote carefully in the specifications the output swing (page 4) and the input voltage range (page 3). Neither goes to the ground rail. edit: I think that IC was designed for a dual power supply. Maybe there is a better op-amp for this? 
|
|
|
|
« Last Edit: May 27, 2012, 04:35:54 pm by SurferTim »
|
Logged
|
|
|
|
|
|