Switzerland
Offline
Sr. Member
Karma: 0
Posts: 261
|
 |
« on: March 07, 2011, 04:04:16 pm » |
Hy
At the moment I'm running an Arduino with an 1S LiPo (3.7V) with an 5v Step-Up regulator. Now I like to monitor also the lipo voltage with an Analoge input. But when I do connected the battery to an Analog Input it always reads ~5V.
How can I get the real value of around 4V?
I know this question has alredy been asked in the old forum but the solution didn't worked...
Thx Andy
|
|
|
|
|
Logged
|
|
|
|
|
Left Coast, CA (USA)
Offline
Brattain Member
Karma: 279
Posts: 15316
Measurement changes behavior
|
 |
« Reply #1 on: March 07, 2011, 04:06:31 pm » |
That doesn't sound right at all. Could you post a drawing showing how you have wired the batter/dc-dc convertor/arduino power and analog input pin/ and all the gound connections ?
I'm pretty sure you must have something wired incorrectly. What you wish to do should be straight forward.
Lefty
|
|
|
|
|
Logged
|
|
|
|
|
Switzerland
Offline
Sr. Member
Karma: 0
Posts: 261
|
 |
« Reply #2 on: March 07, 2011, 04:13:14 pm » |
Hope this helps... 
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 277
Posts: 25499
Solder is electric glue
|
 |
« Reply #3 on: March 07, 2011, 04:13:48 pm » |
It is possible that the step up regulator is generating noise that is giving you a false reading. Try and have a potential divider across the battery and measure across the bottom resistor. Also put some capacitance across the input, to try and reduce the noise.
|
|
|
|
|
Logged
|
|
|
|
|
Switzerland
Offline
Sr. Member
Karma: 0
Posts: 261
|
 |
« Reply #4 on: March 07, 2011, 04:23:41 pm » |
 R1=56k R2=15k Battery is 4.1V Arduino gives me back: 1.94V this would mean =7.24V????? (If I calculated right the Arduino should read 0.866V or am I wrong?)
|
|
|
|
« Last Edit: March 07, 2011, 04:26:20 pm by GekoCH »
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 277
Posts: 25499
Solder is electric glue
|
 |
« Reply #5 on: March 07, 2011, 05:15:13 pm » |
Put a capacitor across R2 to remove noise.
|
|
|
|
|
Logged
|
|
|
|
|
Left Coast, CA (USA)
Offline
Brattain Member
Karma: 279
Posts: 15316
Measurement changes behavior
|
 |
« Reply #6 on: March 07, 2011, 05:22:53 pm » |
Do you have a link to that DC/DC converter? I'm wondering if it could be an isolated converter (no ground continuity from input to outout) ? If not, can you use a ohm better and see if the negitive in and out pins show continuity?
The first way you showed it wired up should work if it's not a isolated converter. Not sure about it being a noise issue or not, only a scope would verify that or not.
Lefty
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 277
Posts: 25499
Solder is electric glue
|
 |
« Reply #7 on: March 07, 2011, 05:33:37 pm » |
can you use a ohm better Theirs no place like ohm.
|
|
|
|
|
Logged
|
|
|
|
|
Left Coast, CA (USA)
Offline
Brattain Member
Karma: 279
Posts: 15316
Measurement changes behavior
|
 |
« Reply #8 on: March 07, 2011, 05:41:27 pm » |
can you use a ohm better Theirs no place like ohm. My spell checker is as dumb as dirt. 
|
|
|
|
|
Logged
|
|
|
|
|
Switzerland
Offline
Sr. Member
Karma: 0
Posts: 261
|
 |
« Reply #9 on: March 08, 2011, 01:11:51 am » |
Do you have a link to that DC/DC converter? I'm wondering if it could be an isolated converter (no ground continuity from input to outout) ? If not, can you use a ohm better and see if the negitive in and out pins show continuity?
The first way you showed it wired up should work if it's not a isolated converter. Not sure about it being a noise issue or not, only a scope would verify that or not.
Lefty
The converter is this one. http://www.bodhilabs.com/vpackbareaaa.htmlDo you know a better one?
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 277
Posts: 25499
Solder is electric glue
|
 |
« Reply #10 on: March 08, 2011, 04:43:49 am » |
What lefty means is try and connect the battery -ve directly to the arduino -ve, not "through" the board.
Sorry the link is not much help, we need to see a schematic.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
God Member
Karma: 3
Posts: 985
Arduino rocks
|
 |
« Reply #11 on: March 08, 2011, 05:50:50 am » |
Is this a standard Arduino (Uno, Duemilanove) or something you built?
Two measurements that would eliminate a lot of speculation are as follows:
- Voltage between Arduino Aref and Arduino Gnd - Voltage between Battery + and Arduino Gnd
If you post these measurements, I'm sure you'll get some useful answers.
|
|
|
|
|
Logged
|
|
|
|
|
|