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 want to add a second ct input and am struggling with the code.
Iron electric heater etc measure vac at the input of the device.
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.
Connect the energy data logger on a resistive load around 2000w i e.
The calculated power and energy by the arduino wemos is displayed on a 0 96 oled display module.
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.
Statistics reveal that the energy monitoring and managing systems can reduce energy costs from 8 up to 20 which is a big deal.
Measure the current consumption of the device.
Step one gather components.
The arduino converts the raw data from its analog input into human readable values then sends them to the serial port monitor.
The energy monitor can calculate real power apparent power power factor rms voltage rms current.
Ct sensors interfacing with an arduino.
So you can monitor the parameters as well as calibrate and modify different settings from your smartphone via ota.
This is awesome project for me and i have it working well with one current input sensor and one ac mains input.
Check these measures whit the values reported by the energy data logger thru serial monitor.
All the calculations are done in the digital domain on an arduino.
I am building a multi input energy and cycle monitor.
1x 9v ac ac power adapter 1x 100kohm resistor for step down voltage divider.
Assemble the components per the diagram above.
Upload the arduino sketch.
An energy management system can help monitor control and reduce the energy consumption significantly.
The inbuilt wifi chip of the wemos is connected to the home router and linked to the blynk app.
The sketch is the software that runs on the arduino.
The code is shown in the attached images here is the link to download the energy meter code.