Because your setup ct resistors and input voltage may be different there is a scaling factor in the sketch which you will need to change before you will get.
Arduino energy monitor calibration.
I am building it off the how to build an arduino energy monitor measuring mains voltage and current.
1x 9v ac ac power adapter 1x 100kohm resistor for step down voltage divider.
We built our source code to handle up to 5 inputs measuring and 5 out measuring you just need to add more cts and pts for each additional input outputs as we will discuss that in hardware section.
Upload the arduino sketch.
I want to add a second ct input and am struggling with the code.
Step one gather components.
All the calculations are done in the digital domain on an arduino.
Iron electric heater etc measure vac at the input of the device.
The arduino converts the raw data from its analog input into human readable values then sends them to the serial port monitor.
So you can monitor the parameters as well as calibrate and modify different settings from your smartphone via ota.
You can measure all electrical parameters for utility input and do the same for renewable source like solar or wind turbine at the same time.
For a more precise calibration continue with this steps.
Check these measures whit the values reported by the energy data logger thru serial monitor.
Statistics reveal that the energy monitoring and managing systems can reduce energy costs from 8 up to 20 which is a big deal.
An energy management system can help monitor control and reduce the energy consumption significantly.
The code is shown in the attached images here is the link to download the energy meter code.
Assemble the components per the diagram above.
The calculated power and energy by the arduino wemos is displayed on a 0 96 oled display module.
Now you can upload your sketch onto your arduino if you haven t uploaded a sketch before then follow this guide on getting started.
Connect the energy data logger on a resistive load around 2000w i e.
The energy monitor can calculate real power apparent power power factor rms voltage rms current.
Above all being able to monitor it from a phone makes it much more convenient.
The sketch is the software that runs on the arduino.
This is awesome project for me and i have it working well with one current input sensor and one ac mains input.
Ct sensors interfacing with an arduino.