Live monitoring your sensor's value from anywhere in the world using ESP8266 and Adafruit MQTT

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
subscribe taking SMS if you want to learn and make electronics and IOT projects and as there is no particular time period of uploading my videos do click on the bell like and so that you can get notifications whenever upload and you project hello everyone welcome to another project tutorial video from techie SMS now in this video we're gonna learn and make a device which can send the real-time value of the sensor to our smartphone from anywhere in the world now if you want to know how to make a such a device then watch this video till the end and I will let you know how to make it so without wasting time let's get started for making this project you will require one esp8266 board and any sensor for explaining I have used this 14 point 7 mm force sensor to buy this component do visit our shop at IKEA SMS comm / shop here you will get a link of the product after comparing the ratings and price from several Commerce websites and not only that you will also get all the related information regarding that particular components so do show up from techie SMS shop it will not only save your money and time but it will also help us to support our channel now moving on to is the hardware the hardware connection for this project is something like this now the rest of the work is done by the code so let's move on to the coding and before coding first of all you need to make an account in a different comm so first of all we'll visit the website called I adore Adafruit calm we are doing this we are following this step as we are using or we gonna use the Adafruit MQTT broker for our project hmmm okay so in this you need to you know create an account so code go in the sign-in option okay so need and I had after account so you need to go into signup and fill up the details after filling up click on this create account so as soon after you create your account go into sign-in option as I already created I will just log into my account okay so signing name tacky SMS and password is already saved Oh signing okay so after you get signing to this account you will get a page like this so you need to here you know to create a dashboard so I will just remove this and we'll let you know by creating again creating this dashboard so okay as soon as you will create it and count you will get a window like this you won't be saying this all national because this all I have created for different different projects so for your case you know to create click on actions and create a new dashboard give a friendly name for my case I will give it as a force sensor and you can write or it's an optional you can write description or you can leave it as it is click on create so after that clear go into this force sensor and click on this plus sign now here you have got so many options now for our case as we are going to monitor the value of a sensor will click on this gauge because this gauge will only display the you know values and this is what we want now you need to create a feed name here as I've already created this feed name okay now I will let you know by creating another so the feed name will be I need to build it this and create okay you just need to write here as fo RC e force and it will create what we can say feed so I already create this I will just tick mark it and click on the next step and here we will get the block title as the feed name then watch minimum value and maximum value so maximum value in our case it will be the limit of the integer which is 1024 so I will change this maximum value and God's width okay you can put it as thick or thin as per your choice it doesn't make any difference then click on this create block okay we successfully created a block now we can jump into the coding so for coding you need to download the library you need to download the Adafruit mqt library whose link is given in the description of this video so I will just open the Arduino you need to copy and paste that library in this the libraries folder of your Rd Nome okay so after that go to files there examples a defer template library and go to mdsp took six six example we just want to modify this example code okay so first of all you need to write your I said a name and password as the ESP need to get connected with the router as it requires an internet connection after that you need to provide the Adafruit username NEIU key which is provided in this only the first thing or rather you can click on this key button and he will find this this is the username in my case it is techie SMS just paste it here and the e io K is nothing but this active key let's copy it and paste it after that moving further as we just need to publish one value to the server we just need to you know I have this publish what we can say variable and we'll just come in it out this subscribe and one as we are not going to subscribe and I'm subscribe anything this got stuck okay so I'll just come into this line as we don't need to subscribe anything we just need to publish a value to the server after that no need to change here you can just comment out this line also as this is for subscribed one I will be laid out this this is also for the subscription and the main thing is here even change the name of a photo shell or you can leave it as it is no problem okay so here I have attached the sensor at analog pin 0 so I will just write as integer sensor is equal to a 0 and we need to define sensor as output in setup so pin more ok sensor core my input after that here you need to publish on values I will just create as in teacher force value is equal to analog read sensor and he will just publish value called force I'm sorry host value haven't published it will it will say ok and if it is it failed it will print a fail in the serum water and I will be publishing this every second ok so this is just about the code now I will upload this code one thing we haven't changed here it is photo shell as I have feed names that's changed to a force rather than the photo shell we just need to change here and now we need to again upload it a feed name changes according to your account if you choose another feed name alright like force underscore sensor or 4 cents or anything like that you just need to change the feed name here and also in that Android app and that will be see further so it started uploading okay successful uploaded so we'll just to move on to that dashboard and observe our readings here oh so this is the hardware oh this is the sensor and as you can see the dashboard a gauge value which is right now at position two or the value two I will just you know first of all press it smoothly and as you can you will observe the slight changes in the value this is the soft touch and we'll just press a little harder okay harder harder again harder and harder H okay so this is the limit rais'd of thousand twenty four I will just release the okay smooth again soft soft soft hard okay so likewise you can observe there is a real-time or we can measure the values of the sensor real-time and this is going through internet so we can observe it from anywhere in the world we can login to edit a free account and we can observe this data and if you don't do again and again want to login to your account you can use the end roid app now how to configure the end road app let's see for configuring the app you need to download an app called m-theory dashboard from play store go to play store and event edit a dashboard install this particular app after installing this app click on open so we click on this plus sign a give a random client ID for example one server in our case is IO dot adafruit.com as we are using the Adafruit mqtt service for port mp3 port is one double eight three and four username and password you need to log into your Adafruit account so go to Google Chrome create a new tab and type IO dot Adafruit calm now let's go to sign in now sign in to your particular count now we will click on our what is a required dashboard which is for sensor and click on this key icon here as you can see the tech AMS is my username so I will just type a techy SMS it's my user name section and for password is nothing but this active key I will just copy this and paste it here okay this is click on create and now go to this manner as we need to subscribe we'll go to subscribe option and click on this plus sign a give a friendly name like a force sensor or full value and topic name now for topic name the format is the first of all username which is the key SMS in my case /f WDS feeds forward slash the feed name so in my case the feed name is 439 to go to setting and again in the setting icon and the feed name here is f4 RCE force so I will just write here f o RC e okay so click on create now we successfully configured the app now let's see it in action this is how you can live monitor your senses reading or any sensors reading from anywhere in the world through your smartphone or on your smartphone so this is it about the project and yes don't forget to buy components from Dec ASMs shop you can buy any component from there and that will help us to support that channel and that will also provide some benefits to you just like it will save your time of searching for you know component which have a reasonable price and you know very much good ratings it will save your time of searching order datasheet searching out the library's pin diagram getting started videos project videos and almost everything so do visit decoration with shop today and for such upcoming project tutorials do subscribe my channel and stay tuned for the next project till then explore learn share with me take a SMS [Music]
Info
Channel: techiesms
Views: 67,556
Rating: undefined out of 5
Keywords: esp8266, projects using esp8266, iot projects, diy iot projects, mqtt, mqtt esp8266, mqtt projects, projects using mqtt, techiesms, techiesms shop, iot, adafruit, arduino, nodemcu, esp8266 projects, nodemcu mqtt, pubshub, mqtt using arduino, mqtt protocol youtube, smart phone, Adadfruit mqtt, sensor
Id: FA8KThapt3U
Channel Id: undefined
Length: 12min 31sec (751 seconds)
Published: Sun Sep 17 2017
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.