Smart Plug with Arduino MKR WiFi 1010

In this tutorial we are going to create a smart plug to turn on or off the light of a lamp remotely using Google's voice assistant.

Sep 15, 2019

28198 views

6 respects

Components and supplies

1

2 rechargeable Panasonic NCR18650B Li-Ion batteries (3400 mAh, 3.7V).

1

5V Relay module

1

Arduino MKR WiFi 1010

1

MKR Connector Carrier

Project description

Code

https://github.com/avilmaru/enchufe_inteligente_wifi

Latest commit to the master branch on Invalid date

Comments

Only logged in users can leave comments

Anonymous user

2 years ago

It gives me the "Unexpected response: HTTP/1.1 302 Moved Temporarily" What should I do? Thanks D.

ToineS

4 years ago

Hi Avilmaru, Thanks for your detailed post, it is very will written and provided me with some essential information for my own project. Can I ask you some advise I have been trying to use a Mega2560 based board together with an ESP8266 module to control my heating system. It kind of works but is somewhat unstable as I have problems with the power supply. I need to drive five 5V relays similar to the one you used. I also have 6 DHT22 sensors as inputs (over long cables) Because of the power issues (also the DHT reading have become more unreliable) I want to upgrade my hardware to the MKR boards you have used in this project, also those Grove connectors seem very convenient. I understand the wifi 1010 sits on top of the carrier board so the GPIO inputs are available for my sensors? I noticed the carrier board spec mentions D0,D1,D2,D3,D4 single grove , D5,D6 double grove I/O. I presume for my relays it doesn't mater I as I wire them using similar cable you have used. actually I have an 8-relay board just one VCC & GND input. I assume I can take from any connector... What do you think, any advice much appreciated Toine

Anonymous user

5 years ago

It gives me the "Unexpected response: HTTP/1.1 302 Moved Temporarily" What should I do? Thanks D.