Smit Babariya
Published

Home Automation Using Amazon Alexa

Control your home applications using Amazon Alexa.

IntermediateProtip10,959
Home Automation Using Amazon Alexa

Things used in this project

Hardware components

NodeMCU ESP8266 Breakout Board
NodeMCU ESP8266 Breakout Board
×1
4-CHANNEL RELAY CONTROLLER FOR I2C
ControlEverything.com 4-CHANNEL RELAY CONTROLLER FOR I2C
×1

Software apps and online services

Arduino IDE
Arduino IDE
Blynk
Blynk
Maker service
IFTTT Maker service
Alexa Voice Service
Amazon Alexa Alexa Voice Service

Story

Read more

Code

node_mcu_blynk_code.ino

Arduino
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "YourAuthToken";

// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "YourNetworkName";
char pass[] = "YourPassword";

void setup()
{
  // Debug console
  Serial.begin(9600);

  Blynk.begin(auth, ssid, pass);
  // You can also specify server:
  //Blynk.begin(auth, ssid, pass, "blynk-cloud.com", 80);
  //Blynk.begin(auth, ssid, pass, IPAddress(192,168,1,100), 8080);
}

void loop()
{
  Blynk.run();
  // You can inject your own code or combine it with other sketches.
  // Check other examples on how to communicate with Blynk. Remember
  // to avoid delay() function!
}

Credits

Smit Babariya

Smit Babariya

3 projects • 36 followers
Embedded Eng. with demonstrated history of working in diff. Projects like ESP32,8266 & Arduino.Strong engineering professional in E&C eng.

Comments

Add projectSign up / Login