Using Arduino IoT Cloud with ESP32 | Is it better than New Blynk 🤔

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
in this video i will let you know how to get started with the arduino iot cloud using an esp32 board and after watching this video you will be successfully able to make your very first project using this arduino ide cloud using which you will be able to control the led onto the esp32 board as well as monitor the temperature humidity census data using this dst11 sensor and you'll be able to control and monitor the things using both your web dashboard as well as mobile dashboard so this is kind of a very basic video just to get started with the arduino iot cloud let's get started this video is sponsored by ltm which is a pcb designer based software company now let me tell you one very interesting very unique feature about this software which i bet you haven't seen in any other pcb designing software and that feature is called as follow me mode now this is truly very useful feature which i can't explain it in simple words let me show you the actual video of this particular feature have you seen that the path automatically adapts the curve quite seamlessly and how i can imagine making this kind of path in any other pcb designing software would be really a tedious task for sure now you can also try this and many other features of this pcb designing software by just clicking on the link mentioned in the description yes by clicking on that link you'll be getting a free trial version of ltm designer software so go ahead try it out and if you find it interesting you can purchase the software later on so to get started with this arduino iot cloud you first need to go to create dot arduino dot cc and here you first of all need to create and log into your account i'm already logged into my account after that just click on iot cloud okay so identity cloud also offers couple of plans which i'll be discussing at the end of this video okay okay so as soon as i click on iot cloud i get this particular window here first of all we need to create a thing let us click on create thing now here first of all we need to create variables okay so just click on add variable after that you just need to name the variable so as we want to make a project of controlling one led and monitor temperature humidity census data so in total we require three different variables okay so let's just add one by one i will name the first variable as led after that we need to select the variable type now this is same like we used to uh add the data types like the integer string boolean stuff like that okay but here they have mentioned kind of a generic terms okay like it's an acceleration angle stuff like that so led is uh we can say light so i will search for light and yes light is available so basically it's a boolean variable we can say i'll click on light after selecting that it automatically creates a variable for us now here we have to define whether it is read or write or read only so we can consider that all the sensors are read-only variables and all the output devices are read and write variables okay as led is an output device i'll select read and write because we need to write some data onto that variable okay so i'll select this permission after that we need to provide one more thing which is variable update policy do we want to update the variable as soon as some changes happen or we want to update the variable periodically in our case as we want to change the led status based on the button i'll select on change only after that click on add variable so with this we have successfully added one variable let's similarly add two more variables i'll click on add give the second variable name as temperature it's variable type will be let's search for temperature okay it's available so i'll select temperature sensor as you can see the variable is already declared here its permission is already declared because as i said sensors are read only variable so it's by default read only and again i here i will select on change because as soon as the data is changed i want to get the data click on add variable and similarly i will add one more variable whose name will be humidity it's variable type will be let's search for humidity okay it's available so i'll select humidity and the variable is declared its permission will be read only because we want to rate the data again and its update policy will be on change click on add variable so this is how you can add variables according to the need of your project okay i successfully added after that we need to select a device like on which device we are expecting or we need to upload a date of the code i'll click on select device and here we have two options is it an arduino device or is it a third party device so arduino recently started accepting the third-party devices like the esp8266 and esp32 as well so esp32 is a third-party device i will select a third-party device here select esp32 and i will select the model as do it davekit b1 okay after that click on continue uh we need to name the device let's just name it as my esp32 okay special character is not not allowed so my let's just type underscore okay works so after adding your device it will be creating two uh credentials we can save one is the device id and next is the secret key now we need to save both this uh parameters we can say inside our computer because we will be requiring these com parameters at the time of coding okay so for that you just need to click on download the pdf and it will automatically download the credentials pdf on your computer as you can see here is my pdf containing all the data after that click on i saved my device id and click on continue with this we have successfully added a device as well and now we need to provide the wi-fi credentials because come on this is an iot project and this esp board do require the internet connectivity so just click on this configure button provide your sid name i will provide the site name of my wifi router after that i'll provide the password of my router and after that here we have to provide the secret key now you can get the secret key from this particular pdf i will simply copy it and paste that thing here click on save so with this we have you know configured our device we can see okay now before moving to the coding part let's first configure the dashboard okay i'll click on the dashboard here not now and here i will select build dashboard so here one dashboard is created with the name untitled now here i will click on this icon to edit the dashboard and here i will click on add to add different different widgets so here are all the available widgets for our projects they are kind of limited widgets if we compare it with the blink id platform but yeah they are all the important widgets we can say and it will be enough for our majority of our projects okay so first of all i'll add a switch here to control the led i'll name it as led and i will link a variable to this switch okay so we need to define on which variable when to send the data of the switch widget so i will select the led here i'll click on link variable so the led variable is linked with this button and after that i'll simply click on done so with this we have successfully configured the first widget similarly i will add two more widgets for two more parameters so for humidity let's just click on percentage i'll name it as humidity i'll link the variable humidity with this particular widget and click on done and similarly for temperature i will add a widget called as gauge i'll name it as temperature come on see okay i'll link the variable temperature here and you can also define the range but 0 200 is enough for me i'll click on done so with this we have added three widgets let's just add one more widget of graph we can say a chart and i will name it as temperature only and i'll link the variable as temperature okay that's it click on done okay so we have successfully added of four different widgets now let me tell you one thing here inside the arduino iot cloud platform you don't need to create separate dashboard for mobile application and the web application uh whatever you create inside the web application it will be reflected directly to your mobile application without doing any changes okay so both the dashboard are a common dashboard we can say unlike blink iot platform blink offers a web dashboard and mobile dashboard separately okay so that's it we have successfully edited the dashboard now i will again go to things and now it's the time to make the code for it i'll go to this untitled and here we will be going to the sketch option now one very great thing about this arduino iit cloud platform is you don't even need to have any any software any library to be installed onto your computer you just need to have a basic computer with the internet connectivity and all the things will be done inside this iot uh arduino id cloud platform only yes they do provide the online arduino ide or we can say code editor software with all the libraries already included on it so this is kind of a plus point for arduino because we don't require anything other than a computer with an internet connectivity that's it okay so yeah here is the code which is made particularly for our project as you can see these three variables are already declared uh itself by this computer by this cloud platform which is temperature humidity and led and after that all the necessary lines are already added now we just need to uh embed the logic for our project okay so what i will do is as you can see here one function is already created as on led chain so as soon as the status of the button changes this function will be called now here we have to define what we have to do as soon as the button is changed so i want to turn on and off the led based on this on the button status okay so for that what i will do is here i will write as if led is equal to equal to one if the data from if the data of the led variable is coming as one means the button is turned on now let me tell you here you don't need to define this led variable because it is already defined here globally okay so we can directly write this statement after that if the data is one i want to turn on the built-in led for that i will write digital right pin number two comma high as the led built in is on the digital pin 2 and i will write else if the data is 0 i'll simply turn off that led pretty simple now we have to define this as output so i will go to the setup part and here i will write pin mode comma into the brackets to comma output great okay so as soon as the button will be changed we'll be able to turn on and off the led now is the time to uh send the data of the temperature and humidity for that first need to define the library of the dht sensor now here is also one really great thing we don't need to install any library let me show the steps first of all we'll click on this open full editor that will be having a way more options uh to write the code for it okay as soon as you click on it a new window will be opened up so yeah here is our code now as you can see here is the library section and here we can search for different different libraries but the good thing is that if you click on library manager as you can see it says all the libraries included in the library manager already available for your sketches means you can see there are so many libraries like there are 79 different pages and each page has like 10 to 10 20 libraries so i think like libraries for most of our sensors and development boards and we can say output devices are already included inside this uh arduino cloud platform so we don't need to import any of the library okay if i search for the dht sensor library you'll be able to see that that census library already exists inside the arduino cloud platform so that's a super great thing we don't need to include the library we just need to include the library inside the main code and write the code for that so what i'll do i'll open the example code of the dht library here's that example code and i'll simply copy a couple of lines from it i'll fast forward this video okay so i added all the necessary lines to read the data from the dht11 sensor okay like the pin number like the dst sensor type and everything okay after what i did is i created a function called as dst sensor it which is called inside the main loop and inside that function we are just reading the humidity value which is stored inside the h variable and the temperature value which is stored inside the t variable okay we can just print that data into the serial monitor if we want let's just type the data for that okay so whatever data coming from the sensor we directly printed onto the serial monitor but what we want is we don't want to display it on the serum order rather we want to send that data to that dashboard to those widgets and for that we need to store this data into the particular variable that we have declared in the beginning of the video and those variables are temperature and humidity so what i'll do is i'll simply type our temperature is equal to t semicolon humidity let's see the spelling as well okay it's humidity only so humidity is equal to h so by typing these two lines i'll be successfully able to send the data to that dashboard widgets we can say okay uh here i could write serial okay great and i will be sending that data at the interval of let's say one second great so with this we have successfully written the code to control the led as well as to send the census data to the cloud platform as well as the serial monitor okay so now what i'll do is i'll click on this compile button to see if there are any errors in this particular code or not so i'll click here verify and save and one more thing this code will be automatically saved onto your arduino cloud platform okay so you don't need to download this uh onto your computer you can download it but you don't need to because it's already saved on with your cloud platform okay it says dht does not name a type okay sorry i have to type this command inside the white setup part great i'll again verify and save okay so code is successfully compiled so there are no errors now now what i'll do is i will be going to uh arduino cloud again i'll click on leave page it'll take me back to that previous page okay i'll go to the sketch and here is that sketch which i have already written now we need to directly upload the code onto the esp32 board now you'll be surprised when i say you can directly upload the code using this web browser straight onto the esp32 board no need to have that arduino software to be installed as i already stated in this video okay now the question is how to upload the code because as soon as i hover my arrow i'm not able to click on this upload button so to upload the code you first need to have the arduino uh we can say create agent installed on your computer and for that as you can see a pop-up appear here so just click on the learn more button and you have to you know download this we can say agent and to download that you just need to click on this download button in my case i already downloaded install on my computer so i'll quickly start that arduino agent arduino create agent okay so as you can see the arduino create agent has started running and as you can see now i'm able to upload the code onto the esp32 board which is connected with my computer so i'll directly click on the upload button and and let's just wait for a couple of seconds and here the status says success that means it is completely successfully uploaded now we also have the serial monitor inside this web browser so we have so many things here so i'll quickly select the serial model and press the reset button onto my esp32 board it says field to open the serial monitor uh why is it so i can press the reset button okay as you can see it is uh running all the code inside it it is trying to connect to the arduino cloud yet it is it is connected successfully it's connected to my wifi router as well as you can see i'm able to see the temperature and humidity data onto the serial monitor that we have coded inside this particular uh esp32 board now let's see uh whether the data is coming onto the dashboard and whether we are able to control the led or not so i'll simply click on the dashboard and go and send untitled dashboard okay so the humidity and temperature data is successfully displayed and it will be updated after every second so yeah we are able to see the data now it's the time to check if we are able to control the led or not so i'll turn on the camera on my smartphone okay so here's the esp32 board and as soon as i turn on the button on to this dashboard okay as you can see the led cord turned off and if i turn it off the built-in elite the blue ideally got turned off so yeah we are also able to control the led using the web dash button we also able to monitor the sensors data simultaneously now we are left with one last thing that is to use mobile dashboard it's quite simple you don't need to do anything you just need to install this iot remote application by arduino after downloading that application just open it and log into your arduino account and as you can see the dashboard which you have configured appeared here just go inside the dashboard and as you can see all the widgets that you have configured inside the web dashboard automatically appeared into the mobile dashboard as well and from here you'll be able to monitor the sensors data and also you'll be able to control the ld using this button onto the dashboard and all the three things are connected that means the data updated from the web dashboard will be automatically reflected to the esp32 board as well as the mobile dashboard and vice versa so yeah this is how you can make your very first project using the arduino iot cloud it's simple straightforward easy to use and easy to make as well it's quite convenient because you do need to have any external software not even arduino ide onto your computer now it's a time to see the plants okay so right now i'm using the free plants but they also have the paid plans let's just go to the plants and see uh what they offer so here are the plans so in the free plans we will be able to create two things that means we'll be able to configure two devices like two different esp32 boards or the nodemcu or stuff like that after that we can create unlimited dashboards and we can store up to 100 mb of sketches as i said the sketches we write are already stored inside the cloud platform so you can store up to 100 mb of arduino codes okay straight out of that here we will be having only one day data retention that means all the data that is collected from your iot us will be stored for only one single day in the free plan and 200 seconds per day of compilation time now compilation time is a bit tricky let's just let me just show you its definition so compilation time is the amount of time available to verify the code and upload it to on to your board so all the things like compiling and verifying and uploading the code is happened uh with the help of the arduino cloud so you'll be able to verify different different codes for only 200 seconds in one single day inside the free uh plan okay but they also have a paid versions uh if you want to use it more often or for multiple devices like the entry maker maker plus okay so all the plans are displayed on the screen so you can go through that and if you are liking it if you are loving it if you want to use it quite often for multiple devices you can go for different different plans so yeah that was all about the arduino iot cloud like a getting started video uh i hope you enjoyed it i hope you got to learn something new from it a visit so consider liking this video also let me know in the comments like what will you choose for your iot projects is it blink iot platform or this arduino iot cloud what will you choose do let me know in the comments and that being said i'm just ending this video here and now just wait for my next one to explore then share with me techy sms you
Info
Channel: techiesms
Views: 84,472
Rating: 4.9005899 out of 5
Keywords: arduino iot cloud, esp32 projects, arduino create agent, getting started with arduino iot cloud, dht11 with arduino iot cloud, controlling led using arduino iot cloud, arduino iot cloud vs blynk iot, arduino vs blynk, arduino iot, arduino cloud, arduino iot cloud projects, arduino cloud projects, arduino remote app, remote iot dashboard
Id: rcCxGcRwCVk
Channel Id: undefined
Length: 19min 41sec (1181 seconds)
Published: Sat Jul 10 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.