










Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!











Electronic WorkBench (EWB) is a simulation package for electronic circuits. It allows you to design and analyze circuits without using breadboards, real components or actual instruments. EWB's click-and- drag operations make editing a circuit fast and easy. You can change parameters and circuit components on the fly, which make "what-if" analysis straight foreward.
This tutorial is intended as a quick introduction to EWB's basic features. It first leads you through the fundamental steps of putting a circuit together and analyzing its function using the instruments. The final part of the tutorial consists of two exercises that try to illustrate the power of EWB. It also tries to encourage you to apply the "what if" approach to circuit design. It will greatly help your understanding of electronics if you use EWB in an interactive manner: Make change to the circuits you are working on, observe the effects that these changes have, and try to understand them. EWB puts very little constraints on parameters so do not be too timid, don't just change things by 10%, try out what happens when you change them by a couple of orders in magnitude.
Directly printing EWB schematics and graphs does usually not produce satisfactory result, and leads to a tremendous waste of paper. It is better to incorporate EWB results by copying them to the clipboard
using the copy as bitmap command, and then pasting this into a
something like a word document.
To open EWB click on its icon. Initially you will see an empty circuit window and two toolbars, the circuit toolbar with the common file management, editing and graphics tools, and a Parts Bin toolbar from which you can select a wide range of circuit elements, and instruments. The following will guide you on your first attempt to simulate circuits.
In this part of the tutorial, you will build the simple DC voltage divider circuit shown below.
Figure 1. A resistive voltage divider
Step 1. Place the components on the circuit window To build the circuit, you need a battery, two resistors and a ground connection. Assemble the components for the circuit.
Initially you wiring may not look very pretty. However, after making the connections, you can move wires and components around without breaking the connections.
Step 4. Set values for the components Initially, each component comes up with a pre-set, default value, e.g., the battery voltage is set to 12 V. You can change all component values to suit your application.
Step 5. Save your circuit Save your work frequently!
Step 6. Attach the voltmeter To measure voltages in your circuit you can use one or more voltmeters.
Step 7. Make changes and additions You now have a very simple but functioning circuit. Take this opportunity to make some changes and additions.
EWB incorporates a number of instruments, such as an oscilloscope and a function generator. The following provides an introduction to these two instruments. To briefly investigate the function generator, build the circuit below.
The oscilloscope An oscilloscope is a far more powerful instrument than a bargraph indicator or even a voltmeter. It can show you the time dependence of the signals in your circuit. The EWB oscilloscope provides a fairly close approximation of a real one. It has two independent input channels, A and B, an input for an external trigger and a ground connection.
Figure 3. The EWB oscilloscope icon with its terminals.
To look at the output of your signal generator you can add an oscilloscope to the circuit you just made.
Figure 4. Using the oscilloscope to investigate the signals from the function.
Assemble the circuit shown below, and activate. After you have achieved something similar to fig. 4, change the value of the damping resistor. Look at values from 100Ω to 100kΩ. Can you explain your observations?
Figure 5. Driving a LRC circuit with a square wave.
Set the damping resistor to 100Ω. Now scan the function generator frequency from 15 Hz to 25 Hz in steps of 1 Hz. The behavior of the
circuit seems to change dramatically for very small changes in the frequency. Try to figure out why this happens.
In this exercise we have used the external trigger to stabilize the oscilloscope picture. You may still find it uncomfortable to read the scope. Try the following. Click on Analysis/Analysis options (Ctrl Y). Click on the Instrument tab, and select under Oscilloscope "Pause after each screen". You can then use the Resume button to go through the simulation one oscilloscope screen at a time. It may take a number of frames to reach steady-state behavior.
AC ‡ DC conversion Somehow you have picked up the information that there are circuit elements that pass a current in one direction and block it in the opposite
one. They go by the name of diode. It strikes you that this could be useful to convert an AC voltage, maybe from a transformer, to a DC voltage. To see if this is actually going to get you somewhere you put down the following circuit.
Figure 7. Smoothing the rectified sine wave using a capacitor.
With a sufficiently large capacitor you can get a DC voltage with a very small ripple. However, the capacitance that you need is a bit large, and the voltage is 17V. As it happens, you actually wanted something close to 8V. A colleague suggests that you use a zener diode to fix this. You are not too sure, but you have the impression that this is a sort of voltage stabilizer. So you pluck a zener diode from the toolbar and try some plausible looking configurations. Maybe something like this.
Figure 8. Using a zener diode to get the desired voltage. In the circuit diagram you see the zener labeled as BZV49- C8V2. To get this specific one you have to double-click on the generic zener, and go through the list of "real" zener diodes that are available.
This doesn't work so well. You notice that for part of the time you have a constant voltage of the desired value, but in between there are big dips. You don't quite understand, so you use the oscilloscope to investigate what is going on. Leave channel B where is, but move channel A to measure the voltage across the capacitor. From the oscilloscope picture it is now quite clear what is going on. As long as the voltage on
easier, you should set the sensitivity (y-scale) for both channels to the same value, and the y-positions to zero.
After adjusting the capacitor value, you may be interested in how constant the DC voltage actually is. On the 5V/div scale you do not notice any deviations. When you try to go to higher sensitivity, the trace moves off the screen. Since you are only interested in the oscillations around the constant value of 8V, you can switch one of your channels to AC mode. This removes the DC part and makes it possible to look at small features.
Figure 9. Checking for the size of the ripple on the DC voltage. Note that here we have connected both channels to the same point. Channel A, set for DC-5V/div, monitors the DC voltages, Channel B, set for AC-10mV/div looks at the small ripple. Since it is difficult to trigger from a nearly constant voltage, we have used the external trigger input to trigger directly on the input sine wave.