In order for PZEM - 004T module to bring some benefit and, for example, to allow viewing readings via the Internet, logging data, it is necessary to add a number of other devices to it, be it an arduino, an esp, a display of your choice, a separate power supply for all this affairs. As a result, the whole device comes out quite massive, difficult to assemble, and not very reliable.
I want to offer my assembly of a power meter device based on PZEM - 004T, maybe it will be useful to someone.
Everything works as follows:1.The BLE module on the CC2541 chip is connected (by soldering) to the main PZEM - 004T module.
It receives power from the stabilizer of the PZEM module, its power is quite enough. Flashing is NOT required.
2.Then all this is connected and installed where you need it, in the same electrical panel. It does not take up much space, you can even assemble it in the original case, in which these PZEM are sold.
3.You will also need an android smartphone with BLE support. It may be an outdated smartphone, I'm sure many have one. This smartphone will act as an intermediary between our module and Internet access. It communicates with our device, receives readings from it and allows you to view them from any other smartphone, through the IOT MANAGER app.
Or it simply logs readings without any network.
It is also possible to receive email about various events (exceeding power, power outages, etc.).
- First of all enter value, but then choose an option.
- Enter value <number or >number to control voltage, current, active power, active energy, charging, baterry level.
(For example: Enter value <220 and if voltage is being 219, you take a message to email.)
- Enter value + or - and choose Option "charging" to control charging.
- Enter value * and choose Option "reset" to reset active energy.
- Enter value # and number to. Then choose Option "ticktime" for correcting ticktime.
The Electrometer app must be running on that smartphone.
You start Electrometer and it connects to the module itself.
The setup is simple, you can choose the mqtt server, the time for issuing readings, the polling frequency, up to a second, etc.
Some explanation to tab Settings:- ServerURI - your mosquitto server with port.
- Prefix - please, enter your individual prefix.
- MQTT Name - name, if required.
- MQTT Pass - password, if required.
- Datatime - the time of issuing data to the Internet in seconds. After the expiration, the issuance stops.
- Ticktime - measurement module polling frequency (milliseconds).
- Server - your mail server from which notifications will be sent.
- Name - name of this server.
- Password - password to this server.
- Mail - the address to which notifications will be sent (can be the same as the server).
- Event - responsible service.
- Port - port of SMTP.
After making changes, you must press the (Save and restart app) button and restart the application to save the changes.
Thus, we got three parts:- PZEM - 004T module
- BLE module on CC2541 chip
- Android smartphone on whitch Electrometer app is running.
Estimated cost of all components - $10, excluding android smartphone.
Comments
Please log in or sign up to comment.