Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Hour Meter

  1. Mar 24, 2005 #1


    User Avatar
    Science Advisor

    the other day I got an hour meter to help me keep track of the amp hours I have put into my circuit, but I am not too sure how to hook it up.
    it came with a page of instructions giving a few diagrams on how to connect it, the only 2 that made sense for my application of it was to either wire it in series or parallel with my circuit.
    to me, series only makes sense, since in parallel, it wouldnt really be measuring the amp hours int my circuit, but rather just it's part of the circuit.
    when I wire it in series, it works, I hear it clicking away, but it has so much internam resistance that it barely has any current at all left (about .01 amps), this is unacceptable. when i wire it in parallel, it works, (it clicks) and it counts the amp hours, but as I suspected, it is not correcly measuing what I need it to, since I can take a direct measurement of what the real current is and assume it was constant for 1 hour, an that is not what the meter shows.

    is there some other option? am i right to think it should be wired in series with the circuit?
  2. jcsd
  3. Mar 24, 2005 #2


    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    It'd be much more helpful if you provided us the make & model of your meter, or a link to its documentation.

    - Warren
  4. Mar 24, 2005 #3


    User Avatar
    Science Advisor

    Ok, I didnt think that would mater too much.
    It is a Model "TMI61D96 Engine Powered Hour Meter",
    [URL [Broken]

    on the oppsite side of the page were 5 diagrams showing possible ways to connect it up, but I cant find a link to those.
    Last edited by a moderator: May 2, 2017
  5. Mar 24, 2005 #4
    That device is just a run time clock. It's not an amp-hour meter. It's designed to be connected in series with a source(across the kill switch assuming the kill switch is open while running). That particular device does not change its time base for different input conditions(operation range is 6 to 50V with a xstl oscillator). It simply clicks away the minutes that power is supplied to it(engine running).
  6. Mar 24, 2005 #5


    User Avatar
    Science Advisor

    Hmm.. well I must say, that is rather dissapointing news to hear.
    but I guess it makes sense now that I think about it, when I tested it, I ran it for 1 hour and 10 minutes (I was 10 minutes late, that is why I had such an odd time) and it gave me a reading of about 1.1, so then I think you are right.

    Do you happen to know where I can find that I am looking for then, meter to measure amp hours? or any other names to call it by?
    Last edited: Mar 24, 2005
  7. Mar 29, 2005 #6


    User Avatar
    Science Advisor

    So does anyone know where I might get an amp hour meter?
    I havent been able to find much online, just a couple ones that are too expensive with a couple more features then what I need.

    Or if not an amp hour meter (which is prefered), I could substitute something else if it will get the job done, for example, if I assumed a constant voltage, then I could use a watt hour meter, since it will measure the total [kilo] watts hours,
    watt hour = volts * amps * hours
    so then divide by the constant # of volts, and tada!, but I cant do that since the voltage isnt constant enogh for that to work acuratly for me.
  8. Mar 29, 2005 #7


    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    We used to use amp-hour meters from a company called "eMeter" on our hybrid electric vehicle. They are likely to be too expensive, but I don't honestly know of any other ready-made devices.

    Your best bet might be to use an ADC to measure the voltage across a shunt resistor, and then use a small microcontroller running an infinite loop to perform the sum to get the running amp-hours. This will naturally require some programming, etc.

    - Warren
  9. Mar 29, 2005 #8


    User Avatar
    Science Advisor
    Gold Member

    I was contemplating on how you could easily make one after the first several posts in this thread. You could use a voltage controlled oscillator to run a counter. The voltage controlling the oscillator would be based on current obviously.
  10. Mar 30, 2005 #9


    User Avatar
    Science Advisor

    I am not opposed to the idea of making something to do this at all, I am up to the challenge.
    This sounds complicated, but I suppose it would work. I would have no idea where to begin or how to make this although, so I would need alot of guidence.

    The voltage controlled oscillator sounds simplier, but again, I wouldnt know where to begin.

    I am going to need alot more help on how to make eithe og these things.
    I wonder how much they will effect the circuit they will be in, how much will they drop the voltage, current, ...?
  11. Mar 30, 2005 #10


    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    The VCO solution given by Averagesupernova is a good one -- the only drawback I can think of is that most VCOs can only generate a pretty narrow range of frequencies. It's definitely worth pursuing, though.

    If you use a shunt resistor and measure the voltage across it, it will barely affect your circuit at all. The shunt resistor is basically a small-value resistor (only a few thousandth of an ohm, usually) placed in series with your device. The voltage across the shunt can be then be used to calculate the current through the device.

    - Warren
  12. Mar 30, 2005 #11


    User Avatar
    Science Advisor
    Gold Member

    I suspected the frequency range issue would come up. Here is my solution:

    Use a triangle wave type generator using an op-amp. These can be made to have a fairly wide frequency range. They are based on using a current source and capacitor. Be sure to use a very low leakage type cap. Polyethylene I suspect is a good choice for this type of cap. Not sure, haven't worked with them in a while. It is important to keep leakage currents in general down with this type of thing. Zero current through the ammeter should yield NO pulses out of the oscillator. It is also imortant to know what the current range will be. This makes design easier when considering shutting the oscillator off when no current is passing.
  13. Mar 30, 2005 #12


    User Avatar
    Science Advisor

    not to make myself sound any more stupid, but could you please refrain from using many electronic abbbrevations, they only lead me to more confusion when I dont know what you are talking about, some I can decipher, other I cant.

    As for the range of current in the circuit, I suspect it will be somewhere between (roughly) 1 amp and 5 amps, but mostly around 1 to 3 amps.

    As for the actual use of this, "amp hour meter", how exactly will it be counting, if we go with the oscillator idea, then I assume we will cound the oscillations and from there determine the current. then wont there have to be some more stuff to keep the running total going?

    Is there something I can be reading up on this, or parts to go get, I feel like I am contributing nothing right now at the design phase.

    -Thanks for your help
  14. Mar 30, 2005 #13
    you can use a small microprocessor. Don't let the term microprocessor scare you, they are actually pretty easy to make and use. AVR's (made by atmel) have a floating point so C can easily (and freely) be used or you could learn the 50 or so opcodes and program in asm. PIC's are another choice but lack a floating point thus C compilers are mostly proprietary. Swing bt AVRfreaks.com or subscribe to the piclist (Google either term for the exact sites).

    I'd say, an 8 pin tinyAVR would do the trick nicely. You can use one pin as a frequency counter, another for simple resey(or simply drive the P/S to the chip low) and the remaining 4 pins for a simple LCD output. Less that 10 components to make what you need I'd say.

    How accurate do you want your counter? If you don't mind a litte deviation go with a VCO(voltage controlled oscillator) chip. A 74HC4046, two resistors and two capacitor(I think thats all you need one cap sets the freq range and the other cap is used to clean the power supply voltage) and one very small resistor (0.1ohm) in series with your load. Feed the VCO output to your Micro/C add a cap to clean the P/S of the micro/C(put these caps as close to the chip's power input pin as possible). You can make a serial output using a max232 and 4 caps or just feed 4 line to a LCD(go to earth LCD for cheap 2x24 or 2x40 displays--run about $7). You can run some LCDs in serial mode or add a serial in parallel out shift register to free up two of your micro/C i/o pins. Usa a 7805 and two caps (one on the input side, and the other on the output side) as your power supply.

    Well, according to my write up your actually looking at 20 components but hey. Oh, you'd need an OpAmp between the 0.1 resistor and the VCO to boost the voltage to an acceptible range. Or you could go the cap to an OpAmp as mentioned above.

    Instead of the VCO you could use an analog to digital(ADC) input on on AVR or PIC. Use the same 0.1 ohm resistor and OpAmp so your voltage as measured across the resistor varies from 0 to 5V (look up inverting opamp and you'll find a million web sites to help you design the correct amp). Feed this voltage to the ADC and there you go. I'd personally go this route because it would be real easy to do IMHO.

    Good luck.
  15. Mar 30, 2005 #14


    User Avatar
    Science Advisor

    I dont think I have to hardware needed to program a microprocessor (ie. write it in C on the computer and send it over to the chip), although that option sounds attractive, I dont think i'll be able to do that. I assume that is what you meant.

    As for acuracy, I would like it to be fairly acurate (as acurate as I can get it I suppose), precise to .1 or .01 ah if possible. as that what I can expect from any of these designs?

    Simplicity in the design is good, so lets try to do it with as few parts as possible without comprimising its quality.
    I will do whatever method you all think is best, but I do like the idea of an LCD display, and the reset option.

    the voltage through the circuit will be around 3 to 5 volts normally, if this is of any concern.

    if we go with The voltage controlling the oscillator idea [or any other idea], what kind of parts should I be looking for.
  16. Mar 30, 2005 #15


    User Avatar
    Science Advisor
    Homework Helper

    If your circuit is a constant DC load then you could use the hour meter as is.
    A little math will convert run time into amp hours.

    For a variable DC load, many of the small uP (microprocessors) have built in ADC (Analog to Digital Conversion) so you could test current in your sense resistor directly (or prescaled with an opamp)

    You could get a uP board that has built in comm ports for programming functions and talking to a PC.
  17. Mar 30, 2005 #16


    User Avatar
    Science Advisor

    the load in the circuit is not constant, it will vary, thus changing the current and voltage.

    OK, then where can I get the type of microprocessor I need, and what type do I need to get?

    At this point I dont care too much about what method I use, just as long as there will be someone to "hold my hand" all the way through building it, because I have no idea where to go from here.
    If I had some instructions or something to work on that would be of great use so I can get to ordering the chip (or whatever is needed), unless
    Radio Shack will have what I need.

    I looked at that AVRfreaks.com site, but I dont see the but just a few 8 pin chips, no prices, and no place to sign up.
  18. Mar 30, 2005 #17
    Here, I wrote a long response a few hours ago but Camino crashed when I wnet to earth LCD.

    Here's the micro/C I'd recommend:

    Has 4 channel ADC built in. This little 8pin chip will do all that you need.

    Here's the documents:

    Here's the programmer(It's cheap and easy to use):

    Which can be bought from:

    Sources for electronic parts(google these):
    Jameco(good for hobbiest)

    Here's the IDE for programming your chip:

    Here's the GCC-avr (for windows) C compiler:

    And some tutorials(registration required):

    Source for LCDs:
    http://store.earthlcd.com/s.nl/c.318770/sc.5/category.4/.f [Broken]

    Good site about serial/parallel/USB ports:

    OpAmp stuff:
    http://www.uoguelph.ca/~antoon/gadgets/741/741.html [Broken]

    you'll want a differential amplifier across series resistor

    How ADC works:

    Standard LCD stuff(search for HD44780 for more information):

    AVR freaks registration:
    http://www.avrfreaks.net/user.php?op=register&module=NS-NewUser [Broken]

    Don't let the name scare you. AVR's are easy to work with. Use the built-in ADC(analog to digital converter) and a little math to calculate the current through the resistor.
    Last edited by a moderator: May 2, 2017
  19. Mar 31, 2005 #18


    User Avatar
    Science Advisor

    Wow, lots of information, just what I was looking for.

    So here goes, I will need:
    • MicroController/Processor
      -As you recomended, I'll go with Atmel ATtiny13, which I found here:
      but if you do a quick 'Keyword' search on that site, you'll see they have about 12 different varieties of that chip, which is correct, does it matter?
    • Chip Programmer
      -Not really needed for the circiut, but I'll need it to program the chip before I can use it [funny how this is by far the most expensive piece]. As you said, I can get it here: Chip Programmer.
    • LCD Display
      -I'll go with this 2x16 LCD screen (its the cheapest I saw), http://store.earthlcd.com/s.nl/sc.5/category.4/it.A/id.1297/.f [Broken]
    • OpAmp
      -I would have no idea what kind I should be looking for, how about this, http://www.alliedelec.com/cart/ProductDetail.asp?SKU=248-0027&SEARCH=OpAmp&ID=&DESC=LM324N [Broken]
    • .1 [ohm?] Resistor
      -Will just any .1 ohm resistor work, or does it have to be something special?
      For example, would this one be acceptable, or is there a better choice, http://www.alliedelec.com/cart/ProductDetail.asp?SKU=832-0349&SEARCH=%2E1+ohm+resistor&ID=&DESC=WW2+0%2E1+5%25 [Broken]
    • Differential Amplifier
      -http://www.alliedelec.com/cart/ProductDetail.asp?SKU=568-4645&SEARCH=Differential+Amplifier&ID=&DESC=LM2902N [Broken]
    and the analog to digital converter is built into the chip.

    Did I leave anything out, or include something I Dont need?

    [This post took about 3 hours (including distractions) to write because of all the info that needed to be sorted through]
    Last edited by a moderator: May 2, 2017
  20. Mar 31, 2005 #19

    The very top MCU is a dip and runs up to 20MHz(though you'll want to run the internal 4MHz clock instead to free up I/O lines) and comes in a DIP(Dual Inline Package). There is another DIP8 (the number tells you how many pins the chip has) but its max clock speed is 10MHz for the same price as the 20.

    You probably don't want to fiddle with surface mounting just yet so the dip is the best choice.

    P=i^2R --use this eqn to determine what resistor to get.


    You'll need a ALSR5F-.10-ND which is a 5W 0.10ohm wirewound silicone coated power resistor.

    The OpAmp can be a simple 741 series DIP8. Use this as a reference:

    R1=100K 5% (or a 68K in series with a 50k trimmer--this is a multi-turn potentiometer)
    R2=100K 5%(or a 68K in series with a 50k trimmer)
    R3=1M 5%
    R4=1M 5%

    5% resistors will result in a max error of about .4v out of your amp(resistors are usually pretty accurate though). Make the amp, determine the error and program a correction factor into you AVR, or add a couple of pot's to your amp circuit enabeling you to adjust your amp for the correct output.

    You could also add a 10K trimmer to your op amp between pins 5 and 1 which allows you to balance your opamp with zero volts applied to both inputs. There's a little leakage inside the amp resulting in up to 7mV(I believe is the standard) of output with a zero input.

    Power supply--your going to need an external P/S (wall wart) and a 7805 voltage regulator http://www.google.com/url?sa=U&start=3&q=http://www.fairchildsemi.com/ds/KA/KA7805.pdf&e=747

    Get som tantilum 0.1uF capacitors to clean the power supply at the ICs(as close to the input power pins as physically possible--remember, tantilums a polarized and will blow up if connected backwards).

    Other than that, read the AVR docs, read about 741's(these have been around since 1968 there are 1000000's of pieces of information available about this great little chip) and you should be good to go.

    Good luck.
  21. Mar 31, 2005 #20


    User Avatar
    Science Advisor

    OK, I found th MCU and .1 Ohm resistor that you were talking about.

    I think I'll skip the trimmers for now (maybe I'l add those latter, but not now).

    As for the "normal" resistors (R1, R2, R3, R4), I can just go down to RadioShack and pick those up (I know where to get it on my own :smile:).
    I also found the voltage regulator at radioShack aswell,
    Voltage Regulator .

    I found these Capacitors, are either of these OK?

    Is this OpAmp OK?

    I dont really know what you mean by the power supply, do I need a seperate one other than the main one I am using for my circuit?
    Do I still need a Differential Amplifier?

    Lets see did I miss anything?
    Last edited: Mar 31, 2005
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook