![]() I set the calibration for the voltage and current sensor high so the changes will be easy to be seen. I used this lines of code to add the current readings from the pre-kwh. wherein the data got from the firebase will be used as a pre-kwh. once the esp32 is turned on again, this code is used to get the data from the firebase. TotalEnergyDB = (firebaseData.intData()) If the electricity cuts off, ESP32 will also be dead and will stop working. The value of the energy will be send to the database, in our case our database is the firebase realtime database. but to be honest i dont know how millis works. I saw formula online, it uses millis () function to get the time. Then to get the value of the energy i will be needing the time because Energy = Power x time. To get the power, i will multiply the current and voltage values. ![]() I am also using the Emon library from to read the value thrown by the current and voltage sensor. We also have voltage sensor (ZMPT101B) and current sensor (SCT013 100V:50mA) connected to our main board. ![]() ![]() In our project, the esp32 is the main board we are using. So me and my groupmates are been working on with our thesis project about energy meter.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |