EE109 – Fall 2022 Introduction to Embedded Systems

EE109 – Fall 2022: Introduction to Embedded Systems

Lab 1 – Spring 2022 (Remote)

Electronic Circuits


The primary purpose of this lab assignment is to give you some experience assembling basic electronic circuits on the breadboard from your project box. Various circuits will be constructed and measurements will be made to confirm some of the fundamental laws that apply to electronic circuits.

The information on this web page is for people who are doing the lab remotely, not in the VHE 205 classroom. If instead you are able to come to VHE 205, please follow the instruction on this web page.

A paper work sheet is provided in VHE 205 for recording answers to the questions below that will be turned in using the Lab1_Answers.txt file. To download a copy of the work sheet, click here.

Equipment Needed

Students doing the EE109 labs remotely and do not have access to the test equipment in VHE 205 are required to either purchase a digital multimeter (DMM) or have access to one in some other way. For more information on shopping for a DMM, please see our DMM web page.

Create a Lab 1 Folder

In Lab 0 you learned how to create a new folder for a project, and now we want to do the same for Lab 1. In your "ee109" folder create a new folder called "lab1".

$ cd Desktop
$ cd ee109
$ mkdir lab1

The "ee109" folder should now contain a "lab0" folder and a "lab1" folder.

From the class web site, download the file As was done in Lab 0, extract the contents and place them in the "lab1" folder. You should end up with one file in the "lab1" folder: Lab1_Answers.txt.

At several places in this assignment you will be asked to either calculate a voltage, current or resistance value, or to use test equipment to measures these. Your answers should be edited into the file Lab1_Answers.txt.

Important: The Lab1_Answers.txt is a plain text file so it should be edited in a text editor like you use for editing your C source code. Don't edit it in a word processor. Also don't edit it on either Windows or Macs by simply double clicking on the Lab1_Answers.txt file since this may open up the file in the system's default editor and those can sometime mess up a plain text file.

Submission via Vocareum

We will submit all of our labs via a website called Vocareum. This site allows us to not only grade your code but to mark-up your code with suggestions and improvements to consider. All students will be added to the Vocareum service.

If you have already had a class that used Vocareum, you will not get a notification but instead can just login to and under your classes (or potentially the Home icon) you will now see EE 109 available. If this is the first time you've had a class at USC that uses you should receive an email invitation to sign up (create your account). Please do so! (Check your Clutter/Junk email if you don't see the invitation)

When you login to Vocareum you should be able to see a Lab 1. By selecting it you should be able to upload your Lab1_Answers.txt file. Be sure to hit Submit and not just save.

Your answers must be uploaded to Vocareum by the lab due date.

The Breadboards (Background)

Video Introduction - Protoboards

The solderless breadboard included in your project kit allow you to quickly build and modify a circuit by inserting the components and wires into the holes of the breadboard. Please get the breadboard from your project kit and take a look at it. In the center section of the board are around 60 sets of five holes on each side of the slot that runs down the center of the board. In the picture below the center of the board is running horizontally so the sets of five holes are actually above and below the center. Wires are inserted into these holes and inside the breadboard metal contacts at each hole will touch the wires and make an electrical connection. The metal contacts for each of the five holes in a group are connected together inside the breadboard as shown in the connection diagram on the right below. When you need to connect components and wires together, plug all of them into one set of the five holes and they will be electrically connected.

It's very important to understand that wires that are to be connected together must be plugged into holes in the same group of 5 holes. If you plug a wire into one group, and then another wire into a different group, they are not connected together electrically. If you need more than five things connected together, use wire to connect other sets of five holes to the first set to expand the number of connection points.

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.

Providing Power to the Circuit

Video Introduction - Power and Digital Multimeters

Electronic circuits require a power source in order to operate. When working in an electronics laboratory, engineers usually have a power supply unit on their work bench that can generate a number of required voltages. A typical lab power supply that can generate three different voltages simultaneously is shown below.

While having a lab power supply is useful, for simple electronic experiments you can provide the necessary power from other sources. For this lab assignment we will use the Arduino microcontroller board from the project kit as a small power supply to generate the needed voltage.

Examine the Arduino board from your project kit. Along one of the black plastic connectors with holes in it you will see one hole is marked "5V" and two are marked "GND" as shown below.

Once the Arduino is connected to a computer with the USB cable, we can use these to provide the +5 Volts and ground connection to the circuit built on the breadboard. The Arduino can not provide nearly as much power as the bench power supply shown above, but it will be enough for our lab assignments.

