Automated light controller

Inside this recipe, we are going to continue exploring M2M communications with the Arduino MKR1000 board, this time by creating an automated light controller based on Arduino. A first module will be in charge of detecting the ambient light level, and then sending alerts to a second module, which will switch a light on or off, depending on the received alert.

Getting ready

To control a lamp in this project, we are going to use a very convenient component called the PowerSwitch Tail:

Getting ready

These components allow us to easily control devices powered by the mains electricity from an Arduino board, as you can just plug it into the mains ...

Get Internet of Things with Arduino Cookbook 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.