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)
11A - Diode Clippers#
Learning goal: understand how diodes can lead to clipping of a signal and how to recognize these signals in a classroom setting Experiments of this week:
experiment 11A: make diode clippers
experiment 11B: build diode rectifier
experiment 11C: build a diode bridge
Structure of an experiment:
Background+Anticipate+ Simulate: per person; 55 min.
Implement + Investigate: with your partner (group of 2); 50 min.
Compare + Conclude: with a group of 4 (per table); 10 min.
Materials used:
Test board 1
Function generator
Oscilloscope
BACKGROUND Clippers:#
Read the appropriate sections of the book (see schedule on BrightSpace), and watch the following video:
Following are the highlights of the video in text, read them carefully.
A diode is a polarity sensitive switch, the plus side is called anode, the minus side is called cathode. Only if the voltage at the anode is higher than at the cathode, the diode is conducting.
The above description is a simplified model of the diode. A better approximation is the following, with a voltage drop of 0.7 V over the diode, and a linear I-V charateristic for V larger than the voltage drop, modeled by R_on of 10 Ohms.
Although the behavior of a diode is simple, diode circuits can be really complicated. In this simulation exercise we will look at a number of circuits, most of them you will explore during the practical assignments.
ANTICIPATE 1: simple diode circuit#
⏳ Estimated time: 15 min
In the following schematic only one resistor, one diode and a voltage source is used. Predict Vout0 and Vout1 through the following steps:
what are the voltages on both sides of the diode?
when starts the diode conducting?
what will be the output voltage?
when will there be current through the diode?
### TO DO="your predict1 for the above two circuits"
ANTICIPATE 2: Advanced clipper circuit#
⏳ Estimated time: 10 min
Diodes can be used together with a voltage divider or with a capacitor in series of the voltage source:
Similar to the previous prediction, answer the following questions for Vout3 and Vout4:
when starts the diode conducting?
what will be the output voltage?

Vin is a sine with 16 Vpp (or 8 Vp), and 1 kHz
### TO DO="your predict2 for the clipper "
SIMULATE 1: simple diode circuit in LTSpice#
⏳ Estimated time: 10 min
Put the two ‘simple’ circuits in LTSpice. Insert your screendumps of the LTSpice circuit+simulated signals.
from ipywidgets import FileUpload
from IPython.display import Image
upload=FileUpload()
upload
import os
file_name="11A_first_sim_diode.jpg"
if upload.value!={}:
with open(file_name,"wb") as f:
try: f.write(upload.data[-1]) # python 3.7 Kernel code, not working on Vocareum
except: f.write(upload.value[-1]["content"]) # python 3.8 Kernel code, change kernel in Vocareum!
Image(filename=file_name, width="50%")
##simplest diode circuit -->NEW MOVIE?
from IPython.lib.display import YouTubeVideo
YouTubeVideo('Hbvfnd9TpnU', width = 600, height = 450)
SIMULATE 2: Advanced clipper in LTSpice#
⏳ Estimated time: 10 min
Put the ‘advanced’ clipper circuit in LTSpice. Insert your screendumps of the LTSpice circuit+simulated signals.
upload
import os
file_name="11A_second_sim_clipper.jpg"
if upload.value!={}:
with open(file_name,"wb") as f:
try: f.write(upload.data[-1]) # python 3.7 Kernel code, not working on Vocareum
except: f.write(upload.value[-1]["content"]) # python 3.8 Kernel code, change kernel in Vocareum!
Image(filename=file_name, width="50%")
##diode clipper -->NEW MOVIE?
from IPython.lib.display import YouTubeVideo
YouTubeVideo('dQ7I-PZB7Rg', width = 600, height = 450)
Compare the ‘simple’ and ‘advanced’ circuit behaviour. What is the advantage of the complex circuit?
### TO DO="your answer on benefit complex circuit"
IMPLEMENT & INVESTIGATE 1: Clipping#
⏳ Estimated time: 25 min
Remember to set the right output setup on the function generator
1a. clipping based on 1 diode#
First we will have a look at some clipper circuits. In the figure below we see a clipper, based on one diode.

Build the circuit and make sketch (or photo) of the measured input and output signals (1Vpp and 10Vpp sinewave, 1 kHz). Make sure the inputs of the scope are set to DC-coupling.
ℹ️ Hint
What is the maximum voltage that can be over the diode? If you get a different output than you expected, check the direction of the diode and whether the scope is set to DC-coupling.
insert your image(s) below
upload
file_name="11A-1_sketch.jpg"
if upload.value!={}:
with open(file_name,"wb") as f:
try: f.write(upload.data[-1]) # python 3.7 Kernel code, not working on Vocareum
except: f.write(upload.value[-1]["content"]) # python 3.8 Kernel code, not working on Vocareum
Image(filename=file_name, width="50%")
### TO DO="further comments on your sketch"
1b. Clipper based on two diodes#
Next the circuit can be expanded with an extra diode in anti-parallel configuration, as shown in this figure. R4 is 1 k\(\Omega\).

Build the circuit and make sketch of the measured input and output signals (1Vpp and 10Vpp sinewave). Make sure the inputs of the scope are set to DC-coupling.
insert your image(s) below
upload
file_name="11A-2_sketch.jpg"
if upload.value!={}:
with open(file_name,"wb") as f:
try: f.write(upload.data[-1]) # python 3.7 Kernel code, not working on Vocareum
except: f.write(upload.value[-1]["content"]) # python 3.8 Kernel code, not working on Vocareum
Image(filename=file_name, width="50%")
### TO DO="further comments on your sketch"
Have a look at the FFT of the above two signals. What do you observe when going from 1Vpp to 10 Vpp?
### TO DO="# what do you observe for the FFT for 1Vpp and 10 Vpp"
insert your image below
upload
file_name="11A-3_not_clipping.jpg"
if upload.value!={}:
with open(file_name,"wb") as f:
try: f.write(upload.data[-1]) # python 3.7 Kernel code, not working on Vocareum
except: f.write(upload.value[-1]["content"]) # python 3.8 Kernel code, not working on Vocareum
Image(filename=file_name, width="50%")
IMPLEMENT & INVESTIGATE 2: Advanced clipping#
⏳ Estimated time: 25 min
2a. Clipper based on one diode in the signal-path#
In all the previous circuits the diode is placed between ground and the signal path. In another category of clippers, the diode is placed in series with the signal path. Now we will have a closer look at such a circuit.

The connectors J2 and J3 will be connected to the power supply (set to +5V). J2 to the positive terminal, J3 to the negative terminal(COM). Vin=16 Vpp, 1kHz. R3=R4= 1 k\(\Omega\)
Build the circuit and measure the input and output signals.
Make a sketch of the waveforms.
Do the waveforms cohere with your expectations? Make sure the inputs of the scope are set to DC-coupling.
insert your image below
upload
file_name="11A-4_clipper.jpg"
if upload.value!={}:
with open(file_name,"wb") as f:
try: f.write(upload.data[-1]) # python 3.7 Kernel code, not working on Vocareum
except: f.write(upload.value[-1]["content"]) # python 3.8 Kernel code, not working on Vocareum
Image(filename=file_name, width="50%")
### TO DO="further comments on your sketch/photo"
2b. reverse diode direction#
Modify the circuit as in the figure below (swap the diode connections).

Measure the output signals.
Is this output-signal as expected?
Make a sketch of the output-signal.
insert your image below
upload
file_name="11A-5_clipper_diode_inverted.jpg"
if upload.value!={}:
with open(file_name,"wb") as f:
try: f.write(upload.data[-1]) # python 3.7 Kernel code, not working on Vocareum
except: f.write(upload.value[-1]["content"]) # python 3.8 Kernel code, not working on Vocareum
Image(filename=file_name, width="50%")
ℹ️ Hint
If you get stuck on predicting/explaining the signal, try to write down what the DC voltage with respect to the ground is at the different pins (e.g. J2, U26, U14) and what this means for the diode.
### TO DO="further comments on your sketch/photo"
Now move the power supply knob slowly. What do you observe on the scope?
### TO DO="your observation, what changes with varying the input voltage?"
COMPARE&CONCLUDE#
⏳ 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:
in your own words, explain (to the TA) what is a clipper is, and its purpose?
Name a benefit of each of the below circuits:

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
#11A diode clipper
### TO DO='1 explain what a clipper is'
### TO DO="2 Name a benefit of each clipper circuit"
### TO DO="3a. abstract"
### TO DO="3b. troubleshooting"
### TO DO="3c. code"
### TO DO="4. what changes would you suggest?"
Recording: https://www.youtube.com/watch?v=NlsTgr56bT0
%rebootdevice
%disconnect