Connections can be made from the Arduino to the breadboard using the wire provided in the kit and pushing the wire down into the hole in black connector.

  1. Cut off a piece of black wire about 3 or 4 inches long and use the wire strippers to strip about 1/4" of insulation from each end.
  2. Insert one end of the wire into one of the GND holes described above.
  3. Cut off a similar length of red wire, strip the insulation of both ends and insert one end into the "5V" hole of the Arduino.
  4. Make sure the other ends of the two wire are not touching.
  5. Plug the USB cable into your computer and into the Arduino

In the next section we will check that 5 volts is being produced by the Arduino.

Digital Multimeter (Background + Lab Tasks)

Students are required to either purchase a digital multimeter (DMM) or have access to one in some other way. For more information on shopping for a DMM, please see our DMM web page.

The digital multimeter (DMM) is a combination of several instruments and can be used to make a variety of measurements on electrical signals. At a minimum the DMM will have the following basic capabilities.

Depending on how complex the DMM is it may also have other measuring features.

In EE109 we will only be making DC voltage and resistance measurement so pretty much any DMM should be able to do that. Please take some time to familiarize youself with whatever DMM you have obtained before continuing with this lab. If you have questions about how your DMM operates please see the instructor or teaching assistants during their office hours.

The first thing we want to do with the DMM is check that the Arduino is actually producing 5 volts to provide power to the circuit we will be building. To set up the DMM for this lab experiment, perform the following steps. These may vary slightly depending on the model of DMM you are using.

  1. Turn on the DMM. The LCD display should show some digits, probably zeros, and maybe some other information about the settings in effect on the DMM.
  2. Set the DMM to measure DC Volts. Most meters have separate settings for DC volts and AC volts. AC volts may be indicated with small sine wave icon (∼) near a "V" for volts. DC volts may be indicated with a icon that has a solid line above a dashed line. Make sure you are on the DC volts setting.
  3. The DMM should have come with a pair of test leads, usually red and black, to make connections to the circuit under test. One end of the lead has a plug that is inserted into the DMM, usually called "banana plug" due to it's shape. The black test lead should be inserted in the "Common" or "COM" banana jack on the DMM. There may be two or three other banana jacks with red receptacles. The red test lead should be plugged into the one that has a "V" by it and perhaps a few other symbols like a "Ω".
  4. Connect the black test lead from the DMM to the black wire coming from the Arduino. If your DMM came with some clips to go on the ends of test lead you can use those to make the connection. Otherwise you will have to hold the wire to the metal part of the test lead with your fingers. Don't worry about touching the wires with your fingers since the Arduino doesn't produce enough electrical power to be dangerous.
  5. Do the same with red test lead, connecting it to the red wire coming from the "5V" on the Arduino.
  6. The multimeter should now be showing the voltage it is measuring from the power supply (the Arduino). It probably isn't exactly 5.00 Volts but should be close.
Question 1:
What voltage should be coming from the power supply (the Arduino) and what voltage did the DMM measure?

Once you have recorded the voltage on the answer sheet, turn off the Arduino by disconnecting the USB cable either at the Arduino or at the computer.

Resistor Color Code (Background + Lab Tasks)

Video Introduction - Resistors

In the bag of electronic parts in the project box you should find a some small resistors. The resistors have a cylindrical body with wire leads coming out of each end. The amount of resistance each has to the flow of electric current is indicated by the color bands around the body of the resistor. In this experiment, we will determine the resistance marked on each resistor and then use the DMM to measure the actual resistance of the resistor.

Resistance values are given in Ohms using a Greek omega character, Ω. For larger values of resistance it can be given in kilo-ohms (kΩ), or mega-ohms (MΩ). The body of the resistor is marked with a series of four color bands (see below) that are used to identify the resistance value. The parts bag should contain two resistors of each of three different resistances (6 total).

Select three resistors from the six provided that have three different sets of colors. To determine the resistor value from the color bands, first figure out which way to read the color bands. One of the bands at the end of the resistor body will be either a silver or gold color indicating the precision of the resistance value (silver = 10%, gold = 5%). The three bands at the other end indicate the value. Starting at the end away from the gold or silver band, the first and second bands are the first and second digits of the resistance value as given by the color codes shown below. The third band is the number of zeros that follow the first two digits. For example, a resistor with yellow, violet and red bands is a 4700 ohm resistor, which we write as 4700Ω or 4.7kΩ.

Make sure you have three resistors with different values (color bands are different) and then do the following:

  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 than 1500Ω or 1.5kΩ.

    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 in the Lab1_Answers.txt file.

  2. On your DMM, set it for measuring resistance. On many meters this is done by turning a knob so it points to a "Ω" symbol, or by pressing a button with the "Ω" symbol.

