sweeping a variable resistor

24
Sweeping a Variable Resistor Wheatstone Bridge

Upload: evelia

Post on 24-Feb-2016

80 views

Category:

Documents


0 download

DESCRIPTION

Sweeping a Variable Resistor. Wheatstone Bridge. Place the Parts. VDC R , which you place 3 times. The numbering of the resistor increases sequentially as you place each resistor. R_VAR , the variable resistor, which is used to simulate the trim pot. Wire the components together. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Sweeping a Variable Resistor

Sweeping a Variable Resistor

Wheatstone Bridge

Page 2: Sweeping a Variable Resistor

Place the Parts

1. VDC2. R, which you place 3

times.The numbering of the resistor increases sequentially as you place each resistor.

3. R_VAR, the variable resistor, which is used to simulate the trim pot.

Page 3: Sweeping a Variable Resistor

Wire the components togetherClick on the pencil icon on the toolbar. Then, left click on the ends of the two components that you want to connect with a wire. Right click to end the wiring operation.

Page 4: Sweeping a Variable Resistor

Place PARAM

You need one extra part – PARAM – to be able to run simulations where the value of the component is changed during the simulation.

Place this part to one side of the circuit so that it doesn’t obscure any of the other components or labels.

Page 5: Sweeping a Variable Resistor

Create a Variable NameDouble click on the word PARAMETERS, which will cause PARAMETERS: to be highlighted in read and the PartName param pop-up window to open.

Select NAME1 and assign it the value Rx, the name of the variable that will be ramped from 0W to 10 kW during this simulation.

Click Save Attr.

Page 6: Sweeping a Variable Resistor

Assign a Value to the VariableThen, select VALUE1 and assign it the value 10 kW.This will be the value used by PSpice when calculating the Bias Point Detail.

Click Save Attr and then click OK to close the pop-up window.

Page 7: Sweeping a Variable Resistor

Assign Variable Name to R_VARNow you have to assign the parameter to the variable resistor. To do this, double click on the symbol for R_VAR, which will cause the symbol to be highlighted in red and will open the PartName: r_var pop-up window.

Click VALUE and assign Rx as its value. Then click Save Attr.

Page 8: Sweeping a Variable Resistor

SetYou must also change SET from 0.5 to 1. If you do not do this step, the value of the variable resistor will be 50% of the value assigned by the parameter. I.e., the value of the R_VAR will be ramped between 0 – 5 kW, and fixed at 5 kW during the calculations for the Bias Point Detail.

A common mistake is to forget to change SET so verify that it is equal to 1if you find that your results differ from the expected results.

Then, click Save Attr and finally click OK to close the pop-up window.

Page 9: Sweeping a Variable Resistor

Select the Type of Simulation

Change the other component values:1. VDC = 9V2. R1 = R2 = R3 = 4.7k

Once you have finished laying out the schematic, you should save the schematic.

Now, you are ready to run the simulation. First, you have to select the type of simulation. Either click on the Analysis Setup icon (white with blue strip on top) or go to Analysis/Setup from the upper toolbar.

Make sure that Bias Point Detail is enabled. Click on the words DC Sweep, which will enable this simulation and cause a pop-up window to open.

Page 10: Sweeping a Variable Resistor

DC SweepSelect Global Parameter under Swept Var. Type.

The name of the parameter is Rx.

The start value is 0 W.The end value is 10 kW.The increment should be small to yield a smooth curve on the plots that will be displayed; 100 W is reasonable.

NEVER put a space between the number and the prefix in PSpice.

Page 11: Sweeping a Variable Resistor

Run the Simulation

The yellow icon is RUN, which may be at a different location on the upper toolbar of your installation of PSpice.

Mine is located next to the Analysis Setup icon on the left.

Page 12: Sweeping a Variable Resistor

Error Message

If you have followed my directions exactly, you will have error messages displayed in the window that is launched when the simulation is run.

Note that the error message is that several of the nodes are floating. The cause is either (a) the wire connection to the components did not register and you need to go back to the components and make a node show up at the connection of the end of each part and the wire or (b) there is no reference point (ground) in the circuit.

Page 13: Sweeping a Variable Resistor

Add a Ground

Page 14: Sweeping a Variable Resistor

Use Voltage Markers

Place a voltage marker between R1 and R3 and a second marker between R2 and R4 to automatically generate a plot of the node voltages.

Page 15: Sweeping a Variable Resistor

Node Voltages as a Function of Rx

Page 16: Sweeping a Variable Resistor

To Plot VBA

Click on Trace/Add Trace (the shortcut is Insert).

Page 17: Sweeping a Variable Resistor

Entering Mathematical Expressions

VBA is the difference between the node voltage between R2 and R4 and the node voltage between R1 and R3. These are the two voltages that were plotted automatically by the placement of the voltage markers.

This the expression that must be entered in the Trace Expression box.

Page 18: Sweeping a Variable Resistor

Trace Expression

Read the names from the bottom of the plot. Subtract the voltage that contains R3 from the one that contains R4. Then, click OK. A third curve will be displayed on the plot at this time

Note that your voltage labels may have a :1 instead of a :2. This depends on how many times you rotated the resistors before placing them on the schematic.

Page 19: Sweeping a Variable Resistor

Add a Plot of the Currents

Click Plot/Add Plot to Window. An empty plot will be inserted above the one that was automatically generated.

Note that this additional plot (as well as the trace expression) that you added for VBA will disappear if you rerun the simulation.

Page 20: Sweeping a Variable Resistor

Select the Currents to be PlottedLeft click inside the blank plot area. Then, click on Trace/Add Trace.

In the pop-up window that opens, type in I(R3), I(R4) into the trace expression box. Then, click OK.

Page 21: Sweeping a Variable Resistor

Final Set of Plots

To increase the width, change the color or other attribute of each curve, right click on the curve and select Properties.

Note that the currents displayed are negative. This is not correct.

Page 22: Sweeping a Variable Resistor

Current Markers

If current markers were placed at the ends of R3 and R_Var, then the plot of the currents would be positive.

Note that the labels at the lower left of the plots are –I(R3) and –I(R4).

Page 23: Sweeping a Variable Resistor

Preferred Image

Printed a black and white version of the plot using File/Print or capture an image from your display after selecting File/Print Preview and include this plot in your report template. This will insure that the size of the report template is reasonably small when you upload it on Scholar. The time stamp and the file location should be included.

Page 24: Sweeping a Variable Resistor

Results from Bias Point Detail

Use the Analysis/Display Results on Schematic option if you would like to see the d.c. values of the voltages and currents from the Bias Point Detail calculation. The calculate is performed when Rx is equal to its maximum value.

The schematic with the labels does not have to be included in the report.