Presentation is loading. Please wait.

Presentation is loading. Please wait.

Sweeping a Variable Resistor Wheatstone Bridge. Place the Parts 1.VDC 2.R, which you place 3 times. The numbering of the resistor increases sequentially.

Similar presentations

Presentation on theme: "Sweeping a Variable Resistor Wheatstone Bridge. Place the Parts 1.VDC 2.R, which you place 3 times. The numbering of the resistor increases sequentially."— Presentation transcript:

1 Sweeping a Variable Resistor Wheatstone Bridge

2 Place the Parts 1.VDC 2.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.

3 Wire the components together Click 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.

4 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.

5 Create a Variable Name Double 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 0  to 10 k  during this simulation. Click Save Attr.

6 Assign a Value to the Variable Then, select VALUE1 and assign it the value 10 k . 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.

7 Assign Variable Name to R_VAR Now 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.

8 Set You 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 k , and fixed at 5 k  during the calculations for the Bias Point Detail. A common mistake is to forget to change SET so verify that it is equal to 1 if you find that your results differ from the expected results. Then, click Save Attr and finally click OK to close the pop-up window.

9 Select the Type of Simulation Change the other component values: 1.VDC = 9V 2.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.

10 DC Sweep Select Global Parameter under Swept Var. Type. The name of the parameter is Rx. The start value is 0 . The end value is 10 k . The increment should be small to yield a smooth curve on the plots that will be displayed; 100  is reasonable. NEVER put a space between the number and the prefix in PSpice.

11 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.

12 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.

13 Add a Ground

14 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.

15 Node Voltages as a Function of Rx

16 To Plot V BA Click on Trace/Add Trace (the shortcut is Insert).

17 Entering Mathematical Expressions V BA 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.

18 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.

19 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 V BA will disappear if you rerun the simulation.

20 Select the Currents to be Plotted Left 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.

21 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.

22 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).

23 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.

24 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.

Download ppt "Sweeping a Variable Resistor Wheatstone Bridge. Place the Parts 1.VDC 2.R, which you place 3 times. The numbering of the resistor increases sequentially."

Similar presentations

Ads by Google