For each of the three resistors, do the following two steps and record your results on the answer sheet.

  1. Connect the red test lead to one of the resistor wires and the black lead to the other. Resistors are "non-polarized" which means it doesn't make any difference which wire is connected to the red or black test lead. As before you do this by just pressing the tip of the test lead to the wire with your fingers.
  2. Once both test leads are touching the resistor wires, the DMM should display the resistance in either ohms (Ω), kilo-ohms (kΩ), or mega-ohms (MΩ). 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. In the picture below, the DMM is measuring the resistance of a 3.3kΩ resistor, which it shows to actually have a value of be 3.27kΩ.

    Important: Make sure you note what units of resistance are being shown on the meter. For example, if you are measuring a 470Ω resistor, the meter may display 0.470 kΩ. Remember that 0.47 kilohms is the same as 470 Ω.

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)?

Schematic Diagrams (Background)

Electronic circuits are drawn using a schematic diagram. These show what types of components are in the circuit and their values, and also shows the interconnections between all the components. With a schematic of a circuit, an engineer has all the information needed to wire up the circuit in the way intended by the person who designed it. However it's important to remember that a schematic is not a diagram of how the components are physically arranged. The components can be laid out physically in numerous ways.

When assembling a circuit on a breadboard, examine the schematic and look for the connection points where multiple components must be tied together. For example, the schematic diagram below on the left shows four components of some type that are connected together at a common connection point. The output of component A is connected to inputs of three other components (B, C and D). Therefore on the breadboard you would need to have a point where the four wires coming from the components are electrically connected together. By plugging the four wires from these devices into one of the sets of five holes that are connected together as shown on the right the connection is established. Throughout a circuit each connection point of two more signals will need to use a separate strip of the five breadboard holes to connect them together. As mentioned above, if a point in the circuit requires that more that five signals be connected together, simply use a piece of wire to connect two multiple 5-hole strips together effectively building a larger connection point.

Resistors in Series (Background + Lab Tasks)

Video Introduction - Voltage Dividers

Using the resistor with the smallest resistance as R1, and the one with the middle resistance as R2, build the circuit shown below on the left with the two resistors in series. Resistors are not polarized meaning that they can be connected in a circuit in either orientation. The figure on the left shows how the resistors are placed on the breadboard. The resistor color bands shown are only a representation and the ones on your resistors will likely be different.

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 what the voltage should be across each of the two resistors. Hint: V1 and V2 should add up to Vs = 5V.

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. Connect the red and black wires from the Arduino Uno's "5V" and "GND" 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.
  2. Connect the Arduino to the USB cable to provide power if not done so already.
  3. Set the DMM to measure DC volts and measure the voltage drop across each resistor. One test lead should touch the resistor lead on one side of the resistor, the other touches the lead on the other side. If you make the connections backwards, your DMM will just show a negative voltage. 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?

Switches for Inputs (Background + Lab Tasks)

Video Introduction - Buttons

A common input device for our embedded circuits is a simple pushbutton switch. The button consists of two electrical contacts, and when the button is pressed it connects them together. When the button is not pressed, the two contacts can have different voltages on them. When the button is pressed, whatever voltage is present on one contact is now on the other contact. We will use the switches as inputs to the Arduino in a way that allows the Arduino's program to sense whether the button has been pressed or not, and take different actions accordingly.

  1. From the parts bag in your project box 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. Cut off a small piece of wire 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 below. 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 Arduino's 5V and GND wires to the breadboard with the black lead going to the ground bus on the breadboard and the red lead to the power bus as shown.
  6. Strip the ends of another short wire and put one end in the same ground bus as the wire coming from the Arduino's GND. If possible clip the black test lead from the multimeter to the other end. If your DMM test leads don't have clips you'll have to hold it to the wire when the measurement is made below.
  7. Take another wire and insert one end in the same group of holes as the other switch contact. This is the red wire shown below. The red test lead can be connected to this wire. Note that there should be one column of unused holes between the button's ground connection and the wire going to the red DMM lead as shown in the figure.

  8. Set the DMM to measure DC Volts.
  9. Connect the USB cable to the Arduino so it's now supply power to the circuit.
  10. 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.
  11. 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 test lead 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 Arduino power off and then make the changes shown below.

  1. Remove the wire going to 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 wire to 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.

Light Emitting Diodes (LEDs) (Background + Lab Tasks)

Video Introduction - LEDs

