Exercise 4 Modeling transient currents and voltages

Similar documents
MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Physics 8.02 Spring 2003 Experiment 17: RLC Circuit (modified 4/15/2003) OBJECTIVES

Version 001 CIRCUITS holland (1290) 1

Capacitors. The charge Q on a capacitor s plate is proportional to the potential difference V across the Q = C V (1)

Inductance. Slide 2 / 26. Slide 1 / 26. Slide 4 / 26. Slide 3 / 26. Slide 6 / 26. Slide 5 / 26. Mutual Inductance. Mutual Inductance.

INDUCTANCE Self Inductance

RC Circuits. Equipment: Capstone with 850 interface, RLC circuit board, 2 voltage sensors (no alligator clips), 3 leads V C = 1

Lab 4 RC Circuits. Name. Partner s Name. I. Introduction/Theory

Inductance, RL and RLC Circuits

Exercise 1: RC Time Constants

Experiment Guide for RC Circuits

EXPERIMENT 07 TO STUDY DC RC CIRCUIT AND TRANSIENT PHENOMENA

Simple circuits - 3 hr

Lab 5 RC Circuits. What You Need To Know: Physics 212 Lab

Handout 10: Inductance. Self-Inductance and inductors

Class #12: Experiment The Exponential Function in Circuits, Pt 1

Lab 5 RC Circuits. What You Need To Know: Physics 212 Lab

EXPERIMENT 5A RC Circuits

Practical 1 RC Circuits

Chapter 3: Capacitors, Inductors, and Complex Impedance

First Order RC and RL Transient Circuits

What happens when things change. Transient current and voltage relationships in a simple resistive circuit.

Chapter 30 Inductance and Electromagnetic Oscillations

Assessment Schedule 2015 Physics: Demonstrate understanding of electrical systems (91526)

Electricity and Light Pre Lab Questions

Inductance, RL Circuits, LC Circuits, RLC Circuits

RC & RL TRANSIENT RESPONSE

Physics 6B Summer 2007 Final

Lecture 39. PHYC 161 Fall 2016

Introduction to AC Circuits (Capacitors and Inductors)

Slide 1 / 26. Inductance by Bryan Pflueger

LAB 3: Capacitors & RC Circuits

Physics 212. Lecture 11. RC Circuits. Change in schedule Exam 2 will be on Thursday, July 12 from 8 9:30 AM. Physics 212 Lecture 11, Slide 1

Problem info Geometry model Labelled Objects Results Nonlinear dependencies

PHYSICS 171 UNIVERSITY PHYSICS LAB II. Experiment 6. Transient Response of An RC Circuit

Chapter 30. Inductance. PowerPoint Lectures for University Physics, 14th Edition Hugh D. Young and Roger A. Freedman Lectures by Jason Harlow

The next two questions pertain to the situation described below. Consider a parallel plate capacitor with separation d:

PHYSICS 122 Lab EXPERIMENT NO. 6 AC CIRCUITS

Chapter 26 Direct-Current Circuits

Circuit Analysis-II. Circuit Analysis-II Lecture # 5 Monday 23 rd April, 18

Exercise 1: Capacitors

The RC Circuit INTRODUCTION. Part 1: Capacitor Discharging Through a Resistor. Part 2: The Series RC Circuit and the Oscilloscope

Laboratory 3 Measuring Capacitor Discharge with the MicroBLIP

C R. Consider from point of view of energy! Consider the RC and LC series circuits shown:

OAKTON COMMUNITY COLLEGE COURSE SYLLABUS. I. Course Course Course Prefix Number Name Credit: Lecture Lab. PHY 132 College Physics II 4 3 2

RC & RL Transient Response

2005 AP PHYSICS C: ELECTRICITY AND MAGNETISM FREE-RESPONSE QUESTIONS

Name: Lab Partner: Section:

Chapter 2: Capacitor And Dielectrics

Measuring the time constant for an RC-Circuit

Inductance, Inductors, RL Circuits & RC Circuits, LC, and RLC Circuits

CHEM*3440. Current Convention. Charge. Potential Energy. Chemical Instrumentation. Rudimentary Electronics. Topic 3

Real Analog - Circuits 1 Chapter 6: Lab Projects

Mansfield Independent School District AP Physics C: Electricity and Magnetism Year at a Glance

AP Physics C. Inductance. Free Response Problems

Chapter 32. Inductance

Lab 08 Capacitors 2. Figure 2 Series RC circuit with SPDT switch to charge and discharge capacitor.

Old Dominion University Physics 112N/227N/232N Lab Manual, 13 th Edition

