IoT Based Battery Monitoring System Using ESP8266 & Arduino IoT Cloud

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
in this we will build a battery status monitoring system using nodemcu esp8266 and arduino iot cloud using this system we can monitor the battery voltage and battery percentage from anywhere in the world therefore this system is useful for monitoring the charging or discharging status of a battery remotely as we know the battery in any system or device is the main component because it powers the entire system and hence we need to monitor the voltage level of the battery the improper system of charging and discharging may lead to the battery damage or the system failure so most of the electrical or electronics device have a battery management system bms and actually bms monitors all the properties of the battery life battery voltage battery current temperature and also the auto cutoff system to ensure the proper safety and handling of the link of the lithium ion battery today we are going to build this battery status monitoring system the bms can only monitor the condition of the battery and alarm the user through a battery indicator but in this project we have used the internet of things iot technology which can directly notify the users remotely now due to the use of this iot we can directly notify the users remotely from anywhere in the world the user can check the battery status on their smartphones or computer dashboard from anywhere in the world so in this project we are going to use the nodemcu esp8266 development board to send the battery status data to the arduino iot cloud and the iot cloud dashboard will display the battery voltage along with the battery percentage in both the charging and discharging condition here are the components that are required to build this project our nodemcu esp8266266 development board tp4056 charging module 18650 lithium-ion battery few jumper cables and a pair of 100k resistor most of the lithium-ion batteries comes with the nominal voltage of 3.7 volt and the maximum voltage is 4.2 volt when the battery is fully charged you can see the manufacturer datasheet for your battery cut off voltage because it varies depending upon the type of battery that you are using the battery that i am using in this project has a discharge cut-off voltage of 2.8 volt which is common and you can get the batteries cut off voltage of lithium ion battery in between 2.5 volt to 3 volt now let's move to the circuit designing part we are going to design a simple system to monitor the battery voltage and battery percentage so here i am going to use the nodemcu microcontroller and it is record those data values to the arduino iot platform so i choose a cheap and widely used nodemcu esp8266 board it has built-in wi-fi chip and that helps to connect your wi-fi network and upload the data to the cloud server similarly i am using the tp4056 module to charge this lithium ion battery this is the best module for charging this type of battery because it has built-in battery management system the nodemcu esp8266 chip can only support the input analog voltage of 3.3 volt but the lithium ion battery voltage goes up to 4.2 volt so we need to form a voltage divider network and lower down the input analog voltage i have already told you when the battery is fully charged the maximum voltage is 4.2 volt and the discharge cutoff voltage is 2.8 volt any voltage lesser than 3.3 volt will rotate by the esp8266 analog pin so we will first step down the upper voltage level so to do that i will be using a pair of 100k resistor it will convert the source voltage from 4.2 volt to 2.1 volt and similarly the cut-off voltage is also stepped down from 2.8 volt to 1.4 volt now both the upper and lower voltages supported by the nodemcu esp8266 analog pin here is the complete assembly of this the connection shown here is same as shown in the given circuit diagram now let's set up the arduino iot cloud to monitor the battery data to the arduino iot cloud you first need to set up the iot cloud dashboard create an account or simply sign in using your credential if you have created account earlier on a things tab let's create two global variables bad part percentage has an integer type and battery voltage is a floating point number and number now you need to add a device to do that click on the air device and click on the add third party device choose your nodemcu esp8266 board and select the nodemcu 1.0 esp8206 to value board now click on the continue and provide your device name for demonstration i am providing my esp8266 as a device name now finally click on the download the pdf and save it securely because it contains a device id and secret key you will need later on the programming now click on the add network and provide your wifi ssid password and the device secret key that you have downloaded then click on the shape to link your wifi network now we need to build a dashboard to visualize the data so let's move to the dashboard tab and create a new dashboard called battery monitoring and add the widgets to your dashboard first of all we are going to add gauss widget and we will use it for battery voltage so we will use the so we will use the global variable that we have defined earlier now we will add the battery percentage widget for battery percentage monitoring so we will use the variable bat underscore percentage now let's add two chart first start is for battery voltage and second chart is for battery percentage so in this way we will visualize our data so finally we have created our dashboard now program our nodemcu esp8266 to send the data to the arduino iot cloud now the best part of using this arduino iot cloud is you can program your microcontroller board from your web browser you don't need a separate software like arduino ide to compile and upload the program to your arduino board so simply install the arduino create agent and run it you can also get the instruction from the same web interface just follow the steps and you are good to go now let's go back to the things tab and then click on the sketch simply copy and paste the code provided in the description of this video and now simply compile and upload your code to your nodemcu board you can choose your board and its com port and simply hit that compile button and upload the code to your microcontroller so after successful upload upload of this program you can open the serial monitor at the baud rate of 9600 the node mcu esp8266 will try connecting to your wi-fi network and once it get connected successfully to your network it will display the analog voltage value along with the battery voltage and percentage similarly on the dashboard you can monitor the same values in different beautiful widgets so you can see the graph rising up when charging and going down when discharging as we had used a pair of 100k resistor to fix the voltage input problem of analog input pin but these resistor have some tolerance of five percent because of this the resistor value is in between 95 k to 105 k and hence it directly affects the both output voltage and the analog signal output overcome this issue we can compare the voltage difference between the serial monitor reading and the multimeter reading you need to simply read the output voltage at tp4056 output terminal simply subtract the multimeter voltage reading from the value obtained from the serial monitor and you can add this value in this calibration factor line of code finally the voltage error is fixed and we have successfully designed an iot based battery monitoring system using nodemcu i hope this project will help you a lot in monitoring your battery status for your iot projects if you think this project is helpful for you kindly share it with your friends and hit that subscribe button subscribe button [Music] you
Info
Channel: IoT Projects Ideas
Views: 53,656
Rating: undefined out of 5
Keywords: IoT Based Battery Status Monitoring System using NodeMCU ESP8266, IoT based battery Monitoring system using ESP8266 and Arduino IoT cloud, Battery Monitoring system using NodeMCU ESP8266, Battery Monitoring system using ESP8266 and Arduino IoT cloud, BMS Circuit design using ESP8266, IoT based BMS using NodeMCU ESP8266, Monitor Lithium Ion battery status using ESP8266 & IoT, Arduino IoT Cloud tutorial, Getting started with Arduino IoT cloud using NodeMCU ESP8266, arduino iot, esp8266
Id: w1VjDBhL82k
Channel Id: undefined
Length: 10min 6sec (606 seconds)
Published: Wed Sep 14 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.