Arduino IoT Cloud – Getting Started

Arduino IoT cloud is the open-source platform that helps to add things, make variables, add integrations to the dashboard from where you can control numerous devices. The very first question is what actually does IoT mean? IoT stands for the internet of things. By internet of things we mean to say that many things can be controlled by using the internet. This allows things to communicate over the internet and show the results on a specific dashboard.

 The cloud supports the Arduino boards and a wide range of 3rd party microcontroller boards with wifi support. Some of the other compatible arduino IoT boards are, 

   

A Guide To Arduino Cloud Login

There are three ways by which you can log in to the Arduino cloud platform.

  1. Google Account
  2. Apple Account
  3. Create new account

If you are less than 12years old and want to make an account on arduino cloud, Arduino cloud allows you to have a junior account as well which is verified by the parent account. If you have a google account simply sign in with that or sign in using apple account or rather you can go with creating a new account.

How To Create a Thing?

Once you are done with logging in, you have to create a thing. The journey begins with creating a new thing. In the Thing overview, we can choose what device to use, what Wi-Fi network we want to connect to, and create variables that we can monitor and control. This is the main configuration space, where all changes we make are automatically generated into a special sketch file.
Figure 2: Setting up the device, Network and creating variables

How To Configure The Device?

Devices can easily be added and linked to the thing. The Arduino IoT cloud requires your Arduino agent to be installed. This agent helps you find and connect the devices with the cloud. If your computer doesn’t have the agent installed you can go in the sketch and there a message will pop up saying install Arduino agent from here.  You can simply use this link ( Arduino Agent installed). The configuration process is quick and easy and can be done by clicking on the “Select device” button in the Thing overview. Here, we can choose from any board that has been configured, or select the “Configure new device” option.
Figure 3. Device Association
When the device gets associated add the secret key and the device ID will show up. You can copy that or can download the portable document format(.pdf). The details like secret key and device ID will be needed afterwards so keep it safe with you. We can also get a complete overview of our devices by clicking the “Devices” tab at the top of the Arduino IoT Cloud interface. Here we can manage and add new devices.
The device tab

Creating Variables

The variables we create are automatically generated into the sketch file. There are several data types we can choose from, such as int, float, boolean, long, char. There’s also special variables, such as Temperature, Velocity, Luminance that can be used. When clicking on the “Add variable” button, we can choose name, data type, update setting and interaction mode.
Adding variable

Connecting To A Network

To connect to the wifi network simply hit the configure button on the network section. Here you will be asked to enter the SSID and the Password along with the secret key. The secret key will be in the pdf that you downloaded while associating the device.
Network configuration

Editing the Sketch

Once you have created the variables, add the secret key and now move to the sketch section where you can perform your code. The variables you created will automatically be generated on the sketch along with its functions/methods. You can edit the sketch and add your code for the sensor that you are willing to integrate with your microcontroller. Open the full text editor and edit your code as it is more user friendly as compared to that of the editor in the sketch section.
Editing Sketch
Once the sketch has been updated and is ready for uploading to the microcontroller you can simply do that by using the text editor. On the top left corner you will see a tick button which means to verify the code. If there are any errors it will prompt that else will say no error. Along with the verification button is the upload button but before uploading the code you will have to set up your device on the com port and will have to add it to the cloud. Make sure you have installed the cloud agent on your pc. Then add your device that you are using and once it gets added then upload the code to it.

Arduino IoT Cloud Application

The cloud can be accessed through the mobile application. Download the Arduino Cloud remote application from the app store or play store. The dashboard will be visible. One can only control the variables from a mobile app. The programming and uploading the sketch will be done by using the cloud on desktop or laptop.

Leave a Reply

Your email address will not be published.