Things used in this project

Hardware components:
Ard nano
Arduino Nano R3
×1
Esp12e
Everything ESP ESP8266 ESP-12E
×1
09873 01a
SparkFun FTDI Basic Breakout - 3.3V
×1
12002 04
Breadboard (generic)
×1
Software apps and online services:
Ide web
Arduino IDE
Screen%20shot%202015 07 20%20at%206.10.26%20pm
Amazon Web Services AWS Lambda
Dp image kit 02
Amazon Alexa Alexa Skills Kit

Schematics

Circuit
Circuit ep715hzeks

Code

Arduino Nano CodeArduino
int light = 4; // Light Connected to digital pin 4
void setup()
{
  pinMode(light, OUTPUT);
  Serial.begin(115200);
  while (!Serial);
}

void loop() {
  if (Serial.available())
  {
    int state = Serial.parseInt(); //Convert serial data to int 
    if (state == 1)   
    {
      digitalWrite(light, HIGH); // When state is 1 turn on the Light 
    }
    if (state == 0)
    {
      digitalWrite(light, LOW); // When state is 0 turn off the Light
    }
  }
}

Credits

Faccc733ac5b32354e82b1248dad9ca7
Tinker Project
1 project • 4 followers
I make DIY and IoT related Projects.
Contact

Replications

Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback

Comments

Add projectSign up / Login