AC voltage Part 2: root-mean-square (RMS) value explained in Python

Subscribers:
37,700
Published on ● Video Link: https://www.youtube.com/watch?v=U2gvvNFcQ04



Duration: 20:35
9,820 views
168


In the second video of the AC power series the basic mathematics behind calculating the root-mean-squared (RMS) value is being explained step-by-step. Furthermore, the process is also shown in form of a Python 3 code run inside a Jupyter notebook. First we describe the general formula for a sinusoidal function, and this is being implemented for 230V AC voltage, having a value of the peak amplitude of about 325V.

For simplicity the code does not contain Numpy arrays, vectorized operations, Pandas, or even Python list comprehensions. This is done on purpose so that people who are more familiar with other programming languages like Java, Fortran90, C or Matlab can also follow the discussion. When it comes to the description of the sine wave, the phase factor is also being neglected to simplify the problem.

After we describe the AC sinusoidal voltage in our Python code, next we implement the algorithm of computing the root-mean-squared RMS value for a given voltage source. As input data points we use the sinusoidal 230V AC, and the evaluation of the RMS value is presented in detail.

Throughout the Jupyter notebook the divisions are assumed to be run as floating point divisions, which is the default for Python version 3. Thus, the same code would need to be changed accordingly when it is run in Python version 2, since the later does integer division.

Due to its nature, this video might be more interesting for students studying electronic engineering, and for people who were wondering about how an RMS value is being calculated.



In the following part we discuss how is the RMS calculation being implemented in so called True RMS DMM digital multimeters, and how does the chaper so called averaging multimeter compare to the True RMS multimeter.




Other Videos By Donkey Learning IT


2021-11-18Raptoreum profit: Intel Xeon E5 vs AMD Ryzen 9 3900: too late for the party
2019-01-18SMPS repair series #11: Basics of Feedback Loop and Control Theory in power supplies
2019-01-13SMPS repair series #10: Temperature compensated Zener diode in linear regulators
2019-01-06460W Switch Mode PSU teardown, detailed overview and repair: Cisco 3550 PWR PoE
2018-12-31Article 13: Should I turn on YouTube monetization? Your opinion matters
2018-12-27IKEA Ledare 1800lm 22W LED lamp: Teardown and overview
2018-12-23AC voltage Part 2: root-mean-square (RMS) value explained in Python
2018-12-16AC vs DC voltage Part 1: RMS Equivalent heating value explained
2018-12-05SMPS repair series #9: Zener diode and power transistor without feedback loop
2018-11-25Electron flow vs. Conventional current: Thompson's cathode ray experiment
2018-11-15Switch mode power supply repair #8: Pulse Width Modulation explained (PWM)
2018-01-16Switch mode power supply repair #7: Basics of Pulse Width Modulation (PWM)
2017-07-24Howto repair switch mode power supplies #6: Basics of Linear Regulators and voltage references
2017-06-25Howto repair switch mode power supplies #5: Magnetic core materials, ferrite vs steel
2017-06-11Howto repair switch mode power supplies #4: Inductor in electronic circuits P2
2017-06-04Howto repair switch mode power supplies #3: Inductor in electronic circuits P1
2017-05-30Repair Cisco ASA5505 firewall not powering on: video reply to subscriber question
2017-05-04Howto repair switch mode power supplies #2: Stand-by circuit and its functionality
2017-04-02Howto repair switch mode power supplies #1: basics, and block diagram of a PSU
2017-02-26RAID arrays: RAID0 striping, mean time between failure, tracks, sectors, onsite and offsite backup
2017-02-05KVM hypervisor install on virtualization server: BIOS, VT-x, VT-d, Debian bootable USB



Tags:
AC vs DC voltage
mains voltage
sinusoidal
root mean squared value
RMS value
RMS calculation
RMS formula
Python
Jupyter Notebook
example code
electronic engineering
electronics
repair
circuit design