Some simple simulations are part of regular PHY405 labs, but the course’s primary goal is for students to develop basic hands-on electronic skills. Some of these simulations have been extended and moved into this special exercise. You will actually build two of the simulated circuits in subsequent labs.
In-person labs are done in pairs in the lab, but this at-home exercise should be done individually.
Help will be available via Zoom during your regular lab time. Check Quercus for the Zoom link.
Please let the Instructor know if you notice any apparent errors in this write-up.
For clarity and simplicity, anything that must go into your report for this lab is in a highlighted text box like this and labelled “R-1, R-2, …”.
Each response box (i.e.”R” box) has the same weight. Part marks may be given. The number of questions will vary from lab to lab, but each lab is worth the same fraction of your final course grade.
Answers to the specific lab questions must be clearly and obviously labelled in the report, e.g. with “R-1”, “R-2”, ….
Circuit simulators are essential tools in modern electronics design, but they can be very risky and misleading for naive users.
Use the Falstad circuit simulator to design a very simple circuit for your breadboard powered by your waveform generator that alternately flashes an red and a blue light emitting diode (LED) a couple of times a second. To avoid damaging the LEDs, include a current limiting resistor to keep the peak current through the circuit below 10 ma if a peak square wave voltage of 10V from the Wave Gen is applied.
R-1) In your report include a screen capture/photo of the circuit diagram from the simulation and a link to your circuit.
If an AC voltage is applied to the input of a circuit and the output observed, the voltage attenuation or amplitude frequency response is
\[ A(f) = \frac{|V_{output}(f)|}{|V_{input}(f)|}\]
Both the amplitude and phase can change between the input and output of a circuit, so we are more generally interested in the transfer function:
\[H(f)=\frac{V_{output}(f)}{V_{input}(f)}=|H(f)|e^{i\phi(f)}\]
Capacitors have high impedance at low frequencies and can be used to create either high-pass or low-pass filters.
Plotting the attenuation and phase (relative to input) of a circuit is known as a Bode Plot. Bode plots for Falstad circuits can made by copying them into the Falstad Analog Filter applet:
A band-pass blocks AC signals with frequencies higher or lower than a specified band. A band-pass filter can be created by combining appropriate low-pass and high-pass filters.
R-2) Design a circuit with a 6 V (peak-to-peak) sinusoidal input, resistors, capacitors, and a Green LED, such that the LED only lights up when the input frequency is (roughly) between \(\sim 0.5 \mathrm{kHz}\) and \(\sim 5 \mathrm{kHz}\).
In your report include a screen capture/photo of the circuit diagram from the simulation and a link to your circuit.
The Falstad simulator is very easy to use and works well for PHY405, but it is not a professional tool.
Many professional proprietary (and usually expensive) electronics design tools exist, but probably the oldest and best known circuit simulator is SPICE (“Simulation Program with Integrated Circuit Emphasis”) and its many commercial and free variants: LTSpice, HSpice, PSpice, NGSpice, AIM-Spice, XSpice, …. The challenge of professional tools is that they are typically proprietary, expensive, or have a steep learning curve (or all three). The purpose of this exercise is primarily to make you aware such professional tools, but no subsequent labs expect more than a Falstad simulation.
We will be using LTSpice, which has both Windows and Mac versions. If you have only a Linux, you can run LTSpice under wine, use NGSpice or another Linux compatible SPICE. Let the Instructor know if you do not have home access to a Windows or Mac computer. If you have a Chromebook, you could try the web-based PartSim, or the Chrome Spice Client.
If looking for help with LTSpice, don’t be confused by videos that refer to Linear Technologies instead of the current vendor Analog Devices. Linear Technologies - the company that originally developed LTSpice (hence the name LTspice) - was bought by Analog Technologies a few years ago.
After downloading and installing LTSpice:
R-3) Reproduce the Falstad Low Pass RC Filter in LTSpice.