Electric Consumption Meter
This project implements an electrical consumption meter using an Arduino Uno. The proportioned code performs the voltage, current and power measurement in an electrical system.
Requirements
- Arduino one
- ZMPBT-101 voltage sensor
- SCT-013 current sensor
- LM358 Voltage Summer Circuit
Configuration
- Connect the ZMPBT-101 voltage sensor to the A1 analog pin of the Arduino one.
- Connect the SCT-013 current sensor to the LM358 voltage summer circuit.
- Connect the output of the LM358 voltage summer to the analog pin A0 of the Arduino one.
Use
- Load the code in the Arduino one using Arduino IDE.
- Connect the Arduino one to an adequate power supply.
- Look at the results of the power measurement through serial communication at a speed of 115200 baud.
Code details
- The code provided uses a discrete sum approximation to calculate the average power, effective tension, effective current and power factor.
- Use a LM358 voltage summer circuit to raise the output voltage of the SCT-013 current sensor and do it compatible with the Arduino one ADC.
- The code currently does not include functionality to determine whether the power factor is in advance or in late.
- The determination of the electricity grid frequency has not yet been implemented in the code.
- The code can be optimized to improve performance and efficiency.
Connection scheme
A connection scheme file (PDF format) will be provided in the "scheme" folder of the repository. Be sure to check the scheme to correctly connect the sensors and the Voltage Summer to the Arduino one.
Contributions
Contributions to this project are welcome. If you find any error, you have suggestions for improvement or want to add new functionalities, please create a Pull request or open an ISSUE in the repository.
License
This project is under a Creative Commons CC BY 4.0 license. Check the LICENSE file for more details.
The Creative Commons Attribution 4.0 International license (CC By 4.0) allows others to distribute, remix, modify and use this project, even for commercial purposes, as long as the corresponding credit is attributed to them.
If you want to use this project or parts of it in your own project, be sure to review and meet the terms and conditions of the CC BY 4.0 license.
We are working to develop the following additional characteristics:
- Determination of the power factor in advance or delay.
- Determination of the frequency of the electricity grid.
- Code optimization to improve performance.
- Update of the connection scheme.
We appreciate any additional contribution to improve this project. If you have ideas or suggestions on how to implement these characteristics or any other improvement, do not hesitate to share them.