Arduino IoT Cloud Tutorial

Arduino IoT Cloud Tutorial

We are living in the world of innovation. As we all know that Internet-connected human beings with each other. Now it’s time to do things or devices with the Internet. Some of us are already familiar with the term IoT (Internet Of Things). Through the following project, we will be implementing the IoT into reality.

Picturization of IoT

Arduino IOT Cloud

Many of us might be wondering about the Arduino IoT cloud. To answer this question one can say, it is a basic platform for IoT. Indeed it is an application using which we can connect different types of devices in an easy way so that, the data can be exchanged quickly.

Aim of the project

Our main motive of the project is to install a home automation system and for that purpose, we will be integrating an ESP8266 Microcontroller with Arduino IoT cloud. But before doing that let’s have some fun by controlling an LED from the Arduino IoT cloud.

Steps to create a thing

  • Open any browser like Google Chrome, search for Arduino.cc. Arduino.cc is Arduino’s official website.
  • In order to reach the the Arduino IoT cloud, select cloud and click on ‘IoT cloud’. Here onwards the process of creating thing will start.
  • Click on create a thing after selecting the location. A page will open in which we will be required to enter the name of the thing. For this project we kept the name of our thing as ‘Thing’.
  • Furthermore create a new variable by clicking on ‘Add variable’ and name it as LED, as in this case it is a Boolean variable, select the type of variable as the same.

Setting up ESP8266 Microcontroller

Our main component is the ESP8266 chip in which the program has to be uploaded. For the same impetus set a new device as ESP8266 and select mode as ‘NodeMCU’, the device can be named as anything. Here we have taken the name as ‘New device’. A device ID and secret key will be created. Save these things for later formalities and click on continue.

Configuration of Network

By clicking on ‘Configure’ we will be asked to name the WIFI. We have named the WIFI as ‘robocircuits’, as well as set a password and paste the secret key.

Extract the code for ESP chip

Go to ‘sketch’. To get the things done here we have to change the program a bit by ourselves. To resolve the same go-to ‘full editor’ to open the Arduino cloud editor. Following this, a new tab called ‘Arduino editor’ will be served to us. From there you can select the board and click on NODEMCU 0.1. Plugin the device on the board and upload the program, after that Arduino cloud agent comes into action. If we click on the monitor section, the device will be connected to the Arduino IOT cloud and WIFI. Change the code a bit in on LED change by writing ‘serial.Print(LED value change)’.

Creating a new Dashboard

We have to create a new dashboard in the Arduino IOT cloud. Name it as ‘Blink dashboard’. Add a switch then link a variable to it. Afterward, select the ‘thing’ and click on variable i.e ‘LED’. Link the variable to it and click on ‘done’.

PCB order from JLCPCB

We have designed the PCB layout from our very friendly to use software ‘Altium’. It gave me wonderful experience while working on it, as it is very easy to use.

Get Altium (One Month Free) – https://www.altium.com/yt/RoboCircuits

We ordered from JLCPCB which is one of the most reliable providers. They make PCBs at your convenience. The ordering process is really simple and manufactures PCBs in just two days.

$2 for 1-4 Layer PCBs, Get Free SMT Coupons →https://jlcpcb.com/IYB

Soldering

Assemble the components by soldering and we are ready to upload the program from Arduino IoT Cloud to ESP device, through USB to UART converter.

Testing of LED

ON/OFF from Arduino IOT cloud, change will occur at Arduino Editor’s tab. In this way we can send data to the ESP device and the LED will behave according to the ON/OFF switch. Now change the code again by writing digital write ‘Pin number D2’, set pin to output and upload the code. As the variable is LED, ESP’s D2 pin will become high/low according to the switch. Fortunately Arduino IOT cloud has an app also. We can control everything from our phones.

Installing Home Automation System

Finally, we have reached the second phase of the project in which we will try to install a ‘Home Automation System’. For this, we required the following components.

  1. ESP8622 Microcontroller
  2. 2 Relays
  3. Compact power supply
  4. Screw connectors for AC
  5. Connectors for switches and sensors.

Testing the Home Automation System

The testing of this will be done in the same manner as we have done earlier for LED, that is using the mobile application.

Leave a Reply