LAB 5: Induction: A Linear Generator

Experiment 4. RC Circuits. Observe and qualitatively describe the charging and discharging (decay) of the voltage on a capacitor.

RC Studies Relaxation Oscillator

Switch. R 5 V Capacitor. ower upply. Voltmete. Goals. Introduction

Name Class Date. RC Circuit Lab

Chapter 30 Inductance

Self-inductance A time-varying current in a circuit produces an induced emf opposing the emf that initially set up the time-varying current.

PHYSICS. Chapter 30 Lecture FOR SCIENTISTS AND ENGINEERS A STRATEGIC APPROACH 4/E RANDALL D. KNIGHT

CAPACITANCE. Capacitor. Because of the effect of capacitance, an electrical circuit can store energy, even after being de-energized.

Chapter 21. Ac Circuits

ECE 241L Fundamentals of Electrical Engineering. Experiment 5 Transient Response

Coupled Electrical Oscillators Physics Advanced Physics Lab - Summer 2018 Don Heiman, Northeastern University, 5/24/2018

Electromagnetic Induction (Chapters 31-32)

Capacitors. Example 1

Physics 2112 Unit 18

Experiment 8: Capacitance and the Oscilloscope

BME/ISE 3511 Bioelectronics - Test Six Course Notes Fall 2016

Hiro Shimoyama 1 Charge of an Electron. Name ID Signature. Partners. Date Section

Induction_P1. 1. [1 mark]

On the axes of Fig. 4.1, carefully sketch a graph to show how the potential difference V across the capacitor varies with time t. Label this graph L.

Laboratory 7: Charging and Discharging a Capacitor Prelab

MODULE I. Transient Response:

Lecture 27: FRI 20 MAR

Chapter 2: Capacitors And Dielectrics

B THE CAPACITOR. Theory

Look over. examples 1, 2, 3, 5, 6. Look over. Chapter 25 section 1-8. Chapter 19 section 5 Example 10, 11

To receive full credit, you must show all your work (including steps taken, calculations, and formulas used).

Some Important Electrical Units

Physics 2112 Unit 11

Active Figure 32.3 (SLIDESHOW MODE ONLY)

July 11, Capacitor CBL 23. Name Date: Partners: CAPACITORS. TI-83 calculator with unit-tounit. Resistor (about 100 kω) Wavetek multimeter

PHY 132 Summer 2000 LAB 5: RC time constant 1

Alternating Current Circuits. Home Work Solutions

Chapter 30. Inductance

Chapter 6 Objectives

12 Chapter Driven RLC Circuits

Lab #6 Ohm s Law. Please type your lab report for Lab #6 and subsequent labs.

Physics 2020 Exam 2 Constants and Formulae

ELECTROMAGNETIC INDUCTION AND FARADAY S LAW

EE292: Fundamentals of ECE

first name (print) last name (print) brock id (ab17cd) (lab date)

Magnetic Induction Faraday, Lenz, Mutual & Self Inductance Maxwell s Eqns, E-M waves. Reading Journals for Tuesday from table(s)

Chapter 28. Direct Current Circuits

Transcription:

Exercise 4 Modeling transient currents and voltages Basic A circuit elements In a D circuit, the electro-motive forces push the electrons along the circuit and resistors remove that energy by conversion to heat. In A circuits, currents vary in time, so we have to consider variations in the energy stored in electric and magnetic fields of capacitors and inductors, respectively. apacitance: the capacitance between two opposite charged surfaces is defined by: Q V Where: Q is the magnitude of the charge distributed on either surface, and V is the potential difference between the surfaces. Differentiating Eq. (1) and using I = dq/dt, we obtain: (1) dv dt I () Inductance: The usual model for an inductor is a coil (solenoid). By Faraday s Law of self-inductance, a changing current in a coil induces a back electro-motive force (emf) that opposes the change in current: Where V is the back emf across the inductor, di/dt is the derivative of the current through the inductor and L is the inductance. The R ircuit Figure 1a) shows a circuit with no signal source, but we assume the capacitor to be initially charged. The voltage across the charged capacitor is: Q V di V L dt This voltage produces an initial loop current (3) (4) V I (5) R 1

Figure 1 a) The R circuit; b) Exponential decay of voltage as a function of time (R circuit). dv V By using Kirchhoff s loop rule and the derivative of Ohm s law:, the dt R voltage across the resistor (and capacitor) is given by: V ( t) V e t / R V e t / (6) The constant τ = R is called the time constant of this circuit. It defines the time needed for V(t) to fall to 1/e of its initial value. The voltage decay as a function of time is presented in Figure 1b). The Exercise You will use a circuit board with several resistors, capacitors and inductors. You may use Box A, below: BOX A

