Discussion Overview
The discussion revolves around the challenges of calculating voltage sag/swell and Total Harmonic Distortion (THD) using an ATMEL AVR microcontroller in a project aimed at monitoring single-phase power (240V). Participants explore methods for data sampling, safety considerations, and the necessary equations for analysis.
Discussion Character
- Technical explanation
- Exploratory
- Debate/contested
- Homework-related
Main Points Raised
- Some participants suggest that sampling frequency needs to be higher than once per second to accurately capture voltage transients and THD.
- There is a discussion about using a voltage divider and current sensing methods, including current sense resistors and current transformers.
- Concerns are raised about safety when sampling AC mains, with recommendations for using isolation techniques such as optocouplers.
- Participants mention the need for a basic approximation of voltage sag and THD, questioning the feasibility of calculations with an 8-bit microcontroller.
- Some propose using digital data transmission across the optocoupler boundary rather than analog signals for safety and efficiency.
- There are suggestions for utilizing signal processing techniques to compare sampled data to a pure sine wave for THD calculations.
- A participant recalls previous experience with DSP code on an 8051 microcontroller, noting the importance of sampling rates and potential shortcuts for calculations.
- Discussion includes the possibility of using metrology chips designed for power measurement to simplify the process.
Areas of Agreement / Disagreement
Participants express varying opinions on the feasibility of using an 8-bit microcontroller for the required calculations, and there is no consensus on the best approach to achieve accurate measurements of voltage sag and THD.
Contextual Notes
Participants highlight the lack of specific project specifications, which leads to uncertainty in determining the necessary sampling rates and calculation methods. Safety considerations regarding AC mains sampling are also emphasized.
Who May Find This Useful
This discussion may be useful for individuals working on power monitoring projects, particularly those involving microcontrollers, as well as those interested in understanding the complexities of measuring voltage transients and harmonic distortion.