Professional Documents
Culture Documents
DIY Amp Hour Meter Arduino PDF
DIY Amp Hour Meter Arduino PDF
Table of Contents
Step 6: Followup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Related Instructables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
http://www.instructables.com/id/DIY-Amp-Hour-Meter-Arduino/
Author:sspence author's website
Professionally, I'm an IT Engineer (Executive Level) and Electronics Tech. Philosophically, I'm a Green Conservative, and probably would have been a hippie
in the 60's if I had been old enough. I live off grid, with Solar (PV), Wind, and veggie oil fueled diesel generator power.
batteryVoltage = pinVoltage * ratio; // Use the ratio calculated for the voltage divider
// to calculate the battery voltage
http://www.instructables.com/id/DIY-Amp-Hour-Meter-Arduino/
Step 2: Current Monitoring
The next step is to track the current being consumed by a load, or produced by a source. We are using a ACS715 Hall Effect sensor to track the current being passed.
sample = sample + 1;
msec = millis();
ampSeconds = averageAmps*time;
ampHours = ampSeconds/3600;
Serial.print("Volts = " );
Serial.print(batteryVoltage);
Serial.print("\t Current (amps) = ");
Serial.print(amps);
Serial.print("\t Power (Watts) = ");
Serial.print(watts);
http://www.instructables.com/id/DIY-Amp-Hour-Meter-Arduino/
Step 5: LCD Display
Keeping a computer connected all the time is inconvenient, so I added a lcd display to the project.
lcd.setCursor(0,0);
lcd.print(batteryVoltage);
lcd.print(" V ");
lcd.print(amps);
lcd.print(" A ");
lcd.setCursor(0,1);
lcd.print(watts);
lcd.print(" W ");
lcd.print(time/3600);
lcd.print(" H ");
lcd.setCursor(0,2);
lcd.print(ampHours);
lcd.print(" Ah ");
lcd.print(wattHours);
lcd.print(" Wh ");
Step 6: Followup
All the code, schematics, and photo's along with discussion is available at
http://tech.groups.yahoo.com/group/arduinohome/files/volt%20amp%20watt%20hour%20meter/
Related Instructables
http://www.instructables.com/id/DIY-Amp-Hour-Meter-Arduino/