Its generally understood that the PZEM-004T RX/TX operates at 5V, hence the reason for the level shifter at 4:00
@545sytes
Жыл бұрын
Alright, can we use level shifters if we need to connect more than four modules with one UART?
@HaziqAziziJamalullail
Жыл бұрын
Hello, I try to upload the PZEM Change address code from the example and didn't change anything just like you did in the video. But I can't upload it because there is an error at line 30 "#define PZEM_SERIAL Serial2". It says "'Serial2' was not declared in this scope; did you mean 'Serial1'? ". Why does this happen? what should I do? I'm using the same version of arduino IDE as you "arduino 1.8.19" but I'm using nodeMCU esp8266.
@545sytes
Жыл бұрын
ESP8266 don't have Serial2, you need to use software serial library to add serial port
@HaziqAziziJamalullail
Жыл бұрын
@@545sytes so I need to add code like this? #include SoftwareSerial Serial2(3, 1);
@HaziqAziziJamalullail
Жыл бұрын
I did this code. now can run but it display like this: ``` Previous address: 0x0 Setting address to: 0x55 Error setting address. ``` why does is error setting address?
@HaziqAziziJamalullail
Жыл бұрын
I also give both my pzem ac current
@545sytes
Жыл бұрын
First check if at Address 0x0 you can read Pzem data, if you can read data , this means every thing is fine and working. Address sketch at time give this error, I have experienced it, try restarting / uploading sketch again , it will change address.
@MKRCLabs
2 жыл бұрын
good info
@BlueSky-cy5nw
11 ай бұрын
I have a question, If I have two CTs connected in parallel and I loop them through two different live circuits that are on the same phase, will the current of both circuits be added together by the PZEM?
@545sytes
11 ай бұрын
Any current that passes through a phase that is looped through Pzem should get recorded. I am using Pzem with my main distribution box, so all devices consumption added up
@dctechnologies7561
Жыл бұрын
Hello I have a question about those values of power and energy that are returned by energy and power methods from pzem 004t library, As we know power is the product of voltage and current fornstance in that example you have shown,the voltage was 226v and current was 0.09 but the power was 12.10w while it could be about 20.3w how about this?? Another question is that what does that value of energy in kwh shows? Is it the energy being consumed in which time interval?? Thanks!
@545sytes
Жыл бұрын
Yes you are right it should be 20.3, didn't notice while recording the video. Will consult Pzem Manual and check my installation and update you. Regarding KWH, its Kilo Watt Hour, its energy consumption expressed in hour/Time. With my restricted knowledge on topic , its difficult for me explain this topic. However I understand if I have used a device say for two hours, total energy consumed will be expressed in kwh and likewise will be billed by the energy company.
@jeriellopez4927
Жыл бұрын
Power factor
@silvine6151
Жыл бұрын
Hello, im trying to set up my pzem but i keep having trouble understanding on why you connect the it directly to the cable you are trying to measure on the diagram meanwhile on the live photo you connect it somewhere else.
@545sytes
Жыл бұрын
Can you identify in Time from video, like 4:14 is picture and 5:14 is live, so I can trace the difference, thanks
@MKRCLabs
2 жыл бұрын
do you have any video demo how to control sensors 3 phase BLDC motor with arduino
@545sytes
2 жыл бұрын
I dont have personal experience, but this site seems informative: howtomechatronics.com/tutorials/arduino/arduino-brushless-motor-control-tutorial-esc-bldc/
@ashwind9742
2 жыл бұрын
sir i have used pzem in my etrx project which went well , i have only used one pzem004t interface with esp8266 , but i want to expand my project but i have no idea yet,would you share me your source code and why we should use two pzem004t instead of one.
@545sytes
2 жыл бұрын
I have used code from standard Pzem library examples, if you want to monitor power consumption of more than one unit then multiple Pzems are needed, I am developing a project with 12 Pzems :(
@saeedhassan7927
2 жыл бұрын
@@545sytes can u provide the code for multiple pzems
@545sytes
2 жыл бұрын
@@saeedhassan7927 Step 1: . Change PZems Addresses in sequence like 0x10, 0x11, 0x12 etc . Use "Change Address" Code from Examples . Each Pzem Need to have Separate Address Step 2: Code: #include #define PZEM_SERIAL Serial2 #define NUM_PZEMS 4 PZEM004Tv30 pzems[NUM_PZEMS]; float pzemVolt[NUM_PZEMS -1]; float pzemWatts[NUM_PZEMS -1]; void setup() { //Declaring Pzem Serial Port & Address for(int i = 0; i == NUM_PZEMS -1; i++) { //Starting Address 0x10 , Assumption Address of All Pzem are in Sequence like 0x10, 0x11 0x12 etc pzems[i] = PZEM004Tv30(PZEM_SERIAL, 16, 17, 0x10 + i); } } void loop() { //Read Individual pzemVolt[0] = pzems[0].voltage(); if (isnan(pzemVolt[0])){ pzemVolt[0] = 0; } pzemWatts[0] = pzems[0].power(); if (isnan(pzemWatts[0])){ pzemWatts[0] = 0; } //Read Multiple for(int i = 1; i == NUM_PZEMS - 1; i++) { pzemVolt[i] = pzems[i].voltage(); if (isnan(pzemVolt[i])) {pzemVolt[i] = 0; } pzemWatts[i] = pzems[i].power(); if (isnan(pzemWatts[i])) {pzemWatts[i] = 0; } } delay(3000); }
@MKRCLabs
2 жыл бұрын
thank he is using ESC I want to use stm32 mcu
@545sytes
2 жыл бұрын
STM32 is powerful , I am using it for OnStep Go-to solution, it can be programmed through Arduino IDE. Though I am using ready software , not programmed by myself
Пікірлер: 33