Make Your Own Power Meter/Logger

60,167

448

22

Posted in TechnologyArduino

Introduction: Make Your Own Power Meter/Logger

About: Awesome Electronics Tutorials, Projects and How To´s

In this project I will show you how I combined an Arduino, an INA219 power monitor IC, an OLED LCD and a Micro SD Card PCB in order to create a power meter/logger that has more functions than the popular USB Power Meter. Let's get started!

Step 1: Watch the Video!

The video gives you a good overview on how to create your own power meter. In the next steps though I will present you some additional information to make this project even simpler.

Step 2: Order Your Parts!

Here you can find a parts list with example seller for the portable version of this project.

Amazon.com:

1x LiPo Battery: http://amzn.to/2gz4yvd

1x TP4056 Board: http://amzn.to/2gzdIb4

1x Arduino Pro Mini: http://amzn.to/2gvfXuQ

1x INA219 Board: http://amzn.to/2gvflW7

1x OLED LCD: http://amzn.to/2fobopO

1x SD Card PCB: http://amzn.to/2fodhmu

1x Switch: http://amzn.to/2gz9ZtW

Ebay:
1x TP4056 Board: http://rover.ebay.com/rover/1/711-53200-19255-0/1?...

1x Arduino Pro Mini: http://rover.ebay.com/rover/1/711-53200-19255-0/1?...

1x INA219 Board: http://rover.ebay.com/rover/1/711-53200-19255-0/1?...

1x OLED LCD: http://rover.ebay.com/rover/1/711-53200-19255-0/1?...

1x SD Card PCB: http://rover.ebay.com/rover/1/711-53200-19255-0/1?...

1x Switch: http://rover.ebay.com/rover/1/711-53200-19255-0/1?...

Amazon.de:

1x LiPo Battery: http://amzn.to/2gM2vXB

1x TP4056 Board: http://amzn.to/2eUvMNO

1x Arduino Pro Mini: http://amzn.to/2g6Ujjr

1x INA219 Board: http://amzn.to/2gM5M9v

1x OLED LCD: http://amzn.to/2g6Q3Rd

1x SD Card PCB: http://amzn.to/2gM9Zdf

Step 3: Create the Circuit!

Here you can find the schematic for the Arduino Nano version and the portable version of this project. You can also find those schematic on the EasyEDA website:

https://easyeda.com/GreatScott/PowerMeter-b6051723...

https://easyeda.com/GreatScott/PortablePowerMeter-...

You can also use the pictures of my finished board as a reference for your own.

Step 4: Upload the Code!

Now that your circuit is complete, it is time to upload the code. You can download it here. But don't forget to download and include the following libraries before uploading:

https://github.com/adafruit/Adafruit_INA219

https://github.com/adafruit/Adafruit_SSD1306

https://github.com/greiman/SdFat

Step 5: Success!

You did it! You just created your own Power Meter/Logger


Feel free to check out my YouTube channel for more awesome projects:

http://www.youtube.com/user/greatscottlab

You can also follow me on Facebook, Twitter and Google+ for news about upcoming projects and behind the scenes information:

https://twitter.com/GreatScottLab

https://www.facebook.com/greatscottlab

3 People Made This Project!

Recommendations

  • Space Challenge

    Space Challenge
  • Science of Cooking

    Science of Cooking
  • Spotless Contest

    Spotless Contest
user

We have a be nice policy.
Please be positive and constructive.

Tips

4 Questions

can this circuit measure ac voltage and current for live ac loads

0

hi, congrats and thanks for a great video. I want to make a similar project but i need to monitor more current like upto 24 volts and 21 Apms.......what you suggest i do, or replace in the your given circuit? Hope to get a quick reply.

How accurate is this? Or the minimum watt measured by it?

Can this technically be used as a power supply volt amp meter?

22 Comments

Great project! I'm building my one as of this moment.

I just have 3 questions to make:

- Does the circuit functions well when the battery level gets lower? Would it be better too use a booster to push the voltage to somewhere around 5V?

- How would you implement a battery level checker?

Hello Scott

Sorry but I do not know how you manage to power a 5V Arduino with a 3.7 lipo battery. There should be a boost coverter in the middle right?
Thanks for all your support

1 reply

The battery, when full, is giving 4.2v I think, I read in the video's comments that Scott is directly powering the Arduino with it.

Hi Scott,

Thank you very much for your DIY presentations. and can you explain how to convert this for AC (Home power monitoring)

Hi Great Scott and all,

WHen compiling code I get this error. I am using Pro Mini, Arduino IDE 1.6.13 and the librabies that are listed on this site.

Any help would be appreciated.

Sketch uses 22,302 bytes (72%) of program storage space. Maximum is 30,720 bytes.
Global variables use 2,216 bytes (108%) of dynamic memory, leaving -168 bytes for local variables. Maximum is 2,048 bytes.
processing.app.debug.RunnerException: Not enough memory; see http://www.arduino.cc/en/Guide/Troubleshooting#si... for tips on reducing your footprint.

What should I follow if I use a power consumption of 48V or maybe 72V?

WOw! you have read my mind! its just what i will need for a new project, will post my build soon. Thanks a LOT! keep posting good ideias on Instructables

The video is such a great addition to this build. Congratulations with this instructional article!

If you view your log files how do you know what time a current ( for example ) is logged? Much better to put all 3 values in one file. What do you think?

LOL! I see you've already published this from your YouTube video. already liked it!

1 reply

I always favorite my own projects. What would TP ( Twitter President ) do?

Standart charging board is heating too much in beginnig of charging of battery (default current is 1A). In your cinfiguration it's too dangerous:
- big temperature from charging board can demage battery - set lower charging current

- move charging board from battery and add heatsink on IC TP4056

tp-4056.jpg1-257.jpg
1 reply

In your board it is Resistor R3.

I love your projects so much it would mean the world to me if you subscribed to my page and website:) Jackshow2s

Hi there, nice project. I'm curious as to what the lowest measured current is possible on this project and what the accuracy is?

2 replies

Done what you've suggested, datasheet gives ADC resolution, and accuracy (fair enough), but doesn't really answer the first part of my question. I'd like to know with regards to the way this is setup, what is the lowest current you have managed to measure? A approximate idea would be very helpful.

Could you please, recheck the .ino file you uploaded. It is completely different. It's how to connect a led and control it via ir. Thank you

1 reply

I checked it. It is the correct one.