Creating several lamps from the cloud

In the second project of this chapter, we are going to apply what we learned earlier and control several lamps from the cloud using a single dashboard.

To actually assemble the project, I recommend checking Chapter 4, Control Appliances from the Raspberry Pi Zero where we saw how to connect the PowerSwitch Tail Kit to the Raspberry Pi Zero. You need to connect the PowerSwitch to GPIO14 of the Raspberry Pi board.

This is how one module looks like:

Creating several lamps from the cloud

Now, configure each board with the exact same code as in the previous section and give a different ID to each board. I also recommend changing the name of the boards inside ...

Get Building Smart Homes with Raspberry Pi Zero 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.