Monitor power consumption of your electronic devices remotely via a mobile Blynk app. This simple device is based on a D1 Mini micro-controller. Connect your power source via the DC input channel and your device via the DC output. The monitoring device is powered via a micro usb. There is an on/off switch to control power.
Step 1: Parts and Schematic
You will need the following parts:
- D1 Mini
- INA219 Power Monitor Sensor
- Mini Rocker Switch
Simply connect the parts as shown in the schematic, solder the switch in place after assembly within the 3D printable housing (see next section).
Note: To allow use of the sleep mode you will also need to solder a connection between the RST and D0 pins of the D1 mini.
Step 2: 3D Print the Parts
Download and print the two parts. Assemble the electronics within the parts and secure in place using a glue gun.
Step 3: Blynk App
Step 4: Configure and Upload the Sketch
In order to upload the sketch you will first need to install the esp8266 board and two libraries, if you haven't done so already.
To install the esp8266, add the following URL to the Additional Boards Manager URLs in the Preferences window of the Arduino IDE.
Now within Boards Manager, install the esp8266 board.
Using the library manager, install the Adafruit INA219 and Blynk libraries.
Amend the sketch for your own WiFi SSID, password and Blynk authentication token. Attach the D1 mini using a micro-usb and upload the sketch.
Step 5: Connect Your Supply/device and Monitor
Now simply connect your power supply/battery to the input jack and your device to the output jack. Connect the D1 mini using a micro-usb cable for power and flick the switch to power your device.
Load the Blynk app and you can now monitor the device's voltage and power supply. Adjust the slider to enable the status LED to signal when the battery/source voltage drops below the specified value.You can also enable sleep mode to save power i.e when powering the monitor from a battery.
Step 6: Ideas for Further Development
You could expand on this project by incorporating a relay to allow remote power control. Power via battery or the DC source itself might also be useful. See my website http://www.cabuu.com for more ideas and similar projects.