IoT Energy Meter using NodeMCU & CT Current sensor | JLCPCB | Ubidots | DFRobot

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello everyone on this video I will let you know how to make your own energy meter which will let you know the total energy consumed by appliances every minute and not only that new very interesting feature in this project which will let you know the amount consumed in rupees by all your electrical appliances every minute so you will be able to observe the real-time electricity bill that will be generated every minute on your mobile screen or a laptop Mimi so this is all about the project and let's see how to make it to make this project you require all these components out of this the main component is the CT sensor from DF the board I will leave the link of this product in the description of this video so you can click on that link and buy it if you want to make this project now talking in brief about the working of the sensors then this sensor works on the theory that and via carrying alternating current generates a magnetic field around it which is proportional to the current flowing to the wire and vice-versa so what we need to do is we just need to clamp this sensor around the wire carrying alternating current now the magnetic fields are graded around the wire will it use the secondary current inside the building transformer of this sensor now that induced current has a very small magnitude which is decided by the number of turns in our transformer but that current is in direct proportion to the current flowing to the main wire so this is how we are able to measure the current using the CT sensor in my case I am using anode MCU board and these kind of boards can recognize variable voltage rather than variable current so thanks should be a pro board for making the small PCB that's a simple circuit based on Ohm's law which can give the variable voltage at the output by taking variable current at the input from CT sensor so this is a very brief explanation of the sensor okay so going ahead with our project we need to connect all this component in this particular manner now as to make this project more sturdy and designed my own PCB for 8 on easy idiot calm and gave it order to jails if you see we directly ordering PCBs online made very simple with ZL CP CV you just need to upload the Gerber file and the smart software automatically detects all the parameters now just select a favorite PC because of masking and place the order you will be receiving this amazing PCBs straight at your doorsteps so try out ZL c PCB to make your project you know need and more sturdy now one by one i stoled it all the components on the PCB for the sensor I just stripped down the wires and solder the wires directly on the PCB after that I stick this PCB from DF report using the double sided tape on the main PCB now after shoulding all the components our project looks something like this knead and solid now let's jump to the programming of this project so this is the code for this project now if you just want to use the basic code for the sensor then it's already provided by DF reports on their website so you can refer that code for basic programming but in this video I will focus on the main project code or you so first of all you need to have the tsuba doors MV data library installed on your system moving ahead here the center pin is defined by a0 and the range is defined by 20 which is the maximum capacity of my sensor to measure the cursor and below it the reference voltage is mentioned as 3.27 gold now the reference voltage in case of our Dino woods is 5 volt and in case of ESP to success and yes b32 boots is 3.3 volt but to make the readings way more accurate I just measured the exact voltage of my node MgO board which came out to a three point two seven volt precisely hence I mentioned here the reference voltage s 3.27 with the head here we need to define the Wi-Fi credentials of a router and below that we need to mentioned and you would not stoker if you are new to UB dot let me guide you on how to configure your new alerts account so first of all go to google.com and make an account here now click on devices and devices again and click on this create device pattern select blank here your device name as note MCU now click on create button so you successfully created your own device now go inside this device now here we'll add one variable so click on this add variable select wrong give it a name as current after successfully creating the variable click on this yoghurts loku which will open the home page here click on add new widget select god click on add variable now go inside Noor MCU and select this current variable now here we need to define the range as 0 to 20 and in the end give it a name as current this will create a gorge for monitoring the current value this is all you need to do on the unit server now we need to enter the token in the code and for that click here and select API credentials now click here to copy your account token go back to the code and paste that token here now this function is used to convert the analog data coming from the sensor into the current value move ahead into the main loop then here I am collecting the current value 60 times with an interval of 1 second and adding all the values in this current value variable now to get the rate of current flowing per minute I divided the whole value by 60 which gave me the required data whose unit is ampere minute now this value of current flowing every minute is sent to the humanoid server by these all functions so this is all above this code now let us select the right mode and code and hit this upload button after that it's time to install this project now here is my main mode now I need to attach the city sensor on one of the wire going inside this energy meter me aware with the connections you just need to clamp the sensor on one of the wire that may be light on neutral don't clamp both the wires otherwise the sensor won't give proper readings after clamping the sensor I just take this project PCB with a double sided tape near my nails board after that I just loved the CT sensor jack on the PCB now let's power up the device and see this project in action so as you can see we are getting the current values here on the dashboard now the last step of our project is to display the amount in rupees and for that we will be using the synthetic variable features of U in order so for that you need to go to the humidors dashboard and click on this devices and devices again now go inside the device which you have just created here click on this plus button select synthetic now in the synthetic variable you can add multiple variables and do some mathematical calculations here for example the synthetic variable can be used for converting a degree Celsius temperature data to degree Fahrenheit value so in our case we need to convert this current value into rupees and for that we first need to import the current variable from this node MCU device and now the equation to convert this current into rupees comes like this in this equation 220 is the voltage value and 4.1 is the amount in rupees per unit now these two parameters may be different for different locations and different time periods so change this value accordingly now click on this accept button here give it a name as a mountain rupees now this will create another variable which can show the amount consumed by your appliances every minute now click on this units logo to go to the dashboard here at another quads widget and select a mountain rupees variable set the range as 0 to 10 and give it a name as rupees and click on this create button now you can also observe how much amount is being consumed by your appliances every minute isn't it cool now what I did is I just used my IOT display which I made previously for my studio and modified the code to add these data in it so that I can monitor the energy consumption every minute on it and not only that I'm also adding the amount consumed every minute so that I can come to know how much total amount is being consumed by my appliances every day in my studio isn't this SuperDuper amazing hit the like button right now if you love this project and the concept visit take a case in the studio if you want to see this and many other projects live in action and as always you can get the free PCBs of my project with every taking SMS merchandise order so ending this video here subscribe my channel if you want to see more such innovative project tutorials other than project tutorials I also used to make a variety of videos of this magical field of electronics so just wait for my next Internet Explorer and share with me take a SMS [Music]
Info
Channel: techiesms
Views: 48,096
Rating: undefined out of 5
Keywords: iot projects, esp8266 projects, smart energy meter, dfrobot, ubidots, jlcpcb, nodemcu projects, mqtt, iot display
Id: mc_-8Eq1Ui0
Channel Id: undefined
Length: 10min 25sec (625 seconds)
Published: Sat Oct 19 2019
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.