Controlling the lamp from anywhere in the world

We are now going to use the same principles and code that we used so far for another application: controlling a lamp (or any electrical appliance) from anywhere in the world.

The configuration for this section is very simple: first, place the ESP8266 module on the breadboard, if that's not been done yet. Then, connect the Vin+ pin of the PowerSwitch Tail to the pin number 5 of the ESP8266. Finally, connect the two remaining pins of the PowerSwitch Tail to the GND pins of the ESP8266.

This is a picture of the final result:

Controlling the lamp from anywhere in the world

Then, connect the lamp (or the electrical appliance of your choosing) to the PowerSwitch ...

Get Internet of Things with ESP8266 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.