LEDs are hooked up in circuits in a similar fashion as resistors in that they both have two leads and current goes in one and out the other. However unlike a resistor the two leads are different. One is the "anode" and the other is the "cathode". Current can flow through the LED from the anode to the cathode but not the other way. When a voltage is applied across the LED causing current to flow from the anode to the cathode the LED lights up.

LEDs come in several package shapes and sizes. For this lab we are using LEDs in a 5mm round case and your parts bag should contain three of different colors (red, green and yellow). These have two leads on the bottom and the anode lead is slightly longer than the cathode. In addition there is a flat spot on one side of the plastic case to indicate the cathode. Get one of the LED from the parts bag and examine it. Make sure you can identify which lead is the anode (longer lead, round side of case) and which is the cathode (shorter lead, flat side of case).

LEDs also respond to a voltage across it differently from a resistor. Unlike a resistor where the voltage across it goes up linearly with the amount of current passing through it, an LED has the property that the voltage across the LED is always about the same (around 2.0 volts) for the typical amount of current needed to light up the LED. However, if the LED is just connected to a voltage source by itself, as shown in the circuit on the left below, the LED will allow as much current to pass through it as the voltage source can supply. This can result in way too much current going through the LED and may cause it to burn out. To prevent this we always use a resistor in series with the LED, as shown in the circuit on the left below, to limit the amount of current passing through the LED to a reasonable value.

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 on the left, 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

This shows that we can adjust the amount of current passing through the LED by changing the value of the resistor. Note that the voltage source powering the LED does not have to be a power supply as shown in the schematic above on the left. The LED can be powered by the output of a gate as shown above on the right. This is the way we typically use LEDs with them connected to either a gate output or to an output from a microcontroller such as the Arduino.

Logic Circuits (Background + Lab Tasks)

Video Introduction - Inverters

Now that we have an input device that can signal two different states, and an output device to use as an indicator, let's use some digital logic to hook them together and make them do something.

We want to make the switch turn the LED on when the switch is pressed and off when it's not pressed. In the experiment above when the switch was pressed it produced a low voltage (logical zero), however the LED lit up when a high voltage (logical one) was present to cause current to flow through it. To make the circuit operate as desired, we need a digital circuit that causes an input of a one to produce a output of zero, and vice versa. As we will see in later classes, the action of changing a signal from high to low or low to high is known as a logical inversion.

For the inverter operation we'll use a 74HCT04 integrated circuit which in included in your parts bag. Note: It can be difficult sometimes to read the part number on the top of the integrated circuit, but one of the three IC's should say 74HCT04 on top, perhaps with some other numbers and letters there also.

The 74HCT04 contains six logical inverters that each change an input of zero to a one, and a one to a zero. The IC has 14 pins on it, numbered from 1 to 14. Use the diagram below to locate on the IC the mark or notch that identifies the location of pin 1. Once you have identified pin 1, install the 74HCT04 on your breadboard as shown so that the chip straddles the slot down the center of he board and is oriented so pin 1 is on the side of the slot closest to the blue line. Make sure the 74HCT04 is seated firmly into the holes of the breadboard otherwise its pins will not make solid contact with the breadboard connections.

Remove the wire going to the DMM test leads and follow the schematic diagram and picture above to make the following wiring connections.

  1. Connect pin 14 of the 74HCT04 to the red power bus.
  2. Connect pin 7 of the 74HCT04 to the blue ground bus.
  3. Connect the input of the inverter (pin 1) to the connection block with the R2 resistor and the switch. This is the green wire in the picture above.
  4. Insert one lead of resistor R1 (the lowest resistance value) into a hole in an unused connection block, and the other end of the resistor R1 goes into a hole in the blue bus (Ground). This will be the LED's current limiting resistor.
  5. Install the LED so the cathode (shorter lead, flat side of case) is in the connection block with resistor R1, and the anode (longer lead, round side of case) is in another available connection block. Don't worry if you get it backwards. The LED is not going to burn up, it just won't light up like it should. If that happens, pull it out and try it the other way.
  6. Connect the output of the inverter (pin 2) to the anode of the LED (round side). This is the yellow wire in the picture above.

Connect the Arduino to the USB port to apply power to the circuit 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.

  1. 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 5 times higher than R1, it allows much less current to flow through the LED and it should be noticeably dimmer.

Measuring Current

In the previous section you were asked to observe how changing the resistor affected the current flowing through the LED and this resulted in the brightness changing. Now we want to use the DMM to measure the current passing through the LED. We'll do this two ways, first by measuring the voltage across the resistor and using Ohm's Law to calculate the current, and then by measuring the current directly with the DMM.

