In the Arduino IoT Cloud tutorial, I have explained how to set up a FREE Arduino IoT Cloud account to connect ESP8266 or ESP32 and control the appliances with Amazon Alexa and Arduino IoT Cloud web dashboard and mobile app.
Related Article:
Arduino IoT Cloud ESP8266 Project
Arduino IoT Cloud ESP32 Project
Table of Contents
Create an account in Arduino IoT Cloud
![ArduinoIotCloud project tutorial p1 Arduino Iot Cloud project Tutorial](https://iotcircuithub.com/wp-content/uploads/2021/06/ArduinoIotCloud-project-tutorial-p1-1024x600.jpg)
First, you have to create an account in Arduino IoT Cloud. To sign up click on the following link.
Now click on GET STARTED FOR FREE.
![ArduinoIotCloud project tutorial p2 ArduinoIotCloud project tutorial p2](https://iotcircuithub.com/wp-content/uploads/2021/06/ArduinoIotCloud-project-tutorial-p2-1024x632.jpg)
Now click on “Create your account” to sign up and enter the required details.
Now, you will receive a verification email from Arduino IoT Cloud
![arduino iot cloud tutorial pic 7 verification email from Arduino IoT Cloud](https://iotcircuithub.com/wp-content/uploads/2021/06/arduino-iot-cloud-tutorial-pic-7.jpg)
To verify the Arduino IoT cloud account go to your email inbox and open the email received by Arduino IoT Cloud.
Click on CONFIRM NOW to verify the account.
Then go to the Arduino IoT cloud account and refresh the screen.
![arduino iot cloud tutorial pic 5 arduino iot cloud tutorial](https://iotcircuithub.com/wp-content/uploads/2021/06/arduino-iot-cloud-tutorial-pic-5.jpg)
Now, click on IoT Cloud.
Now first we have to create Things in Arduino IoT Cloud.
In the Arduino IoT Cloud, a “Thing” is a virtual representation of a connected device, encompassing its properties (variables like sensor data or control states), network connection details, and interaction methods.
Steps to Create Thing in Arduino IoT Cloud
![ArduinoIotCloud project tutorial p3 Steps to Create Things in Arduino IoT Cloud](https://iotcircuithub.com/wp-content/uploads/2021/06/ArduinoIotCloud-project-tutorial-p3-1024x510.jpg)
After login, click “CREATE NEW” and select “Things“.
![ArduinoIotCloud project tutorial p4 ArduinoIotCloud project tutorial p4](https://iotcircuithub.com/wp-content/uploads/2021/06/ArduinoIotCloud-project-tutorial-p4-1024x570.jpg)
Then rename the Thing.
Now we have to configure the Smart Home integration.
![ArduinoIotCloud project tutorial p5 ArduinoIotCloud project tutorial p5](https://iotcircuithub.com/wp-content/uploads/2021/06/ArduinoIotCloud-project-tutorial-p5-1024x593.jpg)
Click on the “Configure” button under the Smart Home integration.
![ArduinoIotCloud project tutorial p6 ArduinoIotCloud project tutorial p6](https://iotcircuithub.com/wp-content/uploads/2021/06/ArduinoIotCloud-project-tutorial-p6-1024x659.jpg)
Now you can select either Alexa or Google Home as per your requirement.
Steps to Select Device for Thing
![ArduinoIotCloud project tutorial p7 Steps to select Device for Thing](https://iotcircuithub.com/wp-content/uploads/2021/06/ArduinoIotCloud-project-tutorial-p7-1024x609.jpg)
To add a Device in Thing, click on “Select Device“.
![ArduinoIotCloud project tutorial p8 ArduinoIotCloud project tutorial p8](https://iotcircuithub.com/wp-content/uploads/2021/06/ArduinoIotCloud-project-tutorial-p8-1024x636.jpg)
You can select any old device from here or click on the “SET UP NEW DEVICE” to create a new one.
![ArduinoIotCloud project tutorial p9 ArduinoIotCloud project tutorial p9](https://iotcircuithub.com/wp-content/uploads/2021/06/ArduinoIotCloud-project-tutorial-p9-1024x645.jpg)
For ESP32 or ESP8266 click on the “Third party device“.
![arduino iot cloud tutorial pic 8 add ESP8266 Device in Arduino IoT Cloud](https://iotcircuithub.com/wp-content/uploads/2021/06/arduino-iot-cloud-tutorial-pic-8.jpg)
![ArduinoIotCloud project tutorial p10 ArduinoIotCloud project tutorial p10](https://iotcircuithub.com/wp-content/uploads/2021/06/ArduinoIotCloud-project-tutorial-p10-1024x685.jpg)
In the Setup Device, for NodeMCU, select the device type as ESP8266 and the model as NodeMCU 1.0.
If you use ESP32 then select device type as ESP32 and related model.
You will get all the Arduino-compatible boards in the dropdown menu.
After that click on CONTINUE.
![arduino iot cloud tutorial pic 9 give a name to Device in Arduino Cloud](https://iotcircuithub.com/wp-content/uploads/2021/06/arduino-iot-cloud-tutorial-pic-9.jpg)
Now, enter a name for the device which you have just created. Then click on NEXT.
![arduino iot cloud tutorial pic 10 Device ID and secret key of Arduino cloud](https://iotcircuithub.com/wp-content/uploads/2021/06/arduino-iot-cloud-tutorial-pic-10.jpg)
Now, you will get the Device ID and Secret Key for that device. Click on the “download the PDF” to save the details in your local system.
Then click on CONTINUE to add the device.
Steps to add Variable in Arduino IoT Cloud projects
to control any relay or to get the data from any sensor, you have to add variables in Arduino Cloud Thing.
Here I have added 4 variables to control 4 relays. In the FREE plan, you can add up to 5 variables.
![ArduinoIotCloud project tutorial p15 Add variables in Arduino Cloud project](https://iotcircuithub.com/wp-content/uploads/2021/06/ArduinoIotCloud-project-tutorial-p15-1024x581.jpg)
To add a variable click on ADD in the setup tab.
![ArduinoIotCloud project tutorial p16 ArduinoIotCloud project tutorial p16](https://iotcircuithub.com/wp-content/uploads/2021/06/ArduinoIotCloud-project-tutorial-p16-1024x709.jpg)
Enter a name of the variable, and select the variable type as Google or Alexa-compatible Switch.
![arduino iot cloud tutorial pic 12 add Variables in Arduino IoT Cloud](https://iotcircuithub.com/wp-content/uploads/2021/06/arduino-iot-cloud-tutorial-pic-12.jpg)
Select Variable Permission as “Read & Write” and Variable Update Policy as “On Change“.
Then click on “ADD VARIABLE“.
![arduino iot cloud tutorial pic 23 Steps to add Variable in Arduino IoT Cloud projects](https://iotcircuithub.com/wp-content/uploads/2021/06/arduino-iot-cloud-tutorial-pic-23-1024x415.jpg)
Similarly, I have added 4 variables to control 4 relays.
For the Temperature sensor select the Temperature Sensor type.
![Arduino IoT Cloud tutorial p18 Arduino IoT Cloud tutorial p18](https://iotcircuithub.com/wp-content/uploads/2021/06/Arduino-IoT-Cloud-tutorial-p18-1024x624.jpg)
Then select the Variable Permission and Update Policy for the sensor.
![Arduino IoT Cloud tutorial p19 Arduino IoT Cloud tutorial p19](https://iotcircuithub.com/wp-content/uploads/2021/06/Arduino-IoT-Cloud-tutorial-p19-1024x666.jpg)
As per the above configuration, it has Read Only permission, so it will only show the reading. And after every 8 seconds, it will fetch the data from the sensor.
Steps for Arduino IoT Cloud Web Dashboard Setup
![arduino iot cloud tutorial pic 14 Arduino IoT Cloud Web Dashboard set up](https://iotcircuithub.com/wp-content/uploads/2021/06/arduino-iot-cloud-tutorial-pic-14.jpg)
Now, click on the Dashboard on the top. Then click on “BUILD DASHBOARD“
![arduino iot cloud tutorial pic 15 Arduino IoT Cloud Dashboard set up](https://iotcircuithub.com/wp-content/uploads/2021/06/arduino-iot-cloud-tutorial-pic-15.jpg)
Now click on the EDIT icon. Then click on ADD and select the Switch widget.
Then enter a name for the Switch widget and click on the Link Variable button on the right.
![arduino iot cloud tutorial pic 24 Arduino IoT Cloud Web Dashboard set up](https://iotcircuithub.com/wp-content/uploads/2021/06/arduino-iot-cloud-tutorial-pic-24-1024x358.jpg)
Now, you have to link a variable that you have already created, with the Switch widget. After selecting the variable, click on “LINK VARIABLE“.
![arduino iot cloud tutorial pic 16 Set up switch widget in Arduino cloud dashboard](https://iotcircuithub.com/wp-content/uploads/2021/06/arduino-iot-cloud-tutorial-pic-16.jpg)
After that click on “DONE“.
![arduino iot cloud tutorial pic 17 arduino iot cloud dashboard](https://iotcircuithub.com/wp-content/uploads/2021/06/arduino-iot-cloud-tutorial-pic-17.jpg)
Similarly, you have to add all the required widgets.
Here I have added 4 Switch widgets in the Arduino Cloud dashboard.
Now click on Things on the top to exit the dashboard.
Sketch for Arduino IoT Cloud projects
![arduino iot cloud tutorial pic 18 Sketch for Arduino IoT Cloud projects](https://iotcircuithub.com/wp-content/uploads/2021/06/arduino-iot-cloud-tutorial-pic-18.jpg)
When you add any variable in Things, the Sketch will be automatically updated in the Sketch tab.
You can further update this sketch to add more features as per your requirements. Then click on “Open full editor” to download the sketch in your local system or program the microcontroller from Arduino Web editor.
For my project, I downloaded the sketch and then opened it in Arduino IDE to program the microcontroller.
![arduino iot cloud tutorial pic 27 downloaded Arduino IoT Cloud project sketch](https://iotcircuithub.com/wp-content/uploads/2021/06/arduino-iot-cloud-tutorial-pic-27.jpg)
After downloading the sketch, you will get these three files. You have to keep these 3 files in the same folder.
Install Arduino IoT Cloud Library in Arduino IDE
![Arduino IoT Cloud tutorial p20 Install Arduino IoT Cloud Library in Arduino IDE](https://iotcircuithub.com/wp-content/uploads/2021/06/Arduino-IoT-Cloud-tutorial-p20-1024x529.jpg)
To program the ESP8266 or ESP32, you have to install the ArduinoIoTCloud library and all other dependencies.
Go to Sketch -> Include Libraries -> Manage Libraries in Arduino IDE.
When you try to install the ArduinoIoTCloud library, it will ask you to install all the dependencies. Then click on Install All.
Update the Arduino IoT project Sketch
Now open the .ino file in Arduino IDE. You have to enter the DEVICE ID, Wi-Fi credentials, and SECRET KEY.
You will get the Device ID and Secret Key from the PDF that you have downloaded.
Now copy the DEVICE ID and paste it into the thingProperties.h file in Arduino IDE. (refer to the following picture)
![Arduino IoT Cloud tutorial p21 Arduino IoT Cloud tutorial p21](https://iotcircuithub.com/wp-content/uploads/2021/06/Arduino-IoT-Cloud-tutorial-p21.jpg)
Then update the Wi-Fi credentials and Secret Key in the arduino_secrets.h file in Arduino IDE. (refer to the following picture)
Now you can upload the code to ESP8266 or ESP32 as per the device you have selected in Arduino Cloud.
![PCBWay 10 anniversary p1 PCBWay 10th Anniversary](https://iotcircuithub.com/wp-content/uploads/2024/07/PCBWay-10-anniversary-p1-1024x213.jpg)
PCBWay is celebrating its 10th anniversary with a range of exciting new features and a variety of discount coupons. This is a great opportunity to take advantage of special offers and explore everything they have to offer. Don’t miss out—visit the following link to discover more and start saving!
![PCBWay 10 anniversary p2 PCBWay 10th Anniversary](https://iotcircuithub.com/wp-content/uploads/2024/07/PCBWay-10-anniversary-p2-1024x505.jpg)
How to use Arduino IoT Cloud Remote App
![arduino iot cloud tutorial pic 1 Arduino IoT Cloud Remote App setup](https://iotcircuithub.com/wp-content/uploads/2021/06/arduino-iot-cloud-tutorial-pic-1.jpg)
1. Download and install the Arduino IoT Cloud Remote App from Google Play Store & App Store.
2. Tap on SIGN IN.
3. Enter the Email ID and Password of the Arduino IoT Cloud account, then tap on SIGN IN.
4. Tap on the Thing name (which you have created) to open the dashboard.
You can also connect Arduino IoT Cloud with Amazon Alexa to control the appliances with voice commands. Click on the following link for more details.
Connect Arduino IoT Cloud with Amazon Alexa
If you face any issues you can always let us know and please share your feedbacks with us.
Thank you for your time.