Show me the source code!

A project log for Internet-of-Things Power Meter

Simple, cheap, easy to build and deploy, the IoT Power Meter provides accurate statistics on household power consumption.

SolenoidSolenoid 04/03/2016 at 09:250 Comments

The IPM files, including source code, are now published on GitHub, the project is not yet finished, but can already be used at this stage. The documentation and project progress logs stay on while it's still in development.

To configure the IPM one must currently edit the credentials in config_dummy.h file and rename it to config.h:

  1. Install Arduino IDE 1.6.8
  2. Install GitHub version of ESP8266 Arduino core
  3. Select Tools->Board->Generic ESP8266 Module
  4. Connect the IPM to the computer using an FTDI programmer (set jumper to 3.3V), but do not connect the 5V yet (red wire)
  5. Edit the config_dummy.h file, enter the proper credentials and change the authentification information
  6. Rename config_dummy.h to config.h
  7. Hold the button down
  8. Connect the 5V (red wire)
  9. Click upload in Arduino IDE

Every time it has to be reprogrammed the steps 7-8-9 must be repeated. If the button is not pressed before power is applied it will simply start the program and the upload will fail.