All Projects → jaminNZx → Esp8266 Power Monitor

jaminNZx / Esp8266 Power Monitor

An Arduino sketch to connect an INA-219 module to an ESP dev board and measure Voltage, Current, Power, Energy Consumption and Costs via the Blynk mobile app.

Projects that are alternatives of or similar to Esp8266 Power Monitor

Webserial
Remote Serial monitor for ESP8266 & ESP32
Stars: ✭ 133 (+101.52%)
Mutual labels:  arduino, monitor
Jonsnow
App Store/Google Play review watcher, deliver new reviews to slack channel
Stars: ✭ 65 (-1.52%)
Mutual labels:  monitor
Platform Kendryte210
Kendryte K210: development platform for PlatformIO
Stars: ✭ 60 (-9.09%)
Mutual labels:  arduino
Webterminal
ssh rdp vnc telnet sftp bastion/jump web putty xshell terminal jumpserver audit realtime monitor rz/sz 堡垒机 云桌面 linux devops sftp websocket file management rz/sz otp 自动化运维 审计 录像 文件管理 sftp上传 实时监控 录像回放 网页版rz/sz上传下载/动态口令 django
Stars: ✭ 1,124 (+1603.03%)
Mutual labels:  monitor
Esp8266 Deauth2
Deauthentication attack with two ESP8266 modules
Stars: ✭ 61 (-7.58%)
Mutual labels:  arduino
Koduino
Arduino code for STM32 microcontrollers
Stars: ✭ 63 (-4.55%)
Mutual labels:  arduino
Bb82 public
BB8 Version 2!
Stars: ✭ 59 (-10.61%)
Mutual labels:  arduino
Dmxserial2
An Arduino library for sending and receiving DMX RDM packets.
Stars: ✭ 65 (-1.52%)
Mutual labels:  arduino
Stripinvaders
A LightStrip system controlled by your Smartphone or Tablet. Connect StripInvaders to your LAN and enjoy your own Lightshow! Features: 9 different Light Modes (more will follow), stepless adjust the RGB values,​​ stepless adjust the animation speed, control StripInvaders wireless with your iPhone/iPad/Android Phone/Android Tablet (OSC), Bonjour and mDNS support
Stars: ✭ 63 (-4.55%)
Mutual labels:  arduino
Usbdriveby
USBdriveby exploits the trust of USB devices by emulating an HID keyboard and mouse, installing a cross-platform firewall-evading backdoor, and rerouting DNS within seconds of plugging it in.
Stars: ✭ 1,126 (+1606.06%)
Mutual labels:  arduino
Mthawkeye
Profiling / Debugging assist tools for iOS. (Memory Leak, OOM, ANR, Hard Stalling, Network, OpenGL, Time Profile ...)
Stars: ✭ 1,119 (+1595.45%)
Mutual labels:  monitor
Ws2812fx
WS2812 FX Library for Arduino and ESP8266
Stars: ✭ 1,113 (+1586.36%)
Mutual labels:  arduino
Arduino Nrf24l01 Ble
Example of using an Arduino and a nRF24L01+ to fake BLE advertisement
Stars: ✭ 63 (-4.55%)
Mutual labels:  arduino
Tm16xx
Arduino TM16xx library for LED & KEY and LED Matrix modules based on TM1638, TM1637, TM1640 and similar chips. Simply use print() on 7-segment and use Adafruit GFX on matrix.
Stars: ✭ 61 (-7.58%)
Mutual labels:  arduino
Laravel Api Health
Monitor first and third-party services and get notified when something goes wrong!
Stars: ✭ 65 (-1.52%)
Mutual labels:  monitor
Parse Sdk Arduino
The Arduino SDK for the Parse Platform
Stars: ✭ 59 (-10.61%)
Mutual labels:  arduino
Devkit Sdk
Arduino library and package for the MXChip IoT DevKit
Stars: ✭ 62 (-6.06%)
Mutual labels:  arduino
Ai demos esp8266
Example code for using ESP8266 Development Boards with various electronic and mechanical components.
Stars: ✭ 63 (-4.55%)
Mutual labels:  arduino
Dmxusb
DMXUSB emulates an ENTTEC-compatible DMXKing USB to DMX serial device with one, two, or n universes.
Stars: ✭ 66 (+0%)
Mutual labels:  arduino
Simplebot
SimpleBot is a very basic robot designed for learning about NodeBots.
Stars: ✭ 65 (-1.52%)
Mutual labels:  arduino

ESP8266-Power-Monitor

An Arduino sketch to connect an INA219 module to an ESP Dev Board and measure Voltage, Current, Power, Energy Consumption and Costs via the Blynk mobile app.

Official Blynk Community forum thread: http://community.blynk.cc/t/power-monitor-ina219-blynk/10297

Installation

Wifi Credentials

Create a new folder in your library dir (arduino\libraries\wifi_credentials) called 'wifi_credentials' and create a new file called 'wifi_credentials.h' and copy the example below:

/*
   Wifi Credentials
*/
#ifndef WIFI_CREDS_H
#define WIFI_CREDS_H
#define WIFI_SSID               "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
#define WIFI_PASS               "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
#endif

Replace "xxxxxxx" with your own Wifi network credentials.

Hardware

  • INA219
  • ESP8266 (WeMos/NodeMCU Dev Board)

Diagrams to come...

Software

  • Download and install the Blynk Mobile App for iOS or Android.
  • Scan the QR code at the bottom of this page to clone the screenshot below, or create a new project yourself and manually arrange and setup the widgets.
  • Email yourself the Auth code.
  • Download this repo and copy the files in to your sketches directory. Open the sketch in Arduino IDE.
  • Go to the settings.h tab. This is where all the customisable settings are. You should be able to change almost everything from there before compiling.

Settings.h

  • Replace AUTH with your own Auth code.
#define AUTH    "xxxxxxxxxxxxxxxxxxxxxxxxxxxx"
  • If you are using Over the Air updates (Optional) then just make sure the following line is active as well as setting a Hostname.
#define OTA_UPDATES
#define OTA_HOSTNAME    "POWER-MONITOR"
  • If you are using the Blynk Cloud server then comment out the line below:
//#define USE_LOCAL_SERVER
  • Otherwise enter your local server IP address below:
#define SERVER    IPAddress(192, 168, 1, 2)
  • Enter your fixed energy price per kWh in cents or enter the address of the API where you can get the latest price. Comment out or delete which ever you don't use.
#define FIXED_ENERGY_PRICE     9.934
//#define ENERGY_API           "http://192.168.1.2:3000/"
  • You can define the average sample depth (in seconds) for each type of measurment.
  • Lower = Fast but less accurate.
  • Higher = Slow but accurate.
  • 5-10 is a good range.
#define AVG_DEPTH_VOLTAGE           5
#define AVG_DEPTH_CURRENT           5
#define AVG_DEPTH_POWER             5

Upload

  • Compile and upload to your sktech to your WeMos or NodeMcu style ESP8266 as you would on any other sketch via USB.
  • If you are using Over The Air Updates, then after your first upload, you must disconnect power (USB in this example), then connect it again! Once it boots up again you will then see it in your IDE > Ports menu. If you do not power cycle the ESP, you will face issues uploading your first sketch.
  • Run Blynk Mobile App and open your project. Press the Play icon in the top corner to start the project.
  • If all has been done correctly, you should at least see the stopwatch counting. If it isn't then you need to troubleshoot.

Troubleshooting

If you have any technical questions, reply to one of my posts in the support forums with your question. I will usually reply within a day.

http://community.blynk.cc/t/power-monitor-ina219-blynk/10297


Gallery

INA219 Power Monitor running on Blynk

  • QR Code to Clone Project

QR Code to Clone Project

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].