CONSUMPTION VALUES OF a HAND DRYER

by Emanuele Castagnotto in Circuits > Arduino

80 Views, 0 Favorites, 0 Comments

CONSUMPTION VALUES OF a HAND DRYER

woww.jpg

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

soffione 2.jpg
Immagine1.png

Circuit Design

circuit.jpg
budino.jpg

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

listato 1.jpg
listato 2.png
listato 3.png
listato 4.png

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

tabella.png

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).