Jul
12
2016
0

Power meter optical pulse detection

I’ve always planned to monitor my electricity usage. I had previously (about a year ago!) ordered some power transformers from seeedstudio and a six channel ADC for simultaneous three phase current and voltage measurement but never got around to starting the project.

We’ve since had a “smart meter” installed which has a handy LED on it that flashes once every watt hour of energy is consumed. It also has and IrDA port on it but I believe the communications protocol is password protected and will report a tamper state if the password is tried too may times. Because of this, I decided it was best to optically interface with the meter, and best of all, I’ll be measuring the exact amount of power we get billed for. Unfortunately I won’t be able to predict the bill amount (in dollars) as the three phases that come into the house are billed at different rates while this LED pulses the combined usage.

Meter
(more…)

Jul
09
2016
0

Wiring up the ESP8266

Before you can program the ESP8266, you need to wire it up.

First things first, the ESP8266 uses a 2mm pin spacing so you can’t use a standard breadboard as these use a 0.1 inch spacing. It also uses 3.3V logic, so you need to use a 3.3V serial adaptor or a 5V one with a level shifter.

Ideally, you will need the following things:

  • USB to 3.3V TTL serial adaptor (I use an FTDI TTL-232R-3V3)
  • ESP8266
  • 3.3v DC supply (capable of providing ~400mA)
  • Small SPST switch – Optional to switch between Run/Program mode
  • Momentary push button – Optional reset button
  • 4 x ~10k resistors
  • ~100nF capacitor

I wired up my ESP8266 like this (Source: https://github.com/esp8266/Arduino/blob/master/doc/boards.md#improved-stability)

Note: The pin CH-PD is marked EN on the ESP8266 12E

Note: The pin CH-PD is marked EN on the ESP8266 12E


(more…)

Jul
07
2016
1

Introducing the ESP8266

About a year ago I put up some money for the Wino-Board kickstarter project, received my Wino-Boards and did nothing with them for 12 months. They are effectively a tiny Arduino board attached to the innards of an ESP8266 WiFi module.

I finally had a play with them last week and after making a few changes to the Wino-Board libraries (The current version could not do an HTTP GET), I found them very easy to use.

The more intriguing thing about the Wino-Board was finding out more about the ESP8266 module and that it is now possible to directly program the module itself using the Arduino IDE.

Front and Back of the ESP8266 (12E)

Front and Back of the ESP8266 (12E)


(more…)