Presentation is loading. Please wait.

Presentation is loading. Please wait.

ELECTRIC CIRCUITS ECSE-2010 Spring 2003 Class 3. ASSIGNMENTS DUE Today (Thursday): Will introduce PSpice Activity 3-1 (In Class) using PSpice Will do.

Similar presentations


Presentation on theme: "ELECTRIC CIRCUITS ECSE-2010 Spring 2003 Class 3. ASSIGNMENTS DUE Today (Thursday): Will introduce PSpice Activity 3-1 (In Class) using PSpice Will do."— Presentation transcript:

1 ELECTRIC CIRCUITS ECSE-2010 Spring 2003 Class 3

2 ASSIGNMENTS DUE Today (Thursday): Will introduce PSpice Activity 3-1 (In Class) using PSpice Will do Experiment 1; Report Due Jan 27 Next Monday: No Classes – Martin Luther King Day Next Tuesday/Wednesday: HW #1 Due Activities 4-1, 4-2, 4-3 (In Class) 4-2 in NOT in your Supplement

3 REVIEW Kirchhoff’s Laws: KCL, KVL  Current Into Node = Current Out of Node  Sum of Voltages Around any Closed Path = 0 Resistors in Series: Resistors inParallel:

4 KIRCHHOFF’S LAWS

5 RESISTORS IN SERIES

6 VOLTAGE DIVIDER RULE v 1 = i R 1 = V/R eq x R 1 v 1 = [R 1 /(R 1 + R 2 )] V v 2 = i R 2 v 2 = [R 2 /(R 1 + R 2 )] V Elements in Series v 1 ~ R 1 v 2 ~ R 2

7 RESISTORS IN PARALLEL

8 CURRENT DIVIDER RULE i 1 = [R 2 /(R 1 + R 2 )] i i 2 = [R 1 /(R 1 + R 2 )] i Elements in Parallel i 1 ~ R 2 i 2 ~ R 1

9 PSPICE Widely Used Simulation Package  Industry Standard for Circuits and Electronics Student Version is FREE  http://cadencepcb.com/products/downloads/PSpicestudent/ default/asp http://cadencepcb.com/products/downloads/PSpicestudent/  We will use PSpice A/D and Schematics  Could use Capture in place of Schematics Get a Copy and Use it Often

10 PSPICE PSpice has Many “Rules”:  Will build up slowly Use PSpice for Circuits that are Computationally Challenging: Will Often Analyze a Circuit to Learn Principles - Then “test” with PSpice:

11 METHODS FOR PSPICE Circuit File Method:  Draw Simulation Diagram  Create Circuit File (lines of code you type in)  Run Circuit File Using PSpice A/D  Observe Output (Probe or Output File) Schematics (or Capture) Method:  Create Circuit Diagram (Drag and Drop)  Set up Analysis  Run Simulation (PSpice A/D)  Observe Output (Probe or Output File)

12 ACTIVITY 3-1

13 CIRCUIT FILE METHOD Create Simulation Diagram:  Original Circuit  Label Nodes, Name Elements, Identify Sources Create Circuit File:  Lines of code describing circuit and analysis  Must save as.cir  Tells PSpice what to do Run Circuit File using PSpice A/D:  Observe Output  Output File or Plot using Probe

14 SIMULATION DIAGRAM Circuit Diagram but with all Nodes and all Elements Labeled for PSpice Each Node must have a unique Number Each Element must have both a Name and a Value Both Active and Passive Elements

15 SIMULATION DIAGRAM

16 CIRCUIT FILES Circuit File Describes Circuit to PSpice and Tells PSpice What to Do: First Line Not Used by PSpice: => Name To Describe a Current Source: i 01DC1 Name of Source = i; “i” means current (i or I) Current flows from Node 0 to Node 1 DC Source 1 Amp

17 CIRCUIT FILES To Describe a Voltage Source v410DC 2 Name of Source = v4; “v” means voltage Positive terminal is Node 1 Negative terminal is Node 0 DC Source 2 Volts

18 CIRCUIT FILES Resistors: R45 2 312 Name of Resistor = R45; “R” => Resistor Connected between Nodes 2 and 3 Positive Terminal is Node 2 Negative Terminal is Node 3 Resistance is 12 ohms

19 COMMANDS.dclini-1, 1, 0.1 Perform a DC Analysis Do a Linear Sweep Sweep the variable named i Sweep i from -1 Amp to +1 Amp in steps of 0.1 Amps

20 COMMANDS.probe Tells PSpice to run Probe after performing the specified circuit analysis.end Tells PSpice that the file is at the end Will Add More Commands Later

21 PROCEDURE Create Circuit File from Simulation Diagram  Save as.cir Open PSpice A/D: Open Circuit File: Run Simulation Observe Output

22 ACTIVITY 3-1

23 Open PSpice A/D Under File: Select New - Text File Type in Circuit File Save as.cir

24 ACTIVITY 3-1 Circuit File Activity 3-1 * PSpice does not use first line i01dc1 R12 1 2 6 R13132 R232312 R20203 R303012.dclini-1,1,0.1.probe.end

25 ACTIVITY 3-1 Under Simulation: Select Run If Errors: => Error Message => Correct If it Runs, Probe comes up automatically Horizontal axis = i (from -1 to + 1) Under Trace: Select v(1) v(1) = Voltage at Node 1 Note that R eq = 5 ohms

26 SCHEMATICS METHOD Create Schematics Diagram:  Same Circuit using Schematics Parts  Drag and Drop; Similar to LogicWorks  Rotate Elements using Control R or Control F Set up Analysis:  Choose what you wish to do Save as.sch Simulate using PSpice A/D:  Observe Output  Output File or Plot using Probe

27 ACTIVITY 3-1

28 SCHEMATICS METHOD Open Schematics: Select New  Locate “Parts”; Drag and Drop  Sources are Passive Elements in PSpice!  Must put in i = -1 A to get +1 A  Add Wires using Wire Icon  Must always include Earth Ground!  Change Names and Values of Elements by Doubleclicking on them  Save as.sch

29 SCHEMATICS METHOD Under “Set up Analysis” Icon:  Select DC Sweep of Current Source, -1 to +1 A  Will use other options later Click “Simulate” Icon:  Error Messages if Errors  Observe Output  Same as before except for Sign  Change Horizontal Axis to –i to get positive slope  Much Quicker once you get used to it

30 MULTIMETER MEASUREMENTS Model for Real Voltmeter:  Ideal Voltmeter in Parallel with R M  Ideal Voltmeter Draws No Current  R M = “large”; Typically a few Mohms Model for Real Ammeter:  Ideal Ammeter in Series with R m  Ideal Ammeter has no voltage drop  R m = “small”; Typically a few ohms

31 VOLTMETER

32 AMMETER

33 EXAMPLE

34

35

36 EXPERIMENT 1 Use E3631A Voltage Source:  + 25 V output; +, Com  Adjust output to be + 12 Volts Think About Model for Ammeter:  With Switch Open; Current flows thru Meter Measures current as if Switch were Closed  With Switch Closed; Current flows thru Switch Ammeter measures 0; as if Switch were Open

37 EXPERIMENT 1a

38 EXPERIMENT 1b


Download ppt "ELECTRIC CIRCUITS ECSE-2010 Spring 2003 Class 3. ASSIGNMENTS DUE Today (Thursday): Will introduce PSpice Activity 3-1 (In Class) using PSpice Will do."

Similar presentations


Ads by Google