Impedance-phase Angle Calculator And A Voltage Calculator Tool Using C++
A small code for representation of Phasors in Single Phase Alternating Current, a calculator for Impedance, Phase Angle and Voltage/Current.
Purpose of this Project:
This project will be a simulation-calculator, simplifying complicated Alternating Current calculations, and at the same time, presenting the formulae and reference diagrams for the same. This Project is based on an inspiration. The Inspiration being the βtroublesβ faced by people involved in the field in some sort or the other, by performing these complex calculations of Single Phase Alternating Current, majorly revolving around Impedance Calculation.
Objective of the Project:
βThe generation of an Impedance-Phase angle calculator and a Voltage Calculator tool using C++, with a default phasor representation(for a RLC series Circuit).β This project involves the creation of a code that generates a calculator whose objective is to ease out lengthy calculations, and our primary target is the people who would want to shorten their time utilized in such calculations. We want to bring in an impact, and this is a small baby step towards it.
Benefits of the Project:
For this projective to be innovative, our first aim was to get inspired by common problems and provide a solution that benefits people.
- As it is a code, it can be implemented on a large scale.
- This project will be helpful to students, teachers and all those who are involved in the field of Electrical Engineering.
- The calculations of minutes can be simplified to seconds.
- All in all, it saves time and effort, and by displaying of formulae used, it presents a better insight to the viewers.
Theory-Based Features
- Formulae Related to Single Phase AC Circuits.
- πΏπ³=ππ³ and πΏπͺ=π/ππͺ π= β(πΉ^π+πΏ^π ), where πΏ=|πΏπ³βπΏπͺ |
- ππ¨π¬β‘π= πΉ/π and πππ§β‘π=πΏ/πΉ , where Ρ can be calculated using inverse trigonometric functions(acos/atan)
- π½πΊ=π°π or π½πΊ=β(π½πΉ^πβγ(π½π³βπ½πͺ)γ^π ) where, π½πΉ=π°πΉ; π½π³=π°πΏπ³; π½πͺ=π°πΏπͺ
- A general Phasor Diagram for a series RLC Circuit. Phasor showing Inductive Voltage out of phase, leading the Resistive Voltage and current by a phase of Ο/2 Radians. Phasor showing Capacitive Voltage out of phase, lagging the Resistive Voltage and current by a phase of Ο/2 Radians. Phasor showing Resistive Voltage in phase with the Current.
Code-Based Features
- Implementation of this code would be done using a few pre-defined functions in the Library for C/C++.
- The units shall be considered to be SI Units only, and this shall be displayed on the output window as well, that the input shall be in Ohms, Volts and Amperes only.
- A Reactance Calculator(for calculation of both πΏπ³ and πΏπͺ, individually and the Net Reactance, πΏ=|πΏπ³βπΏπͺ |
- An Impedance Calculator using the aforementioned formula.
- A phase angle calculator(Calculates in Radians), which are eventually converted to Degrees, based on requirement of user, using a unit converter.
- A Voltage-Current Calculator using either of the two and Impedance to calculate the third value.
Learning Outcomes/Objectives Achieved
Through the course of this project, we have learnt/achieved the following:
- A wider reach by publicizing this project on a platform like GitHub.
- A better proficiency in C++ Programming language.
- Better practice of questions from Single Phase AC Circuits involving Impedance calculations, as we tried a number of them to check the correct implementation of our Calculator.
- Applying real life solutions to solve a common problem faced by a number of people.

Log in or sign up for Devpost to join the conversation.