Portable Power Monitor

by 陳亮 in Circuits > Arduino

726 Views, 6 Favorites, 0 Comments

Portable Power Monitor

IMG_7594.jpg
vlcsnap-2025-12-12-21h56m28s106.png
Power Monitor in a mint box #Jintan #NUDE

This instructables show how to squeeze a power monitor into a tiny transparent mint box.

Supplies

  1. Jintan Nude Capsule Sugar Free Mint
  2. Digispark Dev board
  3. INA219 Current Sensor Breakout board
  4. 0.96" SSD1306 128x64 OLED breakout board

The mint box and the OLED have different colors, if they can match color should have better result.

Power Monitor

This project reuse my previous project Digispark Power Monitor design. It can continous monitor the power usage of a dev device. It can help you develop a portable gadget with expected battery life.

Make It Portable

My previous power monitor built on a breadboard, it is not portable enough. So I want to squeeze it in a transparent mint box to save the space and more protection in normal use.

Mint Box Patching

vlcsnap-2025-12-12-20h05m46s510.png
vlcsnap-2025-12-12-20h24m12s530.png

We need to cleanup the plastic in the middle of the mint box to free up the space. I just bought an ultrasonic knife, so I try to use this to patch the mint box. Actually use pliers and mini grinder also can do the job.

Fit Test

Fit test on squeezing all components into a mint box

As show in above video, the breakout boards also need some minor patch to fit in the mint box.

Soldering Work

vlcsnap-2025-12-12-21h29m37s726.png
vlcsnap-2025-12-12-21h30m08s823.png

Please use thin wires soldering the connection. And also remember use high temperature masking tape to avoid short circuit between the boards.

Here are the connection summary:

Digispark INA219 SSD1306
========= ========= =======
5V -> Vcc, Vin+ -> VCC/VDD
GND -> Gnd -> GND
P0 -> Sda -> SDA
P2 -> Scl -> SCK/SCL

Software Preparation

Arduino IDE

Download and install Arduino IDE latest version if not yet:

https://www.arduino.cc/en/software

ATTinyCore

Follow installation step to add ATTinyCore support if not yet:

https://github.com/SpenceKonde/ATTinyCore/blob/v2.0.0-devThis-is-the-head-submit-PRs-against-this/Installation.md

Compile & Upload

Please download the source code at GitHub:

https://github.com/moononournation/ATtinyPowerMeter.git

In Arduino IDE:

  1. Open ATtinyPowerMeter.ino
  2. Select Tools menu -> Board -> ATTinyCore -> ATtiny85 (Micronucleus / DigiSpark)
  3. Press Upload button for compile and upload
  4. Wait compile finish and show the "Please plug in the device" message
  5. Plug in the Digispark dev board to upload the program

Assembly

Portable Power Monitor Assembly

Enjoy!

vlcsnap-2025-12-12-21h36m12s462.png

Now you can bring along this decent portable gadget with you!