from IPython.core.display import HTML
def set_width(width):
display(HTML(f"""<style>
.container {{ width:{width}% !important;
min-width:800px !important; margin: 0 auto}}
.jp-Cell {{ width:{width}% !important;
min-width:800px !important; margin: 0 auto}} </style>"""))
# Set container width to X% of the fullscreen
set_width(50)
1B: Function generator load resistance#
Learning goal: Understand how to connect the function generator, use the proper settings, and measure quantities such as the voltage.
Structure + Timing of this experiment: BASIC = background, anticipate, simulate, implement & investigate, compare&conclude
28 (8+10+10) min background+anticipate : per person. This is homework: finish it before the 4 hours practicum session
55 (15+15+5+20) min implement & investigate: with partner (group of 2)
10 min compare&conclude : with group of 4 (per table)
Background#
⏳ Estimated time: 8 min
A function generator is an electronic instrument that generates electrical signals of different waveforms.
Have a look at the introduction to the function generator: https://mwdocter.github.io/TeachBook/main/EI_manuals/intro_function_generator.html
Anticipate 1: Distinguish Vpp, Vp, Vrms#
⏳ Estimated time: 10 min
While generating a sine wave, the function generator is most often set to Vpp (=Volt peak-peak). The DMM measures the Vrms (=Volt root-mean-square).
From a sine wave with amplitude (=Vp=Volt peak) of 1 V, the Vpp is 2V. The Vrms is the continuous DC signal having the same power as the time-varying AC signal, the quadratic mean. The Vrms of this sine wave is 1/sqrt(2)=0.71 V.
The function generator generates the signal below. Derive the amplitude of the signal in Vrms, Vp and Vpp. Also derive the frequency:

#TO DO: what are Vrms, Vp, Vpp, and frequency of the above signal
For more information on Vpp, Vp and Vrms, please watch https://mediaplayer.pearsoncmg.com/assets/58_atE_dMfrjlBJXwgUu6CfZ4iDEgeMO
Anticipate 2: Solve how to deal with a range of LOAD resistors#
⏳ Estimated time: 10 min
The function generator can be seen as ideal voltage source, with an internal resistance (inside the device). The generated voltage is then divided over the (fixed) internal and the external resistor (termed LOAD resistor). This includes everything inside the circuit that you attach to the function generator.
Come up with a (qualitative) solution how the function generator (with internal resistor) can work with a wide range of LOAD resistors, for example 50 Ω and 10 MΩ.

## TO DO ; your answers here:
#1. what is the Vrms, Vp and Vpp of the signal
#2. How can you let a function generator (with internal resistor) work over a large range of load resistors?
Before starting the measurements, feel free to watch a brief overview on what you’ll be doing
Simulate#
⏳ Estimated time: 0 min
No simulation yet, not until you get properly introduced to LTSpice
Implement & investigate 1: Measure the Vrms with the DMM#
⏳ Estimated time: 15 min
As shown in the diagram below:
connect the output of the function generator to both the DMM and to test board 1 (making use of a BNC T-splitter inside the small toolbox).
the BNC connector, and attached coax cable, have two signals. The signal line (inner core of the coax cable) is equivalent to the red wire from the previous exercise. The outer shielding is equivalent to the black wire/ COM. You therefore connect 1 wire, with 2 signal lines.
Do not connect the BNC connector to any other components on the test board.
Activate the function generator’s output.
Program the function generator to generate a sine wave of 1kHz and amplitude 2V
measure the voltage with the DMM.
Questions to answer:
Confirm which type of voltage (Vpp, Vp or Vrms) is measured by the DMM
If you input 2 Vrms, does the DMM measure 2 Vrms?
Can you already explain why 2 Vrms from the function generator might not be measured as 2 Vrms by the DMM?
At this point: don’t worry too much about a possible discrepancy. Please continue - we will investigate further.
### TO DO="your answers"
Implement & investigate 2: For which rotary switch setting do you measure the correct Vrms?#
⏳ Estimated time: 15 min
Keep the function generator’s output on 2Vrms
Connect the rotary switch, a big black turning knob with 12 numbered positions, (SW1) to the BNC.
Make sure to form a closed circuit:
use a red wire to go from the signal line of the BNC connector (U30) to the rotary switch (U20)
don’t forget to connect the BNC’s COM (U35) to the other side of the rotary switch
Measure the voltage over the rotary switch, with the already connected DMM.
Find the setting (and resistance value) of the switch, for which the voltage measured by the DMM most correct?
ℹ️ Hint
Just measure the Vrms at different Rs as specified by the rotor. The layout plus values of testboard components can be found on Brightspace, in the document ‘Testboard layouts and component values’. THE LAYOUT ABOVE DOES NOT CONTAIN THE RIGHT VALUES FOR THE ROTARY SWITCH
### TO DO=" your answer: switch setting .... with resistance value ...."
Implement & investigate 3: Observe the influence of DC offset on the measured Vrms#
⏳ Estimated time: 5 min
What happens to the measured voltage, when changing the DC offset of the sine wave (at the function generator)?
Put the DC offset back to 0V.
### TO DO=" your answer: changing the DC offset of the sine wave leads to ....... in the measured voltage "
Implement & investigate 4: Determine correct use of the output setup#
⏳ Estimated time: 20 min
If you know the value of the load resistance, you can use the setting called ‘output setup’. This setting will internally switch the voltage supplied with a factor of 2, and allows to deal with a variation of LOAD resistors.
for HIGH Z the function generator assumes an infinite load resistance (for example a DMM).
default (e.g. upon startup), the generator assumes HIGH Z
The load setting can be found at the function generator under UTILITY / OUTPUT SETUP, and then select 50 Ω / HIGH Z or LOAD.
Do a correct measurement with the testboard connected.
Which LOAD setting should you use? Write down this setting, the Vrms of both function generator and DMM.
Disconnect the coax cable from the testboard.
Again: Which LOAD setting should you use? Write down this setting, the Vrms of both function generator and DMM.
ℹ️ Hint
The OUTPUT SETUP is related to the resistance that is present in the circuit you’re measuring. Think about ALL the components that are in your circuit (… these include the measuring devices). What is the correct setting? Do you indeed measure the correct voltage?
Hence, to be sure of the actual signal amplitude, you should always measure it. Keep this in mind during all exercises!
### TO DO="the correct load setting for the testboard connected and disconnected"
Optional challenge (exam question)
Predict the measured value for an 1 Vrms output on 50 Ω actual load, while the OUTPUT SETUP is set to high.
Predict the measured value for an 1 Vrms output on actual high load, while the OUTPUT SETUP is set to 50 Ω .
Note: red colored additional challenges are not mandatory, but serve as extra challenge. You can also verify the answers of these additional challenges with the TA
### TO DO="optional: your prediction for measurements with a mismatched load setting"
Compare & Conclude: per group of 4#
⏳ Estimated time: 10 min
Wait till all (4) group members finish their observation
Compare your results with your other group members.
If your results agree, and are in line with all predictions, then talk to a TA and get checked off
Otherwise, so if your results do not agree, or your results are not in line with your predictions, then first discuss amongst your group before getting a TA.
to be checked off by a TA:
Explain how the function generator is able to deal with a large range of load resistors.
exit card:
Write a brief abstract on what you learned (conclusion, useful graph),
Which troubleshooting skills do you want to remember for next sessions,
Which code do you copy for use in next sessions,
How do you think this notebook could be improved
#1B function generator output
### TO DO="1. your explanation, to be checked by the TA. DON'T FORGET TO WRITE IT DOWN!"
### TO DO="2a. abstract"
### TO DO="2b. troubleshooting"
### TO DO="2c. code"
### TO DO="3. what changes would you suggest?"
If you got stuck during the measurement, at the end of the lab assignment we offer you a movie clip with our recorded efforts in the lab. If you were successfull with measuring, then skip this movie clip