Comments (2)
Hey,
The PZEM chip already returns the converted voltage directly in the response message. If you change the resistance value, you will have to manually scale the voltage by the appropriate coefficient. You could do something like this:
const float VOLTAGE_SCALE_FACTOR = <the scale factor>;
float voltage = pzem.voltage() * VOLTAGE_SCALE_FACTOR;
From what you say it sounds like the conversion factor should be 2400/1333 = 1.8 but you will have to double check that.
from pzem-004t-v30.
Hey, The PZEM chip already returns the converted voltage directly in the response message. If you change the resistance value, you will have to manually scale the voltage by the appropriate coefficient. You could do something like this:
const float VOLTAGE_SCALE_FACTOR = <the scale factor>; float voltage = pzem.voltage() * VOLTAGE_SCALE_FACTOR;From what you say it sounds like the conversion factor should be 2400/1333 = 1.8 but you will have to double check that.
Thank you, I will definitely check
from pzem-004t-v30.
Related Issues (20)
- Mycropyton HOT 1
- HOW TO RESET PZEM004TV3 ESP32? HOT 1
- when I try to upload, I get an error like this: no matching function for call to 'PZEM004Tv30::PZEM004Tv30(int, int) HOT 7
- Seeed Wio LTE
- instantaneous value HOT 1
- Module PZEM-004T-100A-D-P HOT 1
- Issue with Teensy 4.1, using any of the hardware serials (Serial1...Serial8)
- Pzem measuring wrong voltage values HOT 2
- Can you make this code non-blocking? HOT 10
- How to modify this code to only output certain values HOT 6
- is there possible to change the CT (Current Transformer)? HOT 1
- Check if module is connected HOT 2
- Is it possible to send one command to measure to all devices connected instead of sending multiple separated commands? HOT 2
- Issue with 16 current coils muxed together with a single PZEM HOT 1
- Inconsisten Byte order in CRC check sum HOT 6
- Lamp cannot dim by TRIAC when connect with PZEM 004T HOT 10
- More than 4 pzem-004t HOT 4
- Set Address not working HOT 2
- Sometimes the data is not fetched from few of the pzems HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pzem-004t-v30.