Skip to content
Empowering people with the Internet of Things
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
SainSmart_IOT.ino

README.md

SainSmart IOT Series

###NO.1 DIY WiFi Lights with Blynk ###

  • Hardware

NodeMcu or other esp8266 module   X1

SainSmart 2-channel relay      X1

DC 5V Charger            X1

220V Lamp              X1

USB cable              X1

  • Software

    Arduino IDE

    Blynk for ios&Android

  • Step 1

Install Arduino IDE 1.6.6 or other version Download Here

Install esp8266 lib for your Arduino IDE click filePreferences and add the following website in Additional Boards Manager URLs

1.jpg

http://arduino.esp8266.com/stable/package_esp8266com_index.json

click ToolsBoardBoard manager

2.jpg

Search esp8266 in the Board mannager then click install

3.jpg

After installation you will find esp8266 or Nodemcu 0.9 etc in Tools

4.jpg

  • Step 2

Install Blynk lib for your Arduino IDE

Download Blynk lib from GitHub Download Here

Release the file and add to your Arduino IDE libraries

Click fileExamplesBlynk

5.jpg

Download Blynk APP for your mobilephone www.Blynk.cc

  • Step 3

Hardware Connection

Nodemcu    SainSmart 2-CH Relay

VIN      VCC

GND      GND

D00      INT1

6.jpg buy SainSmart relay here

buy SainSmart esp8266 module here

  • Step 4

Please be sure to select the right ESP8266 module

in the Tools -> Board

Change WiFi ssid, pass, and Blynk auth token to run !

Upload your code by Arduino IDE

7.jpg

Creat a new project in your own Blynk and you will get auth token

8.png

copy it and paste to Arduino ide code.

Make sure the DEVICE is Nodemcu or Esp8266!

9.png

you can design your own IOT app,for example :we choose a Button to control our lamp

10.png

Set the BUTTON connecting D0 PIN of Nodemcu

Click to get your device online!

Then you can control your lamp anywhere !

Enjoy it!

                         Product by SainSmart.com

You can’t perform that action at this time.