First use the DMM in DC voltage mode to measure the voltage across the resistor. The diagram below shows how the meter should be connected.

  1. Set the DMM to measure DC volts
  2. Connect the positive (red) lead from the DMM to the side of the resistor closest to the volage source, which in this case is the output of the 74HCT04 inverter.
  3. Connect the negative (black) lead from the DMM to the side of the resistor closest to the ground on the bread board.
  4. Press the button to light up the LED and record the voltage shown on the DMM, and which resistor, R1 and R3, this was for.
  5. Swap the resistor you were using (either R1 or R3) for the other one and repeat the measurement.
Question 7:

Using the values you just measured for the voltages across R1 or R3, and the values you measured previously for those resistor values, use Ohm's Law to calculate the current that was passing through the resistors in both cases.

Measuring Current with the DMM

Video Introduction - Measuring Current with the DMM

Now we'll measure the current directly with the meter rather than by measuring voltage and using Ohm's Law. Current measurement are done differently than voltage measurements since the current has to pass through the DMM to be measured. In the schematic below note how we have broken the connection between the LED and the resistor and inserted the meter in series with them so the current that passes throught the LED and the resistor also has to go through the meter.

  1. If your DMM is still connected to the circuit for measure voltage disconnect both leads of the meter from the circuit.
  2. On the meter plug the red lead into the the banana jack that is marked for "mA" or "μA" as shown above. Most meters have a separate jack for measuring current but a few just use the "V" jack. Whichever way your meter works, you need to have the red lead plugged into the "mA", "μA" jack. The black lead should remain plugged into the "COM" jack.
  3. Adjust the meter to measure DC current by turning the control knob to a position marked "mA". Some meters have two "mA" positions, one for DC with a solid line above a dashed line, and the other for AC with a small sine wave icon (∼). Other meters only have one "mA" position and you then press a button on the meter to select DC or AC current measurements which is indicated on the display.
  4. Disconnect the resistor from the LED as shown in the schematic above.
  5. Connect the red lead from the DMM to the LED, and the black lead to the resistor as shown.
  6. Press the button to light up the LED. If the connection was done properly the LED should light up and the DMM should show how much current was flowing in the circuit.
  7. Record the current shown on the DMM, and which resistor, R1 and R3, this was for.
  8. Swap the resistor you were using (either R1 or R3) for the other one and repeat the measurement.
Question 8:

What were the values that you measured with the DMM in current mode for the current flowing through the LED for both R1 or R3? The values should be close to what you found from measuring the voltages and using Ohm's Law.

Don't Take the Circuit Apart!

The circuit you just built with the button, inverter and LED will be used again in Lab 2. Leave all the components on the breadboard and just keep it in your lab kit until the next assignment.

Whoops! It doesn't seem to be working. Now what do I do?

If a circuit you have built isn't working, then it's time to do some debugging. When a circuit doesn't work it's probably only one part that isn't functioning correctly but that makes the whole circuit not work right. When trying to debug a circuit it's necessary to isolate where the problem is by testing separate parts of the circuit to see if they work or not. Your goal is to figure out what is working and what isn't, so you can isolate the problem to a subset of the whole circuit. Here are some debugging tips.


The answers to the above questions should be edited into the "Lab1_Answers.txt" file and the file uploaded to the Vocareum web site by the due date. See the Assignments page of the class web site for a link for uploading.

Please make sure to save all the parts used in this lab in your project box. These will be needed for labs throughout the rest of the semester. We suggest also saving all the pieces of wire you cut and stripped since those will be useful in later labs.

Review Questions

Answer the following questions in your "Lab1_Answers.txt".

  1. Given the digital circuit you built with the button, inverter and LED, suppose as you test it the output LED is always OFF regardless of the button position. For each of the following possible explanations, write a sentence that explains why that issue would cause the LED to always be off.
    1. VDD was not connected to the IC chips.
    2. The ground connection for the button was not connected correctly.
    3. The LED was plugged in backwards.
  2. Given two resistors RLO and RHI whose resistance values are such that RLO < RHI
    1. If they are connected in series giving a series effective resistance of REff, which of the following is true?
      • REff < RLO
      • RLO < REff < RHI
      • RHI < REff
    2. If they are connected in parallel, giving a parallel effective resistance of REff, which of the following is true?
      • REff < RLO
      • RLO < REff < RHI
      • RHI < REff
  3. True or False: Ohm's Law applies to both LEDs and resistors.