Make Your Own Power Meter/Logger
by GreatScottLab in Circuits > Arduino
137416 Views, 599 Favorites, 0 Comments
Make Your Own Power Meter/Logger
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!
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.
Order Your Parts!
Here you can find a parts list with example seller for the portable version of this project (affiliate links).
Aliexpress:
1x LiPo Battery: https://s.click.aliexpress.com/e/_dZhZsnd
1x TP4056 Board: https://s.click.aliexpress.com/e/_dX8n0hp
1x Arduino Pro Mini: https://s.click.aliexpress.com/e/_d62ALdV
1x INA219 Board: https://s.click.aliexpress.com/e/_dUZvYoX
1x OLED LCD: https://s.click.aliexpress.com/e/_dWfFi0n
1x SD Card PCB: https://s.click.aliexpress.com/e/_dUy68bd
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
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.
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
You can find an improved version of my code here: https://github.com/gilleshenrard/datalogger
Downloads
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: