Capacitor Charging Simulation in RC Circuit Using MATLAB PDF

Document Details

Uploaded by Deleted User

Minia University

Eyad Hatem Hamdy

Tags

MATLAB capacitor charging RC circuit simulation

Summary

This document details a MATLAB simulation of capacitor charging in an RC circuit. The simulation models the exponential growth of voltage across the capacitor over time, influenced by resistance and capacitance values. The document includes the MATLAB code and a plot of the charging curve.

Full Transcript

Capacitor charging simulation in an RC circuit using MATLAB Subject: Signals Under supervision of Dr. Mohamed Masoad By: Eyad Hatem Hamdy Objective To simulate and analyze the charging process of...

Capacitor charging simulation in an RC circuit using MATLAB Subject: Signals Under supervision of Dr. Mohamed Masoad By: Eyad Hatem Hamdy Objective To simulate and analyze the charging process of a capacitor in an RC circuit with an initial voltage using MATLAB. Introduction 𝑡 𝑉(𝑡) = 𝑉0 + (𝑉𝑓 − 𝑉0 )(1 − 𝑒 − ⁄𝑅𝐶 ) Where: 𝑉0 : 𝐼𝑛𝑖𝑡𝑖𝑎𝑙 𝑣𝑜𝑙𝑡𝑎𝑔𝑒 𝑎𝑐𝑟𝑜𝑠𝑠 𝑡ℎ𝑒 𝑐𝑎𝑝𝑎𝑐𝑖𝑡𝑜𝑟. 𝑉𝑓 : 𝐹𝑖𝑛𝑎𝑙 𝑣𝑜𝑙𝑡𝑎𝑔𝑒. 𝑅: 𝑅𝑒𝑠𝑖𝑠𝑡𝑎𝑛𝑐𝑒 𝑖𝑛 𝑜ℎ𝑚𝑠. 𝐶: 𝐶𝑎𝑝𝑎𝑐𝑖𝑡𝑎𝑛𝑐𝑒 𝑖𝑛 𝑓𝑎𝑟𝑎𝑑𝑠. 𝑡: 𝑇𝑖𝑚𝑒 𝑖𝑛 𝑠𝑒𝑐𝑜𝑛𝑑𝑠. Parameters 𝐼𝑛𝑖𝑡𝑖𝑎𝑙 𝑣𝑜𝑙𝑡𝑎𝑔𝑒 (𝑉0 ) = 2 𝑣 𝐹𝑖𝑛𝑎𝑙 𝑣𝑜𝑙𝑡𝑎𝑔𝑒 (𝑉𝑓 ) = 10 𝑣 𝑅𝑒𝑠𝑖𝑠𝑡𝑎𝑛𝑐𝑒 (𝑅) = 1000 𝑜ℎ𝑚 𝐶𝑎𝑝𝑎𝑐𝑖𝑡𝑎𝑛𝑐𝑒 (𝐶) = 0.001 𝐹 𝑇𝑖𝑚𝑒 𝑅𝑎𝑛𝑔𝑒: 0 𝑡𝑜 5 𝑠𝑒𝑐𝑜𝑛𝑑𝑠, 𝑤𝑖𝑡ℎ 𝑎 𝑠𝑡𝑒𝑝 𝑠𝑖𝑧𝑒 𝑜𝑓 0.01 𝑠𝑒𝑐𝑜𝑛𝑑𝑠. MATLAB Code Plot Conclusion The MATLAB simulation successfully models the capacitor charging process in an RC circuit. The voltage curve shows the expected exponential growth toward the final voltage 𝑉𝑓. The behavior of the charging capacitor is strongly influenced by the values of resistance and capacitance.

Use Quizgecko on...
Browser
Browser