Home / Software Lab 5 (Hello, Circuits)

Software Lab 05: The Great Divide

The questions below are due on Tuesday March 05, 2019; 08:25:00 PM.
 
Partners: You have not yet been assigned a partner for this lab.
You are not logged in.

If you are a current student, please Log In for full access to this page.

Files

This lab description is available as a PDF file here. The code distribution may be downloaded (in zip format) here, or by running athrun 6.01 getFiles from an Athena machine or a 6.01 lab laptop.

1) Getting Started

You should do this lab with a partner of your choosing. If you are having trouble finding a partner, please ask a staff member for help. You will need the following materials for today's lab. Resistors are available from the staff table at the front of the room. All other components should be available in a yellow bin at your table.

Proto Board Power Supply Two Clip Leads Wire Kit
Multimeter Resistors Wire Cutter

You will also need the code distribution for today's lab. You can get the code from the link above, or by running the following command on a lab laptop:

$ athrun 6.01 getFiles

2) Proto Boards

We will construct our circuits on a proto board (also known as a "breadboard"), which provides an array of holes into which wires and components can be inserted. Each hole is specified by a row letter and a column number. Certain rows and columns of the holes are electrically connected, providing a convenient way to connect components together. Specifically, each column of 5 holes in the center areas is connected internally, as indicated by two representative vertical boxes (above). If you insert one end of one component into one of the holes in a column of 5, and then insert one end of a separate component into a second hole in the same column of 5, these two components are now connected by an internal wire. Holes in the top row are connected internally, as are those in the second row, bottom row and next-to-bottom row, (indicated above by the long horizontal boxes). These rows are convenient for distributing power (we typically use +10+10V and ground). We will call these rows the power rail and the ground rail.

**Do not ever build your circuit on the protoboard that is attached to the top of the power supply!** Use a separate one instead. That way, if you get partway done and need to finish later, you can just save your protoboard until you come back into the lab.

3) Circuits Maximus

We will use Circuits Maximus (a.k.a. CMax) to design, layout, and simulate circuits before constructing them. You can start CMax by typing cmax at the command prompt of a terminal window:

$ cmax

Now, select File -> Open from the menu to open the file mystery.cmax. The figure above shows a screen-shot of the result.

In the space indicated in the handout, draw a schematic diagram for the circuit shown in the CMax window above.

Note the meter "probes", attached to the ground rail and to location J42. CMax gives you a positive and negative probe that you can put in any of the holes in the simulated protoboard. You can use them for debugging your circuit: when you run the CMax simulation, it will print out the voltage difference between the positive and negative probes.

Also, note the +10V and GND terminals, which represent our power supply as a voltage source. We will conventionally connect them to the long horizontal power rails, with blue for GND and red for +10V. However, you can move them any where you wish in CMax.

Predict the voltage that will be measured across the two nodes in the circuit where the probes are located:

4) Build It

Construct the mystery circuit in the previous section, as follows.
  • Set the power supply voltage to 10V10V by using a meter to measure the voltage between the power supply posts marked +15V+15V and GND (or "common", or a Ground Symbol). For information on how to use our multimeters, see: How To Use a Multimeter. Then turn off the power supply. You should always turn off the power supply when you build or modify a circuit.
  • Connect 10V10V and GND to the power rails of your proto board using alligator clip leads (see figure below, where the white wire is GND and the yellow wire is +10V+10V). Do not unscrew the terminals on the power supply while making these connections!
  • Lay out your circuit with physical parts. Make your physical layout look exactly like the CMax version. Note that CMax even tells you what color wires to use! Bend the wires on resistors and then trim their length so that the resistor has the same shape as an orange (or yellow) wire, as illustrated in the figure below:

Check Yourself 1:
Measure the voltage between location J42 and ground. Does the measured value match your predicted value in the previous section? Exactly?

5) Voltage Dividers

A voltage divider is a circuit that uses resistors to generate an output voltage that is a fixed fraction of the input voltage. The following figure illustrates a voltage divider as well as the resulting relation between its input voltage $V_ i$ and output voltage $V_ o$ :

If R1=R2R_1=R_2 , then Vo=Vi2\displaystyle V_ o={V_ i\over 2} .

If the current running through R1R_1 is II, what is the current running through R2R_2 in terms of II, R1R_1, and R2R_2?

What is the voltage drop across R1R_1, in terms of II and R1R_1?

What is the voltage drop across R2R_2, in terms of II and R2R_2?

If we were to replace R1R_1 and R2R_2 with a single resistor, what would its resistance be?

What is the current II in terms of ViV_i, R1R_1, and R2R_2?

What is the voltage drop across R1R_1, in terms of ViV_i, R1R_1 and R2R_2?

What is the voltage drop across R2R_2, in terms of ViV_i, R1R_1 and R2R_2?

5.1) Dividing dividers

Having in mind the ideas of modularity and abstraction, we might consider using a voltage divider to create 5V5V, and then using another voltage divider to cut that voltage in half again to make a voltage Vo=2.5VV_o = 2.5V. Consider the following design, where all of the resistors have 1kΩ1k\Omega resistance:

5.2) Layout

Lay out this circuit using CMax (documentation for CMax is available under the "Reference Materials" tab of the course web site). Try to make your layout simple and clear. Use short wires oriented horizontally or vertically where possible. Try to avoid crossing wires, and do not run wires across other components! You will be using your layout as a guide to constructing a physical circuit. Jumbled wires are more difficult to construct correctly, and they are extremely difficult to debug!

Be sure to include probes to measure VoV_o.

Upload your CMax file below to verify that your circuit is implemented correctly:

A Python Error Occurred:

Error on line 4 of question tag.
    csq_npoints = 4

ModuleNotFoundError: No module named 'simulate'

5.3) Build It

Construct your circuit with physical parts. Make your physical layout look exactly like the CMax version. Note that CMax even tells you what color wires to use! Trim the resistor leads so that the resistors lay flat against the proto board.

Measure VoV_o with your multimeter. What is the measured value of VoV_o? Enter your answer in Volts, accurate to within 0.1 Volts:
Calculate VoV_o using circuit theory. What is your calculated value of VoV_o? Enter your answer in Volts, accurate to within 10610^{-6} Volts:

Check Yourself 2:
Compare your calculation and measurement. Do they match?

Check Yourself 3:
Make sure you understand what is happening before moving on. Ask a staff member for help if you at all are unsure.

Check Yourself 4:
Consider two voltage dividers that each produce outputs equal to half of their inputs. If the two dividers are connected as shown, will that circuit produce a voltage that is a quarter of the input? Explain.

6) Another Divider

Now, design a voltage divider circuit with only two resistors (of any resistance value) and a 10V10V supply that produces voltage Vo=2.5VV_o = 2.5V? Lay out this circuit using CMax. Be sure to include probes to measure the desired voltage.

Upload your CMax file below to verify that your circuit is implemented correctly:

A Python Error Occurred:

Error on line 4 of question tag.
    csq_npoints = 4

ModuleNotFoundError: No module named 'simulate'

6.1) Build It

Construct your circuit with physical parts. Make your physical layout look exactly like the CMax version.

Measure VoV_o with your multimeter. What is the measured value of VoV_o? Enter your answer in Volts, accurate to within 0.1 Volts:

Check Yourself 5:
Compare your calculation and measurement. Do they match?

Check Yourself 6:
Make sure you understand what is happening before moving on. Ask a staff member for help if you at all are unsure.

7) Clean Up

**Turn off your multimeter and power supply, and disassemble your board. Discard all resistors and bent wires. Put op-amps, pots, connectors, and unbent wires back in appropriate places.**