CONSUMPTION VALUES OF a HAND DRYER
by Emanuele Castagnotto in Circuits > Arduino
84 Views, 0 Favorites, 0 Comments
CONSUMPTION VALUES OF a HAND DRYER
If we want to know how much a hand dryer consumes, in a full drying action, and if it is a sustainable way to dry our hands we can use the PZEM-004T sensor. I twill be connected to an ESP32 in order to measure the values of voltage and current that power our hand dryer.
Supplies
·ESP32 CARD (in our case we used a WEMOS D1 MINI) (ESP32 per Wemos D1 Mini per Arduino UNO R3 D1 R32 WIFI Wireless Bluetooth Development Board CH340 4M Memory One - AliExpress)
·PZEM-004T SENSOR (Pzem-004T 3.0 versione ttl Modbus-rtu misuratore di potenza kwh meter ac monofase 100a elettrico volt amp
·Cables (Cavo Jumper Wire Dupont per kit Arduino | Fruugo IT)
·Terminals (Set di 10 Morsetti Elettrici, Dimensione da 1,5mm (manomano.it))
Circuit Design
The transducer will be connected this way to the ESP32.
After that, we’re going to connect the other extremity of the transducer to the Hall effect sensor and all will be powered by the hand dryer’s power supply (220 V).
Arduino Code
The main task of the code is to permit an easy access to the values measured by the PZEM-004T, and to do that we connected the ESP32 to a GoogleSheets file. We relied on the following tutorail: ESP32 Datalogging to Google Sheets (Google Service Account) | Random Nerd Tutorials.
After declaring the libraries and adding the reconnect to wifi function, the next step is to insert the informations about our GoogleSheets file previously created.
Code
Thanks to the part above, we can set our timezone and see on the file when our values have been detected and printed.
Then the code will be set to make the PZEM-004T work properly and the values will be printed separately for each column of the sheet. The values will be printed only if the power is more than 1000 W.
Here it is the full code:
PZEM004T-sheet\PZEM004T-sheet.ino
Examples of Data
If it all went in the right way, you’ll obtain a sheet like this: starting from the left: Epochtime, Voltage, Current, Power, Date (converted from Epochtime).