sharandac / powermeter Goto Github PK
View Code? Open in Web Editor NEWA very flexible ESP32 power meter / energy meter with SCT-013-0x0, ZMPT101B, ACS712 sensors
License: GNU General Public License v3.0
A very flexible ESP32 power meter / energy meter with SCT-013-0x0, ZMPT101B, ACS712 sensors
License: GNU General Public License v3.0
I would like to rise another problem.
I'm preparing my implementation of your PowerMeter and I can see there is a problem with channel connected to: ADC1-CH7 (GPIO35).
I have HW with all 3 current lines connected to SCT013-030 installed on the same wire + 3 ZMPT101B fed with the same voltage. So all 3 voltage and 3 current reading should be the same.
And when you look at live view all is the same, but when you take a closer look at L2 and current, it is seen that this value is different and is not stable as others.
Take a look at this video:
https://youtu.be/L46QpZTydEg
on oscilloscope readings for L1 and L2 are the same. But when you look at spectrum and filtered value you can see difference. On spectrum you can see some pumping, L2 value jumps.
All channels are set the same, my measure.json file below.
@sharandac would you mind helping me with that?
measure.json
I checked different ESP32 boards, I played with sensors, channels and look like problem is attached to: ADC1-CH7 (GPIO35) directly.
edit:
After some research
-it is not good idea to change ADC channels for predefined L1-3 current and voltage, so follow default:
L1 I ADC1-CH5 GPIO33
L1 V ADC1-CH0 GPIO36 SVP
L2 I ADC1-CH6 GPIO34
L2 V ADC1-CH3 GPIO39 SVN
L3 I ADC1-CH7 GPIO35
L3 V ADC1-CH4 GPIO32
if you change this any calculations defined in virtual channels such a power will be broken;
-in default measure.json microcodes for power and reactive power are mixed, so please be aware of that.
BTW why "all power" as a sum of all powers is not a sum?
0,042+0,041+0,043 != 0,101
Hi @sharandac,
I have small question, is it possible, if yes where/how, to change default input ADC ports? In example to use GPIO15 for L1 current measurement (change from ADC1-CH5 to ADC2-CH3)?
If any of you would have compile error:
src/measure.cpp:480:9: error: 'arduinoFFT' was not declared in this scope
please be aware lib kosme/arduinoFFT is not backward compatible.
Easiest solution is to update platformio.ini file and change:
kosme/arduinoFFT@>=1.5.6
to
kosme/arduinoFFT@=1.5.6
>= replace with =
Hello.
Thank you for the work you've done. I have been looking for a similar project for a very long time. It is completely suitable for my tasks.
In my device, I use ESP 32 and ZMPT101B modules to measure mains voltage.
I have one unclear point.
On the "channel settings" page, I select the voltage measurement channel (for example, L1 voltage), the sensor type (ZMPT101B), set the
coefficients, save the settings (SAVE button at the bottom of the page), everything works correctly, but if you restart the EPS32 web
interface page, or restart the module itself, then all settings return to default values (SCT013-000). In this case, incorrect values are
output. You have to set the parameters again.
Setting the checkbox to allow real time editing, but don't forget to save your settings also has no effect.
I can't figure out how to make the set values persist.
Thank you.
Hi, thanks for the nice write up and detailed diagram! I have a bit offtopic question, how precise do you find the readings of these clamps without voltage measuring? Iโm contemplating about using this diy vs buying ready made product like shelly. Do you calibrate them somehow?
When trying to connect to my own personal wifi ap (and other test access points), the debug console only shows this error at startup:
scan for SSID "stsopenwrt" ... found
connect to stsopenwrt (****)
WiFi lost, restart ... failed
starting Wifi-AP with SSID "powermeter1"
So the esp is unable to log into my home network.
Best regards
Jonas
Hello, first, congratulations this looks impressive and well designed.
I've uploaded successfully, setting the revision of "WebSockets@=2.3.4" (otherwise error message during compilation).
I can connect successfully but checking the webpage I cannot get the graph and the layout of the page seems incorrect on Chrome on my phone, Chrome and Explorer on PC. Which browser did you recommend ?
thanks,
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.