Smart Plugs (Alexa compatible)

27.12.2021

In this section you find some details on how I built my own smart plug working with Alexa. Components I used:

-D1 mini esp8266 dev board (works with .ino files coded on Arduino IDE) (buy on amazon.it)

-Relay module (buy on amazon.it) or d1 mini relay shield (buy on amazon.it)

-Electric socket (230V-10/16A) 

-Power supply for D1 mini (buy on amazon.it)

-I'm using a 3D printed cover to put all together. I didn't share it beacuse the dimensions are strongly linked to the components you are going to use. Therefore I advise you to design your own body


CONNECTIONS

CODE

You can download the file.ino from this link. Upload this code on your D1 mini, then open Alexa app and search from new devices (in this case you have to search for new lamps) Click on '+' button -> Add new device -> lamps -> others -> search new devices. After few seconds Alexa will find the device defined in the code. 

You can use the same d1 mini to build a multiple smart plugs: in this case you need more relay modules (and more electric sockets 230V) and the code must be modified to define the new devices.


Be very careful when working with these voltages (220 / 230V)! This project is for demonstration purposes only. I take no responsibility for any damage to people or things.

Crea il tuo sito web gratis! Questo sito è stato creato con Webnode. Crea il tuo sito gratuito oggi stesso! Inizia