Introduction: IOT Connect
IoT Connect is a open source project for helping the IoT based startup. IoT Connect will provide you with libraries of ESP8266, AutoCad Eagle libraries, board files, schema and Cloud platform for receiving sensor data and controlling power relays remotely from anywhere. IoT Connect is configured with popular AI's like Amazon Alexa and Google Assistant. Using this project, we will guide you to process of creating your own IoT Connect devices based on ESP8266 and how to sync them with the IoT Connect cloud platform. Lets get started.
Step 1: Prototyping Your IOT Connect Board.
These are the steps to create your own board. You can skip step 1 and 2, if you order the board from here
- first open IOT Connect official website and click on "Help and Contents" tab in navigation bar.
- You will find two types of board design available.
- Revision 1 is the design in which no sensors are attached. It consists of 8 relays to control 8 devices from one esp8266 board.
- Revision 2 is the design in which you will find two sensor i.e. DHT11 and LDR, for sensing Temperature, Humidity and Light from the surrounding and the 8 relays.
Step 2: Get All the Material for Completing the Board.
Once you receive the board you have to gather all the below items for soldering. You can find the item list below.
- 5v Relay (8 each board)
- SMPS (1 Each Board)
- Tack Switch (2 Each Board)
- 3.3v Regulator (1 Each Board)
- 2n3904 transistor (8 Each board)
- 74HC595 Shift register (1 Each board)
- 3.5 mm blue led (1 Each board)
- ESP8266 12-E (1 Each board)
- Male Header Pin (Just 2 pin for adding jumper)
- 104 Capasitor (1 Each board )
- 10 K Resistor ( 2 Each board )
- 10 ohm Resistor ( 8 Each board )
- AC Contact ( 9 Each board )
- 10 pin IC base ( 1 Each board for 74HC595 )
- DHT11 ( 1 Each board. Only for Revision 2 Board)
- LDR ( 1 Each board, only for Revision 2 board)
Once you receive all the component, you need to solder it on the IoT Connect board that you have ordered from your manufacturer. All the components marking will be there on the board. You may also refer the schema and board layout on eagle while soldering. Take your time and make sure all the through hole and SMD components are soldered correctly and have good solder joint.
Step 3: Flashing the Firmware.
To flash the firmware you would requires the following tools.
- Before flashing the firmware you need to install and setup your Arduino IDE for ESP8266. In order to do that install IDE and the click on File -> Preferences. In "Additional Boards Manager URLs" paste "http://arduino.esp8266.com/stable/package_esp8266c...". Now extract the Arduino Library zip into Documents->Arduino->Libraries directory.
- Now in Arduino IDE go to tools->boards->board manager and install "esp8266 by esp8266 community".
- Once the board is install go to IOT Connect and download Arduino Firmware.
- Now connect the FTDI programmer to the system and install the driver. Once you get the port number in tools -> port, in Arduino IDE, select the port.
- Before flashing add a jumper in the two male header on IOT Connect board, which set esp8266 to flash mode on power.
- Set power supply to 3.3 v (Very Important) on your programmer and insert the pins in the board where the labeling "programmer" is printed.
- Make sure that esp blinks just after getting the power.
- Now click on upload in your Arduino IDE to flash the esp8266.
- Now your IoT Connect board is ready to sync with IoT Connect cloud.
Step 4: Connecting the Board to IOT Connect Cloud
- Once your board is flashed and ready to connect, attach a wire to input AC jack (Refer the videos).
- Press reset button on the IoT Connect board and power on the device. You will see the blue led is turned on which indicates that the device is not connected to the internet.
- As the device gets the power the LED will blink which indicates that the device is in setup mode. You will find that a WiFi Access Point name "IOT Connect" is created.
- As per the video, take a phone and connect it to the "IOT Connect" access point. As you connect your phone, you will be prompted with a configuration page.
- Go to info tab, copy the chip id and save it to some notepad.
- Now disconnect the WiFi and reconnect to "IOT Connect". In the prompt go to configure WiFi.
- Select your home Access Point for internet connectivity. Give the password and click on save.
- Now the prompt will be closed and the blue LED on the device will turn off as soon as the internet is connected.
- Now go to IOT Connect, create an account, and then go to "control panel".
- Add a room and then click on 'add device".
- Give custom name to the device and then paste the chip id which you have copied earlier.
- Make sure the device is turned on and connected to the internet, then click "ok".
- You will be prompted with a message saying "Your device is successfully linked with your account".
- That's it. Now select the device which you have recently added and click on different relay toggle button. You will listen the specific relay will make tick noise.
- You can also rename the relays with the device name which you have connected to it. This will help you to call Alexa or Google Home to control it.
- You can share the device access among your family and friends just by sharing the chip ID. As you are the first person to add the device so you are the owner. You will recieve an email as well as a notification in you phone, when ever someone tries to link the device to their account.
- You can set trigger to turn on or turn off the relays at specific time using control panel as well as Amazon Alexa and google assistant.
Step 5: Syncing Amazon Alexa to IOT Connect.
- You can buy Amazon Alexa Echo Dot from here.
- Setup your Amazon Alexa device and install Alexa app on your android phone.
- Now visit skill store and add "IOT Connect" skill to your Alexa account.
- As soon as you activate the skill you will be redirected to IoT Connect authentication server. Login and select the device you want to control using Alexa.
- Click on control this from Alexa.
- That's it, Your Alexa account is synced with IoT Connect account.
- No go to IoT Connect "control panel" and rename the relay's with the appliances which you will connect to them.
- Now you can ask Alexa as "Alexa, Ask IoT Connect to turn on the fan.". If you have built revision 2 board with sensors attached, you can also call Alexa as "Alexa, Ask IOT Connect what's the Temperature?","Alexa, Ask IOT Connect what's the Humidity?", "Alexa, Ask IOT Connect what's the Light?".
Step 6: Syncing Google Home to IOT Connect.
- Google home is not available in India, but you can use google assistant on your phone to control IOT Connect devices.
- Get an Android phone and setup google assistant on it.
- Now call "Ok Google, talk to iot connect.".
- You will get a reply to link your Google account to IoT Connect account. Tap the link and you will be prompted to same authentication page. Login and select the device to control from google assistant.
- That's it. Now say "Ok Google, ask iot connect to turn on the tube light", "Ok Google, Ask IOT Connect what's the Temperature?", "Ok Google, Ask IOT Connect what's the Humidity?", "Ok Google, Ask IOT Connect what's the Light?".
Step 7: Thanks for Reading.
Now you can control any device using IOT Connect applicaion, Google Assistant and Amazon's Alexa from any where in the world.
You can install these devices directly to your wall sockets and transform your existing, boring manual appliances in to a smart house solution.
Participated in the
Voice Activated Challenge
Participated in the
First Time Author Contest 2018
Participated in the
Remote Control Contest 2017
Participated in the
Epilog Challenge 9