Go Back   EcoModder Forum > EcoModding > Instrumentation > OpenGauge / MPGuino FE computer
Register Now
 Register Now
 

Reply  Post New Thread
 
Submit Tools LinkBack Thread Tools
Old 01-03-2011, 08:29 AM   #1 (permalink)
EcoModding Apprentice
 
meelis11's Avatar
 
Join Date: Feb 2009
Location: Estonia
Posts: 199

Green frog - '97 Audi A4 Avant 1.9TDI 81kW
Diesel
90 day: 43.1 mpg (US)
Thanks: 19
Thanked 40 Times in 28 Posts
new feature idea: battery voltage

Hi,
has this idea been discussed before? At least I haven't seen it.
Anyway, I would like to see battery voltage in MPGuino and started searching how to measure 12V battery voltage (max should be 15V I think) and found this link and some other voltage divider pages.
http://www.clarenceho.net:8123/blog/...test-voltmeter

I am going to build it, probably It even does not need extra input to mpguino - I am going to measure 12V input voltage before voltage regulator. Voltage regulator signal would be used as Vref
extra parts needed: 2 resistors and some wire :P
I am choosing resistors to make divide-by-three divider, so signal to atmega input is 0-5V
What ohms should I choose? 10K and more I think?

Also I am going to add coolant temperature to this screen (needs extra input pin) along with liters/hour and RPM
new screen will be "Car sensors" or similar.

Meelis


Last edited by meelis11; 01-03-2011 at 03:39 PM..
  Reply With Quote
Alt Today
Popular topics

Other popular topics in this forum...

   
Old 01-07-2011, 07:01 PM   #2 (permalink)
EcoModding Apprentice
 
Join Date: Jan 2010
Location: Newark, DE
Posts: 143

'91 CRX - '91 Honda CRX DX
90 day: 34.91 mpg (US)
Thanks: 0
Thanked 14 Times in 14 Posts
An alt with a bad voltage regulator can hit 20V+. That doesn't happen often, but it would suck to add your 'duino to the repair bill. I would go for divide-by-5 at least. That should give you a 0-25V range with 0.024V steps. Way more precision than necessary.

Last edited by bobski; 01-07-2011 at 07:06 PM..
  Reply With Quote
The Following User Says Thank You to bobski For This Useful Post:
meelis11 (01-08-2011)
Old 01-22-2011, 07:03 AM   #3 (permalink)
EcoModding Apprentice
 
meelis11's Avatar
 
Join Date: Feb 2009
Location: Estonia
Posts: 199

Green frog - '97 Audi A4 Avant 1.9TDI 81kW
Diesel
90 day: 43.1 mpg (US)
Thanks: 19
Thanked 40 Times in 28 Posts
Update: My mpguino is showing battery voltage
  Reply With Quote
The Following User Says Thank You to meelis11 For This Useful Post:
FalconFour (02-12-2011)
Old 02-12-2011, 04:47 AM   #4 (permalink)
EcoModding Lurker
 
FalconFour's Avatar
 
Join Date: Sep 2010
Location: Fresno, CA
Posts: 78

LEAF - '11 Nissan LEAF
Thanks: 4
Thanked 9 Times in 7 Posts
Congrats! Care to share some pics for us drooling geeks?
  Reply With Quote
Old 02-14-2011, 05:58 AM   #5 (permalink)
EcoModding Apprentice
 
meelis11's Avatar
 
Join Date: Feb 2009
Location: Estonia
Posts: 199

Green frog - '97 Audi A4 Avant 1.9TDI 81kW
Diesel
90 day: 43.1 mpg (US)
Thanks: 19
Thanked 40 Times in 28 Posts
I can make some pics to show how it is installed but meanwhile that battery voltage is not hard to imagine how it shows on LCD display.
It is like "V 12.21"

I have modified format function to replace leading zeroes with spaces - instead "012.34" it shows " 12.34"
  Reply With Quote
Old 02-14-2011, 08:01 AM   #6 (permalink)
Making Ecomods a G thing
 
Join Date: Jan 2011
Location: Illinois
Posts: 655

Angie - '08 Infiniti G35 X
90 day: 22.03 mpg (US)
Thanks: 35
Thanked 75 Times in 58 Posts
Quote:
Originally Posted by bobski View Post
An alt with a bad voltage regulator can hit 20V+. That doesn't happen often, but it would suck to add your 'duino to the repair bill. I would go for divide-by-5 at least. That should give you a 0-25V range with 0.024V steps. Way more precision than necessary.
i would suspect that if the voltage regulator went out that this mod wouldn't really matter, your just modifying it to display the voltage, it would still be exposed to a voltage spike even if it didn't display it
__________________

  Reply With Quote