Alternatively, your group may work on Box B: BOX B A Data Acquisition System (DAQ) will provide the A voltages needed in your experiment. At the same time, the DAQ will collect data from the circuit (Voltage, Time) and send them to the computer. Some of the DAQ ports are already connected. Do not change them. You will use the Analog Output (a o ) port as the A voltage source for your circuit. onnect the BN wire at the top of the T-connector on a o. You will also collect the data from the circuit through the Analog Input (a i ) port. Data in real time will be displayed through a Lab View application. a o a i Figure : ircuit diagram 3

Build a R circuit according to Figure, using = 1.μF and an R of your choice. If you use Box A, connect the R var (Potentiometer 5-5kΩ). If you have Box B, choose any of the two resistors provided. Open the Desktop folder: nd Yr Lab Files and select harge and Discharge of a apacitor (Lab View Application). The Analog Output works as a function generator. Use the Square Wave form and vary the frequency until you observe -3 cycles of charging/discharging of the capacitor. In the background of the charge/discharge, you may notice the square wave (light grey). The whole dataset will have about 1 data points, which is a little too much for your Python program. Trimming the dataset is possible with Export Data, by confirming the length editing. ursors are now available. Place them at the two ends of one decay (or rise) and click on Export Data again. Save the text file on your memory stick. The dataset has Time(s) in the first column and Amplitude (Volt) in the second. Scroll down and examine the file. You will notice that some of the amplitude values are negative and also that the file has a header. Remove the header. Data was acquired as with an oscilloscope: zero amplitude is at the middle of the graph. You have to adjust (lift) all the amplitude values so that all are positive: find the largest negative amplitude and add its absolute value to all the data. The fitting program You will write the code for a nonlinear least squares fit, and will estimate the uncertainties and the correlations. alculation of fit statistics from the output of leastsq provides: - Goodness of fit parameters - onfidence intervals in fit parameters - orrelation (covariance) of variables Here is the plan of your program: - Import all the needed packages. - Define the fitting function, named peval(x,p)or else, where x is the independent variable (time) and p is the generic name of the parameters. You have to define what each component of p represents. The fitting function is the exponential from Eq.6. - Define residuals. - Load the file into an array. You have to specify the location of independent variable (x) and that of the dependent variable (y) in your array. You also have to define the uncertainty in y. - Estimate an initial guess of the parameters. - all leastsq to do the work. List the input arguments: residuals, initial guess of parameters, extra arguments (args). full_output has to be non-zero in order to return all optional outputs. Request the following outputs of leastsq: final values of parameters (p_final), estimate of covariance of x,y (cov_x), optional outputs (info), a string message giving information about the cause of failure of calculation (mesg), a flag indicating if solution was found or not (success). - Write a conditional loop linking success==1 to printing the result of the fit. - Define and the number of degrees of freedom. 4

- Output the statistical results. In order to output the errors in parameters, you have to use the cov_x output of leastsq. Look at the definitions from SciPy documentation: http://docs.scipy.org/doc/scipy/reference/generated/scipy.optimize.leastsq.html?highlight =leastsq#scipy.optimize.leastsq cov_x : ndarray Uses the optional outputs to construct an estimate of the jacobian around the solution. This matrix must be multiplied by the residual variance to get the covariance of the parameter estimates. The residual variance is given by: dof heck the Notes on Error Analysis for basic definitions: http://www.physics.utoronto.ca/~phy5h/web-pages/notes_error.pdf - Plot the graph of data with error bars and the fitting function. Python Programming: Write a fitting program with statistical output to fit the R transient voltage. Output the time constant τ and calculate R (R var ). Estimate uncertainties. ompare the calculated value with a direct measurement of R or R var using a multimeter. Note: disconnect R (R var ) from the circuit before connecting the instrument! Write the code, debug it. Print the graph and statistical output. Analyze the output according to the goodness of fit criteria: - Good fit: 1. - If: 1, there are too large deviations from the assumed distribution, which indicate an underestimation of uncertainties. - If: 1, too small deviations from the assumed distribution indicate an overestimation of uncertainties. Analyze the goodness of the fit and comment on uncertainties. Written by Ruxandra Serbanescu (1-13). The Data Acquisition System was built by Larry Avramidis. Larry also wrote the LabView application. References: L.R. Fortney Principles of Electronics: Analog and Digital, Harcourt Brace Jovanovich 1987 5