Hi guys,

I need to ask for a little help, I'm building a current meter for a client, and I'm having difficulty working something out.
I am using a 16F877A with ADC channels 0 to 2 used to measure voltage and current, this all works fine, what I'm having trouble with is calculating current drawn over a period of hours, measured in amp-hour. The idea for this is to show the total current in or out of the system in a day.

Please, if anyone can help, I could use any tips you might have.

Mike