Wanted - an amp hour meter
- jonescg
- Senior Member
- Posts: 3723
- Joined: Thu, 21 Jan 2010, 23:05
- Real Name: Chris Jones
- Location: Perth, WA.
Wanted - an amp hour meter
Hi All,
I need a digital amp hour meter. Not a combined meter with everything, JUST an amp hour meter. It can measure instantaneous amps too, I guess, but really I need some indication of how many Coulombs have left my battery.
Lots of combined meters do volts, amps, amp hours, watt hours, etc but I really only want the integrated product of amps with time. I guess I could rig up a cycle analyst with a voltage divider and use that, but I'm trying to keep things simple.
Any ideas?
Cheers,
Chris
I need a digital amp hour meter. Not a combined meter with everything, JUST an amp hour meter. It can measure instantaneous amps too, I guess, but really I need some indication of how many Coulombs have left my battery.
Lots of combined meters do volts, amps, amp hours, watt hours, etc but I really only want the integrated product of amps with time. I guess I could rig up a cycle analyst with a voltage divider and use that, but I'm trying to keep things simple.
Any ideas?
Cheers,
Chris
AEVA National Secretary, WA branch chair.
- acmotor
- Senior Member
- Posts: 3607
- Joined: Thu, 26 Apr 2007, 03:30
- Real Name: Tuarn
- Location: Perth,Australia
Wanted - an amp hour meter
What about Zeva's battery meter. A (digital)display of the analogue output to ICE fuel gauge would = Ah. (Ian may even be prepared to mod the device for you to give digital serial out)
Short peaks of ms don't add up to much in Ah so don't be too stressed about logging them. 100's of Amps for seconds is what matters.
This is quite a smart device with a lot of the keeping track of battery Ah sorted out for you.
http://www.evworks.com.au/index.php?pro ... -ZEVA-FGDP

Short peaks of ms don't add up to much in Ah so don't be too stressed about logging them. 100's of Amps for seconds is what matters.
This is quite a smart device with a lot of the keeping track of battery Ah sorted out for you.
http://www.evworks.com.au/index.php?pro ... -ZEVA-FGDP

iMiEV MY12 110,230km in pure Electric and loving it !
- jonescg
- Senior Member
- Posts: 3723
- Joined: Thu, 21 Jan 2010, 23:05
- Real Name: Chris Jones
- Location: Perth, WA.
Wanted - an amp hour meter
Do you reckon it could plug straight into a digital panel meter? I only have 15 Ah on tap, so I wouldn't even need three digits 

AEVA National Secretary, WA branch chair.
- coulomb
- Site Admin
- Posts: 4413
- Joined: Thu, 22 Jan 2009, 20:32
- Real Name: Mike Van Emmerik
- Location: Brisbane
- Contact:
Wanted - an amp hour meter
jonescg wrote: Do you reckon it could plug straight into a digital panel meter?
No, designed for your fuel gauge only. I imagine you could adapt it, with some fiddling.
Nissan Leaf 2012 with new battery May 2019.
5650 W solar, 2xPIP-4048MS inverters, 16 kWh battery.
1.4 kW solar with 1.2 kW Latronics inverter and FIT.
160 W solar, 2.5 kWh 24 V battery for lights.
Patching PIP-4048/5048 inverter-chargers.
5650 W solar, 2xPIP-4048MS inverters, 16 kWh battery.
1.4 kW solar with 1.2 kW Latronics inverter and FIT.
160 W solar, 2.5 kWh 24 V battery for lights.
Patching PIP-4048/5048 inverter-chargers.
-
- Senior Member
- Posts: 424
- Joined: Sat, 15 Dec 2007, 05:09
- Real Name: Ian Hooper
- Location: Australia
- Contact:
Wanted - an amp hour meter
Hi guys, the FGD is not really ideal for driving a digital gauge because its output is analogue (well, PWM), and the capacity adjustment also analogue (we could hard code that but usually there's an interplay between capacity adjustment and gauge scaling).
You could get a decent result using a (digital) voltmeter and hard coding a capacity. 100% SoC would be your aux voltage (13.5V?) and decrease linearly down to 0V = 0Ah / 0% SoC.
By chance the scale is actually pretty close volts : amp-hours!
You could get a decent result using a (digital) voltmeter and hard coding a capacity. 100% SoC would be your aux voltage (13.5V?) and decrease linearly down to 0V = 0Ah / 0% SoC.
By chance the scale is actually pretty close volts : amp-hours!
Ian Hooper
--
"Never doubt that the work of a small group of thoughtful, committed citizens can change the world." - Margaret Mead
http://www.zeva.com.au
--
"Never doubt that the work of a small group of thoughtful, committed citizens can change the world." - Margaret Mead
http://www.zeva.com.au
- jonescg
- Senior Member
- Posts: 3723
- Joined: Thu, 21 Jan 2010, 23:05
- Real Name: Chris Jones
- Location: Perth, WA.
Wanted - an amp hour meter
Hi Ian, that could work out since I have a spare digital voltmeter. It wouldn't be super accurate since the auxiliary voltage (4s LiFePO4) will fluctuate depending on it's SOC and what other things are running, but good enough for a race bike.
I like your full blown instrument panel, but I really don't want to have to flick between screens while hammering down the back straight.
I like your full blown instrument panel, but I really don't want to have to flick between screens while hammering down the back straight.
AEVA National Secretary, WA branch chair.
- evric
- Site Admin
- Posts: 503
- Joined: Sun, 20 Jul 2008, 01:57
- Real Name: Eric
- Location: Adelaide SA
- Contact:
Wanted - an amp hour meter
I'm confused... how can this be done with a simple panel meter? We are talking about measuring current against time.
Last edited by evric on Fri, 18 Jan 2013, 10:28, edited 1 time in total.
Prius Plug-in Conversion: http://www.evplus.com.au ...Holden Barina EV: http://www.evric.kestar.com.au
- jonescg
- Senior Member
- Posts: 3723
- Joined: Thu, 21 Jan 2010, 23:05
- Real Name: Chris Jones
- Location: Perth, WA.
Wanted - an amp hour meter
The EVFG would still be used to measure current by time, but it's output could be sent through a digital panel meter as a fraction of full pack voltage. So it would start at 13.5 V and drop down to 0 V when empty.
I think that's how it would work, Ian?
I think that's how it would work, Ian?
AEVA National Secretary, WA branch chair.
-
- Senior Member
- Posts: 424
- Joined: Sat, 15 Dec 2007, 05:09
- Real Name: Ian Hooper
- Location: Australia
- Contact:
Wanted - an amp hour meter
Yep, so still using the FGD to do coulomb counting, but its output can drive a voltmeter (turning it into a SoC meter, sort of). Fuel gauges in cars are basically reduced-scale voltmeters (in series with a varying resistance fuel tank sensor), the FGD gets tuned to match battery capacity with gauge scale.
You can also run an analogue voltmeter off the FGD, IMHO analogue gauges are easier to read at a glance and don't have problems with glare/washout from the sun, but up to you. Or we could get fancy and port the FGD code to a bigger micro then drive an LCD/OLED display digitally, but that'd be more work
You can also run an analogue voltmeter off the FGD, IMHO analogue gauges are easier to read at a glance and don't have problems with glare/washout from the sun, but up to you. Or we could get fancy and port the FGD code to a bigger micro then drive an LCD/OLED display digitally, but that'd be more work

Ian Hooper
--
"Never doubt that the work of a small group of thoughtful, committed citizens can change the world." - Margaret Mead
http://www.zeva.com.au
--
"Never doubt that the work of a small group of thoughtful, committed citizens can change the world." - Margaret Mead
http://www.zeva.com.au
- jonescg
- Senior Member
- Posts: 3723
- Joined: Thu, 21 Jan 2010, 23:05
- Real Name: Chris Jones
- Location: Perth, WA.
Wanted - an amp hour meter
At least an analogue meter can have the scale adjusted far more easily than a digital one - you just draw an extra zero over everything 

AEVA National Secretary, WA branch chair.
-
- Senior Member
- Posts: 773
- Joined: Thu, 15 Jan 2009, 18:09
- Real Name: Neville Harlick
- Location: Tauranga NZ
Wanted - an amp hour meter
Just came across this thread and, believe it or not, I started work on just such a thing yesterday! I have a spare bms master unit and I thought I'd make an AH meter out of it with a view to including in the next iteration of the master unit, but in the meantime its fairly easy to do as a stand-alone. The master bms unit comprises a small micro with a 2 line lcd and some other bits. My thinking is to use a Tamura Hall-effect sensor driving an op-amp to do some level shifting and scaling, then read the current via one of the adc inputs. Probably can do about 10 samples per second, add them all up to get amp-seconds or something and display current on one line and AHs used on the other.
Would that be the sort of thing you'd want?
Might take me a week or two to actually make one though.
Would that be the sort of thing you'd want?
Might take me a week or two to actually make one though.
- jonescg
- Senior Member
- Posts: 3723
- Joined: Thu, 21 Jan 2010, 23:05
- Real Name: Chris Jones
- Location: Perth, WA.
Wanted - an amp hour meter
Hi Neville
I believe such a device would be extremely popular. Just a simple 3 digit backlit LCD with a reset button, or at least a toggle between amps and amp hours. It could be a standard size, 72 x 36, like these ones: http://egomega.com/tester/new2018power/ ... 000Vdc.jpg
All it needs is a 12 V supply and two sense leads from the shunt (or from the Hall effect sensor). If you could work something out so it could be as ubiquitous as a digital voltmeter, that would be awesome. It shouldn't need access to full pack voltage I would think.
I'm willing to help fund any development of a one-off. BTW Justin of E-bikes.ca has offered to hack the CA so it can read 7 V from a divider, and report full 700 V on the screen. I will definitely use this for both the CRX and the bike, but it need not be located on the dash / instrument panel.
I believe such a device would be extremely popular. Just a simple 3 digit backlit LCD with a reset button, or at least a toggle between amps and amp hours. It could be a standard size, 72 x 36, like these ones: http://egomega.com/tester/new2018power/ ... 000Vdc.jpg
All it needs is a 12 V supply and two sense leads from the shunt (or from the Hall effect sensor). If you could work something out so it could be as ubiquitous as a digital voltmeter, that would be awesome. It shouldn't need access to full pack voltage I would think.
I'm willing to help fund any development of a one-off. BTW Justin of E-bikes.ca has offered to hack the CA so it can read 7 V from a divider, and report full 700 V on the screen. I will definitely use this for both the CRX and the bike, but it need not be located on the dash / instrument panel.
AEVA National Secretary, WA branch chair.
-
- Senior Member
- Posts: 773
- Joined: Thu, 15 Jan 2009, 18:09
- Real Name: Neville Harlick
- Location: Tauranga NZ
Wanted - an amp hour meter
jonescg wrote:
I'm willing to help fund any development of a one-off. BTW Justin of E-bikes.ca has offered to hack the CA so it can read 7 V from a divider, and report full 700 V on the screen. I will definitely use this for both the CRX and the bike, but it need not be located on the dash / instrument panel.
I do this stuff for a hobby so my time is definitely not chargeable - else I'd owe myself a million dollars! - and the parts cost is very small, so don't worry about funding. Besides, if anyone gave me money to do this I'd have to get it finished!
I looked at adding voltage measurement and it would not be hard - I'd use a linear optocoupler to provide isolation. But, firts things first, make an ammeter, turn it into an amp-hour meter and go from there.
-
- Senior Member
- Posts: 773
- Joined: Thu, 15 Jan 2009, 18:09
- Real Name: Neville Harlick
- Location: Tauranga NZ
Wanted - an amp hour meter
Well, I've made an ammeter/amp-hour meter by modifying an old bms control board.
It displays instantaneous amps (sampled 10 times per second) and amp-hours used.
It uses a PIC16F1826 micro, a 16 x 2 lcd, a 5V regulator, some R's and C's, an op-amp and a Tamura current sensor. My one works from 0 - 511 amps. jonescg wants one - what current range do you want?
Tamura L01Z***S05 range is what's needed at a cost of about $25. They have a big, rectangular hole in the middle for your cable and a 3-wire connection to the electronics - gnd, +5 and signal. The signal output goes from .5 to 4.5 v over the current range with 2.5 v as the zero point. I'm only interested in +ve current, so the op-amp level shifts and amplifies to give a 0 - 5 range for the 2.5 - 4.5 v input. The adc turns this into a number 0 - 1023 which is scaled to give the correct current.
It displays instantaneous amps (sampled 10 times per second) and amp-hours used.
It uses a PIC16F1826 micro, a 16 x 2 lcd, a 5V regulator, some R's and C's, an op-amp and a Tamura current sensor. My one works from 0 - 511 amps. jonescg wants one - what current range do you want?
Tamura L01Z***S05 range is what's needed at a cost of about $25. They have a big, rectangular hole in the middle for your cable and a 3-wire connection to the electronics - gnd, +5 and signal. The signal output goes from .5 to 4.5 v over the current range with 2.5 v as the zero point. I'm only interested in +ve current, so the op-amp level shifts and amplifies to give a 0 - 5 range for the 2.5 - 4.5 v input. The adc turns this into a number 0 - 1023 which is scaled to give the correct current.
Last edited by Nevilleh on Wed, 23 Jan 2013, 08:59, edited 1 time in total.
- jonescg
- Senior Member
- Posts: 3723
- Joined: Thu, 21 Jan 2010, 23:05
- Real Name: Chris Jones
- Location: Perth, WA.
Wanted - an amp hour meter
Hi Neville!
Yes I would be interested in it. I will be pulling up to 400 A, so maybe make it 500 A (75 mV drop from a shunt). As long as it doesn't need access to full pack voltage all will be well.
Thanks man!
Chris
Yes I would be interested in it. I will be pulling up to 400 A, so maybe make it 500 A (75 mV drop from a shunt). As long as it doesn't need access to full pack voltage all will be well.
Thanks man!
Chris
AEVA National Secretary, WA branch chair.
-
- Groupie
- Posts: 238
- Joined: Wed, 13 Jun 2012, 04:25
- Real Name: Damian butcher
- Location: Canberra
- jonescg
- Senior Member
- Posts: 3723
- Joined: Thu, 21 Jan 2010, 23:05
- Real Name: Chris Jones
- Location: Perth, WA.
Wanted - an amp hour meter
That looks really cool. Now all I need is for it to display amps and amp-hours on a single, three digit LCD display with a toggle button and a reset button.
Simplicity is my aim here. I don't need bluetooth, CAN-BUS or a smart-phone app to make it work, just another display with a single (at most, two) number display.
Simplicity is my aim here. I don't need bluetooth, CAN-BUS or a smart-phone app to make it work, just another display with a single (at most, two) number display.
AEVA National Secretary, WA branch chair.
-
- Senior Member
- Posts: 773
- Joined: Thu, 15 Jan 2009, 18:09
- Real Name: Neville Harlick
- Location: Tauranga NZ
Wanted - an amp hour meter
Andrew says he has turned off the image file scan (which has prevented me from uploading images) so here's a picture of my display, just to test that it now works:

The features of this thing are:
Uses Tamura Hall-effect current sensor for 0 - 511 A range
Displays instantaneous motor current, sampled 10 times per second
Displays amp hours used since last reset
Reset by holding down reset button while powering on
Uses eeprom to keep data while power off
I will make this an open-source thing once I've done the pcb and sch revisions. Likely cost to make one is about $50.
Any ideas for other useful features? There is still 70% of the ROM available!

The features of this thing are:
Uses Tamura Hall-effect current sensor for 0 - 511 A range
Displays instantaneous motor current, sampled 10 times per second
Displays amp hours used since last reset
Reset by holding down reset button while powering on
Uses eeprom to keep data while power off
I will make this an open-source thing once I've done the pcb and sch revisions. Likely cost to make one is about $50.
Any ideas for other useful features? There is still 70% of the ROM available!
Last edited by Nevilleh on Thu, 24 Jan 2013, 02:25, edited 1 time in total.
-
- Senior Member
- Posts: 683
- Joined: Wed, 04 Mar 2009, 17:15
- Real Name: James Kennedy
- Contact:
Wanted - an amp hour meter
Nevilleh, is that showing instantaneous *motor* amps, or *battery* amps. Integrating (coulomb counting) your motor current won't give you the right answer!
-
- Senior Member
- Posts: 773
- Joined: Thu, 15 Jan 2009, 18:09
- Real Name: Neville Harlick
- Location: Tauranga NZ
Wanted - an amp hour meter
You're quite right, of course. The sensor should be placed on the battery lead. I was looking at the lcd and wanted to pad it out a bit - just "Amps" looked a bit plain! - and I unthinkingly put the word "Motor" in just because it looked nice. I'll change it to "Batt".
- jonescg
- Senior Member
- Posts: 3723
- Joined: Thu, 21 Jan 2010, 23:05
- Real Name: Chris Jones
- Location: Perth, WA.
Wanted - an amp hour meter
Am I right in thinking this has nothing to do with the full battery voltage? One less set of HV wires / voltage divided wires to run.
AEVA National Secretary, WA branch chair.
- jonescg
- Senior Member
- Posts: 3723
- Joined: Thu, 21 Jan 2010, 23:05
- Real Name: Chris Jones
- Location: Perth, WA.
Wanted - an amp hour meter
Neville, is there a chance you could get it to display on a simple 3 digit LCD? I mean, if I'm going to have a full screen with all the fruit, I might as well stick with a Cycle Analyst. I probably will end up going with a CA anyway, but when the CRX is converted I will install the 700 V-modded CA in the car and put a simple Ah counter on the race bike.
AEVA National Secretary, WA branch chair.
-
- Senior Member
- Posts: 773
- Joined: Thu, 15 Jan 2009, 18:09
- Real Name: Neville Harlick
- Location: Tauranga NZ
Wanted - an amp hour meter
No HV connection needed, its powered off 12v and hence isolated. Maybe a 3 or 4 digit lcd might do, I used the 16 x 2 because its there, but it might be cheaper to use a lesser thing.
Actually, the 3 1/2 digit things are usually 7 segment displays and you have to drive them with something. Also, they aren't a great deal cheaper than the 16 x 2 lcds, so there is probably little point in considering them. If size is what you are worried about, the 16 x 2 lcd is only about 25 x 70 mm.
I just had a look at the Cycle Analyst and it suggests a few features that might be worth adding. I was trying to avoid connecting to the HV battery, but if you want the voltage it will have to be done.
Mind you, the CA is $US155 plus $15 shipping and what I'm trying to do here is offer the technically able enthusiast a DIY gadget that will do most things at a much lower cost.
And I set out to make this thing with a view to incorporating it into the existing BMS master control unit, which is the next task.
Actually, the 3 1/2 digit things are usually 7 segment displays and you have to drive them with something. Also, they aren't a great deal cheaper than the 16 x 2 lcds, so there is probably little point in considering them. If size is what you are worried about, the 16 x 2 lcd is only about 25 x 70 mm.
I just had a look at the Cycle Analyst and it suggests a few features that might be worth adding. I was trying to avoid connecting to the HV battery, but if you want the voltage it will have to be done.
Mind you, the CA is $US155 plus $15 shipping and what I'm trying to do here is offer the technically able enthusiast a DIY gadget that will do most things at a much lower cost.
And I set out to make this thing with a view to incorporating it into the existing BMS master control unit, which is the next task.
Last edited by Nevilleh on Thu, 24 Jan 2013, 06:01, edited 1 time in total.
- jonescg
- Senior Member
- Posts: 3723
- Joined: Thu, 21 Jan 2010, 23:05
- Real Name: Chris Jones
- Location: Perth, WA.
Wanted - an amp hour meter
OK so that 25 x 70 screen is pretty small. I like that.
In my circumstances, I don't want high voltages leading up to the instrument panel so if you were in incorporate battery voltage readings and integration, you would have to do it via a 0-5 V signal or something. As I said the CA does all of this and more, and Justin is currently hacking it for me so that I can run it off a 1:140 divider.
There is a small but solid camp of builders, especially on the motorcycle side of things who like to keep stuff simple. Over on Elmoto.net you will find guys who are content with an analogue ammeter, analogue voltmeter and a speedometer. However you still need to be able to count Coulombs so a simple meter would be the goods.
In my circumstances, I don't want high voltages leading up to the instrument panel so if you were in incorporate battery voltage readings and integration, you would have to do it via a 0-5 V signal or something. As I said the CA does all of this and more, and Justin is currently hacking it for me so that I can run it off a 1:140 divider.
There is a small but solid camp of builders, especially on the motorcycle side of things who like to keep stuff simple. Over on Elmoto.net you will find guys who are content with an analogue ammeter, analogue voltmeter and a speedometer. However you still need to be able to count Coulombs so a simple meter would be the goods.
AEVA National Secretary, WA branch chair.
-
- Senior Member
- Posts: 773
- Joined: Thu, 15 Jan 2009, 18:09
- Real Name: Neville Harlick
- Location: Tauranga NZ
Wanted - an amp hour meter
I don't really want any connections between the high voltage battery and the 12V circuits. This means using a linear opto-coupler and a small dc-dc converter, all of which adds to the cost. The CA has these connections and doesn't appear to be isolated. Might be OK for systems up to 48 V but not so good for any others. I'm also thinking a cheap voltmeter is easy to find, so why include it in this thing?