Old 02-14-2011, 11:16 AM   #7 (permalink)
EcoModding Apprentice
 
Join Date: Jan 2010
Location: Newark, DE
Posts: 143

'91 CRX - '91 Honda CRX DX
90 day: 34.91 mpg (US)
Thanks: 0
Thanked 14 Times in 14 Posts
Quote:
Originally Posted by Joenavy85 View Post
it would still be exposed to a voltage spike even if it didn't display it
Yes, it would see the increased voltage on the power supply connections, but that would be taken care of by the MPGuino's on board voltage regulator. It's a simple linear regulator so the excess voltage would be dissipated as heat. The additional heat could still cause problems, but it wouldn't immediately damage anything.
The inputs on the other hand are unregulated and designed for TTL-level input - 0 to 5V. A divide-by-3 voltage divider would turn that range into 0-15 volts, which a malfunctioning alternator can exceed. It's entirely possible the inputs can handle voltages in that range without damage, but if we can avoid such an occurrence by simply choosing different resistor values, why take the chance?
  Reply With Quote
Old 03-21-2011, 01:18 PM   #8 (permalink)
EcoModding Lurker
 
Join Date: Mar 2011
Location: In My Truck
Posts: 23
Thanks: 6
Thanked 0 Times in 0 Posts
I think this is a great idea. My old truck sometimes likes to energize the fuel pump just for fun, and it drains the battery. It'd be nice to get some warning when it is in that "mood".

I can imagine unwelcome potential consequences from coupling the raw 12v to the analog inputs of the arduino. I'm not sure voltage dividers would be sufficient. I also want to minimize pin use, and I'd like to free up some pins from the original design.

Thinking about features...

I can see two voltages that would be useful - The running voltage, which would reflect alternator output, etc (call it "running volts", RV). And the lowest voltage from the battery while the vehicle was off ("cold volts", CV).

The CV code would need to ignore the drop in voltage that occurs at startup.

An option could be added to display CV at startup. Maybe it would periodically flash on the display for the first 60 seconds after startup, reducing in frequency over time, and also display on a diag screen?

We might have an option to store the average RV, and flash an alert if it seems low?

It might be neat to have optional code to track a voltage drain over time by monitoring CV. So we might monitor the decrease in CV per hour, and report a voltage drop per hour, or per day.
  Reply With Quote
Old 03-21-2011, 03:13 PM   #9 (permalink)
UFO
Master EcoModder
 
UFO's Avatar
 
Join Date: Sep 2010
Location: Denver, CO
Posts: 1,300

Colorado - '17 Chevrolet Colorado 4x4 LT
90 day: 23.07 mpg (US)
Thanks: 315
Thanked 179 Times in 138 Posts
Quote:
Originally Posted by bobski View Post
Yes, it would see the increased voltage on the power supply connections, but that would be taken care of by the MPGuino's on board voltage regulator. It's a simple linear regulator so the excess voltage would be dissipated as heat. The additional heat could still cause problems, but it wouldn't immediately damage anything.
The inputs on the other hand are unregulated and designed for TTL-level input - 0 to 5V. A divide-by-3 voltage divider would turn that range into 0-15 volts, which a malfunctioning alternator can exceed. It's entirely possible the inputs can handle voltages in that range without damage, but if we can avoid such an occurrence by simply choosing different resistor values, why take the chance?
Just clamp the input pins to the power rail with diodes. Then you set your divider to what you need for nominal operation.
__________________
I'm not coasting, I'm shifting slowly.
  Reply With Quote
Old 03-21-2011, 05:58 PM   #10 (permalink)
EcoModding Apprentice
 
Join Date: Jan 2010
Location: Newark, DE
Posts: 143

'91 CRX - '91 Honda CRX DX
90 day: 34.91 mpg (US)
Thanks: 0
Thanked 14 Times in 14 Posts
Quote:
Originally Posted by UFO View Post
Just clamp the input pins to the power rail with diodes.
Sounds safe. :/
Maybe if you use high value resistors for your divider. Low values might pass enough current to out-feed the power regulator. If the regulator can basically run backwards, that might not be a problem. If it can't, you'll end up with greater than 5V as VCC.
Also, the forward bias voltage of the diode would mean the input hits 5.7 volts (or so, depending on the diode) before it starts clamping down.

  Reply With Quote
Reply  Post New Thread


Tags
alternator, battery, charging voltage, mpguino, voltage





Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Content Relevant URLs by vBSEO 3.5.2
All content copyright EcoModder.com