Lab 1 - 2
Lab 1 - 2
Along the sides of the breadboard (top and bottom in breadboard above) are columns of
holes running in rows alongside blue and red lines. These are different in that all the
holes in one column of holes are connected together. Thus we have four electrical
nodes. Normally these are used for power and ground connections and are often
referred to as "bus" connections. As a matter of convention, the holes next to the red
lines should be used for power, and the ones next to the blue lines should be used for
ground.
1. Plug the red and black plugs into the Channel 1 output banana jacks (red to red,
black to black.)
2. Plug the pins on the other ends of the test leads into one of the the red and blue
bus strips on the breadboard as shown below on the right.
To set up the DMM for this lab experiment, read the GDM-396 user manual
Question 1:
What voltage was the power supply set for, and what voltage did the DMM
measure?
Once you have recorded the voltage on the answer sheet, turn off the power supply
outputs.
1. From the color bands determine the resistance of each of the three
resistors. Note: You should have resistors of at least 100Ω and less then
1.5kΩ. If the values are outside that range get other ones from the lab assistant.
Important: We will be using these resistors in later parts of this lab. The one with
the lowest resistance will be referred to as resistor "R1", the middle resistance as
"R2", and the one with the highest resistance as "R3". Record your results on the
answer page.
2. Remove the test leads with the pins from the multimeter and replace them with
the pair that have the test clips on one end and banana plugs on the other as
shown below on the left.
3. On the front of the multimeter, set it for making resistance measurements by
pressing the "Ω" button.
For each of the three resistors, do the following two steps and record your results on the
answer sheet.
4. Connect each of the two test clips to one of the two leads coming from the
resistors as shown below on the right. Hold the body of the test clip with a couple
of fingers and then with your thumb press the back of the test clip to cause the
metal hook to extend from the other end of the clip.
5. Once both clips are connected to the resistor leads, the meter should display the
resistance in either Ohms, KOhms, or MOhms. The values of the three resistors
that you measured should be within about 5% of the component values you
determined above by reading the color bands.
Question 2:
What are the values of the resistors R1, R2 and R3 from the color bands?
What are the values of the resistors R1, R2 and R3 by measuring with the DMM
(round to the nearest integer)?
When resistors are connected in series their resistances add together. The total
resistance in the circuit is then R = R1 + R2 and by Ohm's Law the current flowing in the
circuit is given by
Since the same amount of current is flowing through both of the resistors, the voltage
across each resistor is then
For this calculation assume that Vs has been set to 5V. Using the values
of R1 and R2 that you measured with the DMM, calculate using pencil/paper what the
voltage should be across each of the two resistors.
Question 3:
With VS = 5V, what are the calculated voltages V1 and V2 across
resistors R1 and R2?
To test the above results we have to provide the Vs power supply to the circuit.
1. Make sure the power supply outputs are off (green button not lit up)
2. Adjust the voltage on channel 1 of the power supply to be 5.0V.
3. Plug the red and black banana plugs of the test leads with the pins on the end
into channel 1 of the power supply.
4. Plug the pins on the other ends of the test leads into the breadboard at the points
where the positive and negative Vs voltages are to be connected to your circuit
as shown above on the right.
5. Turn on the power supply outputs.
6. Plug the test leads with banana plugs on one end and test clips on the other into
the DMM if they aren't there already.
7. Set the multimeter to measure DC volts and measure the voltage drop across
each resistor. You're measuring the V1 and V2 voltages as shown above on the
left.
Question 4:
With VS = 5V, what are the measured voltages V1 and V2 across
resistors R1 and R2?
1. From the lab assistant get one of the small plastic buttons (any color) shown
below on the left. On the bottom of the button are four pins that can be inserted
into your breadboard.
2. Install the button on the breadboard as shown in below on the right. To make the
circuit work, the button must be oriented properly when installed on the
breadboard. Note that two of the sides of the button each have two metal pins.
The button must be installed on the breadboard so these two sides straddle the
center channel. Two of pins should be in holes on one side of the channel, the
other two should be in holes on the other side.
Make sure to press the button firmly into the holes of the breadboard. The
black plastic body of the button should be touching the top surface of the
breadboard.
3. Get a small piece of wire from the lab assistant and strip the insulation off both
ends using your wire cutters.
4. Insert one end of the wire in one of the ground bus holes (blue bus) and the other
into one of the holes below the button as shown in above. Make sure the wire is
inserted into the same group of holes that the pin from the button is inserted into
so they will make an electrical connection.
5. Connect the power supply to the breadboards with the black lead going to the
ground bus on the breadboard and the red lead to the power bus as shown.
6. Connect the multimeter to the breadboard in a similar fashion. The black lead
from the DMM goes to the same ground bus that the power supply is attached to.
The red lead goes to the other switch contact. Note that there should be one
column of unused holes between the button's ground connection and the red
DMM lead as shown in the figure.
7. Set the DMM to measure DC Volts by pressing the "DC V" button.
8. Set the power supply output for 5.0 Volts and turn the output on with the green
button.
9. Note: What we have wired is an INCORRECT way of wiring a button. We
want to show you that while you CAN produce a clean '0' (low) voltage,
you CANNOT produce a clean '1' (high) voltage.
10. The meter is now measuring the voltage on one of the switch contacts. Try
pressing the button and see how much the voltage changes. When the button is
not pressed the voltage reading will NOT be stable. It will slowly increase.
Spend a few seconds watching the voltage value "float" around. Read below to
understand why.
When the switch is pressed, the output side of the switch that is connected to the DMM
should show the voltage is pretty close to zero volts since the switch is connecting it to
ground. However when the switch isn't pressed, the voltage can be just about anything
since the switch output isn't connected to anything. It will probably be close to zero volts
but may be something a bit higher (perhaps somewhere between 0 and 1.0 volts), and
the value may drift up or down as you watch it. Try touching the metal part of the red
lead near the switch with your finger and this may cause the measured voltage to
change. This circuit isn't really doing anything useful and the reason is because when
the switch is open (not pressed) the output isn't connected to anything that would cause
a known non-zero voltage to appear there. In electronic circuit terminology, we would
say the output is floating.
Question 5:
What are the voltages (or range of voltages after watching for a few seconds) on
the switch output when it is not pressed and when it is pressed?
To make the switch circuit into something useful we need to change the circuit so the
output isn't floating when the button is not pressed. Turn the power supply output off
with green button and then make the changes shown below.
1. Remove the DMM red lead from the hole below the button and move it
to some unused five hole connection block.
2. Using resistor "R2", the one with the middle resistance value from the three you
worked with above, install it with one end in the +5V bus and the other end in
connection blocks where the DMM's red lead is.
3. Take a piece of wire and make a connection between the hole below the switch
and the connection block where the DMM and resistor are wired.
Turn the power supply output back on and repeat the observations you did before.
Question 6:
With resistor R2 added to the circuit, what are the voltages on the switch output
when it is not pressed and when it is pressed?
If you wired the circuit properly, the output should be very close to +5V when the button
is not pressed and be very close to zero volts when it is pressed. By adding the resistor
between the button output and the +5V, we've eliminated the floating problem and the
output of the button now covers a much wider range of voltage between the pressed
and not pressed state. The output is also now solidly fixed at the value you are reading.
It won't wander up and down like it did when it was floating.
For now don't worry about why this works. We'll cover the details of why the resistor is
needed in a later lecture.
By selecting the appropriate value for the resistor the amount of current through the
LED can be limited to whatever is needed. Referring to schematic above, Kirchoff's
Voltage Law says that
Vs = V + VLED = IR + VLED
where VLED is the voltage drop across the LED. Solving for I gives
I = (Vs - VLED)/R
We'll use the equation in the next section to determine how much current is flowing
through the LED for different values of the current limiting resistor.
Remove the connections to the DMM and follow the schematic diagram and picture
above to make the following wiring connections.
Turn on the power supply outputs and try pressing the button. If it's wired properly,
pressing the button puts a logical zero on the inverter input, which produces a logical
one on the output and that lights up the LED.
As discussed above, the value of the resistor determines how much current will flow
through the LED, and therefore how bright it will be.
7. Replace the the R1 resistor with R3, the resistor with the highest resistance of the
three, and see if the brightness of the LED changes. Since the R3 resistor is
about 4 times higher than R1, it allows much less current to flow through the LED
and it should be noticeably dimmer.
Question 7:
In the circuit we've just built with an LED as an output indicator, the output
voltage on pin 2 of the 74LS04 is probably around 4.0V. Using equation above
and assuming Vs = 4.0V and a VLED of 2.0V, calculate the current the R1 resistor
and the R3 resistor is allowing to flow through the LED. Use the values that you
measured for R1 and R3.
Note: Once you apply power to the 74LS04, the indicated voltage for channel 2 on the
power supply may not be at 0V any longer. Even though you set it for 0V in step 5
above, the 74LS04's input may drag the voltage up a bit when it is turned on. You can
ignore this in the steps below. Just record the value you set the power supply to even
though it may show a different value on the display.
The DMM should show a voltage of between 4 and 5 volts. Since you are putting a
logical 0 on the input of the inverter, the output is in the logical one state which for this
type of IC is a voltage above 4 volts.
Select channel 2 on the power supply and move the underline cursor until it is under the
tenths of a volt digit. Rotate the knob to increase the input voltage by 0.1 volts with each
click of knob and observe the inverter output voltage displayed on the DMM. Note that
as you increase the input voltage the output changes very little until the input reaches
the logic threshold, and then the output drops rapidly towards zero volts.
Question 8:
Show the measured output voltages for the input voltages listed in the table on
the question sheet.
Results
The answers to the above questions should be edited into the "Lab1_Answers.txt" file
and the file uploaded to the LMS web site by the due date. See the Assignments page
of the class web site for a link for uploading.
The three resistors can be returned to the lab assistant.
Reference
[1] USC, California, USA