Tuesday, March 24, 2015

17-Mar-2015: Time-varying Signals/A BJT Curve Tracer

Time-varying Signals

PURPOSE

The purpose of this lab was to examine the relationship between the input and output voltages (Vin and Vout) for time-varying signals.

PRE-LAB

Figure 1: Relationship between Vin and Vout
Figure 2: Graphs of Vin and Vout

Prior to commencing with our lab, we drew our predictions for the shapes of the Vin and Vout graphs based on the given criteria. We were able to do this by using the equation shown in Figure 1 and assuming that R1 and R2 were equal. The resulting graphs are shown in Figure 2.

PROCEDURES

Figure 3: Input sinusoidal graph
Figure 4: Output sinusoidal graph
Figure 5: Input triangular graph
Figure 6: Output triangular graph
Figure 7: Input square graph
Figure 8: Output square graph

Following the pre-lab, we implemented our set-up and captured the resulting input and output voltage graphs using the WaveGen instrument. We repeated this process for three different graph shapes: sinusoidal, triangular, and square. These graphs are displayed above in Figures 3 through 8 (the input graph is shown first and then the output for each case).

CONCLUSION

According to the results, this experiment was successful. This can be seen by observing the frequency and amplitude of the Vout graphs. For example, the output square graph has a frequency of 1.00001 kHz and an amplitude of 996.8 mV. These values are considerably close to the expected values of 1 kHz and 1 V. In fact, the percent error for these values are only .001 and .32 percent, respectively.

A BJT Curve Tracer

PURPOSE

The purpose of this experiment was to observe the relationship between the base-emitter voltage (Vbe) and collector current (Ic) by utilizing the WaveGen instrument.

PROCEDURES


We began this experiment by setting up our circuit as shown in Figure 1. This set-up consisted of a 2N3904 NPN transistor, a 100 Ω resistor, a 100 kΩ, and some wires to connect the elements. Before proceeding with the experiment, we measured the actual resistances of these resistors as shown in Figures 2 and 3.


Figure 4: Stair-step function graph
Figure 5: Triangular function graph

Next, we generated two curves: a stair-step wave and a triangular wave. These graphs are shown in Figures 4 and 5
Figure 6: Collector current (Ic) vs base-emitter voltage (Vbe)
Figure 7: Scaled graph of Ic vs Vbe

After plotting the previous graphs, we constructed another with collector current with respect to base-emitter voltage of the transistor. This graph is shown in Figure 6. Then, we fit the graph to a different scale to get a better view of what was happening. The resulting graph is illustrated in Figure 7 above.

CONCLUSION

This experiment gave us a better understanding of the relationship between the base-emitter voltage and collector current. This allowed us achieve a deeper understanding of how BJT transistors function.

Monday, March 16, 2015

12-Mar-2015: Mesh analysis

Today, we further developed our understanding of mesh analysis. We applied this newly acquired knowledge by solving for the current across a resistor and the voltage across another. Then, we set up a circuit to compare the theoretical and experimental values.

(Figure 1)
We began the day by taking a quiz during which we solved for i1 and i using mesh analysis (Figure 1). We found i1 by solving for the system of equations that we got from applying KVL across each mesh, or independent loop. From this system of equation, we also found i2 and i3. We solved for i from these values by subtracting i2 from i3. We did this because we saw that i3 went in the same direction as i, while i2 went in the opposite direction.

(Figure 2)
After the quiz, we learned about supermeshes. A supermesh is composed of two meshes that have a common current source. Then, we learned about diodes, which are semiconductor devices that are made up of (to be continued...) For more information on supermeshes, diodes, and transistors, refer to the Day 6 lecture posted on profmason.com. After the lecture, we did a lab in which we implemented the concepts that we studied in class to a real-life situation. Before setting up the circuit, we first calculated I1 and V1 by utilizing mesh analysis, shown on the left side of Figure 2. We then used a multimeter to measure the actual resistance values of the 1.8 Ω, 22 Ω, 6.8 Ω, and 4.7 Ω resistors, respectively, shown on the right side of Figure 2.

(Figure 3)
Next, we set up the circuit on a breadboard. The completed circuit is shown above (Figure 3). Note that we labeled the two voltage sources and the ground cable above the circuit in terms of the color of the wires and the color of the clips, respectively.

(Figure 4)
(Figure 5)

After completing the circuit, we turned on the voltage sources and measured the current running through the 1.8 Ω resistor and the voltage across the 22 Ω resistor. Figure 4 shows us measuring the current across 1.8 Ω resistor, while Figure 5 lists the experimental and theoretical voltage values across the 22 Ω resistor, respectively.

10-Mar-2015: Nodal analysis

Today, we continued our studies on nodal analysis. We employed what we learned about this topic by predicting the voltages across two different resistors and comparing them to the values that we found experimentally. We were also introduced to the concept of mesh analysis.

PRE-LAB

Figure 1: Application of nodal analysis

To begin our process, we calculated V1 and V2 by applying nodal analysis to the circuit shown in Figure 1. Since there are multiple variables called V1 and V2 in our work, the V1 and V2 we are referring to was circled in black.

PROCEDURES

Figure 2: Set-up of our circuit

After finding the theoretical values for V1 and V2, we constructed the circuit as shown in Figure 2. This set-up consisted of a 6.8 kΩ resistor, a 10 kΩ resistor, a 22 kΩ resistor, two 5 V voltage sources, and a 3 V voltage source.

Figure 3: Measured resistances

Next, we measured the actual resistances of each resistor. The measured values are shown in Figure 3.

Figure 4: Measured voltages

Finally, we turned on the voltage sources and measured the voltages across the 6.8 kΩ resistor and the 22 kΩ resistor. We labeled the voltage across the 6.8 kΩ resistor as V1 and the voltage across the 22 kΩ resistor as V2. The measured values are shown in Figure 4.

CONCLUSION

We found that our expected values and measured values were very different. In fact, the percent error for V1 was 454 percent. The reason for this enormous error can most likely be attributed to the fact that we carried out our calculations incorrectly. Another factor could have been that the set-up of our circuit was wrong.

Even though we were not able to find measured values that were close to the expected values, we still gained valuable experience in applying our knowledge about nodal analysis to an actual circuit.

Tuesday, March 10, 2015

5-Mar-2015: Temperature Measurement System

QUIZ


PURPOSE

The purpose of this experiment was to build our skills in constructing a design and implementing it in an experiment.

PRE-LAB

Figure 1: Graph of the thermistor's resistance vs temperature

We began this experiment by looking at the graph in Figure 1. From this examining this graph, we estimated that the resistance of the thermistor was around 11 kΩ at 25°C and 7 kΩ at 37°C. We used these values and voltage division to calculate the theoretical values of Vout, shown on the top side of the red line in Figure 2 (click to enlarge).

Figure 2: Mathematical process of finding the desire R value

The resultant value was in terms of R, which was the value of the resistor that we had to select for our design. To decide which value of R to use, we had to consider the constraint of this experiment: Vout has to increase by a minimum of 0.5 V with the temperature increase. Therefore, we set the difference of the voltages at 25°C and 37°C equal to 0.5 V, and solved for R. This process is shown in the bottom half of Figure 2. When we solved for the quadratic equation shown in Figure 2 (circled in blue), we got two values for R: 17.633 kΩ and 4.367 kΩ. Since we did not have resistors that were close 17.633 kΩ, we decided to go with a 4.7 kΩ resistor in our design as it was relatively close to 4.367 kΩ. The measured value of the resistor is shown below in Figure 3.

Figure 3: Actual fixed resistance value

PROCEDURES

Figure 4: Measured resistance values of the thermistor at ~25°C and ~37°C, respectively

Before implementing our design, we measured the actual resistance values of the thermistor used in our setup. We first measured its resistance at room temperature, which we assumed to be around 25°C. Then, we measured its value after holding the thermistor in our hands until the number displayed on the multimeter stabilized. We believed that this was when the thermistor had reached the same temperature as our hands, which we approximated to be 37°C. The measured values are shown in Figure 4 above. The percent difference between these values and the theoretical values calculated in the pre-lab was 1.36 percent and 1.29 percent for the 25°C and 37°C resistances, respectively. Since the percent differences were not very large, we believed that the system was going to be effective in achieving our goal.

Figure 5: Setup of our circuit

After measuring the resistances of the thermistor, we set up the circuit as shown above in Figure 5. In Figure 5, the voltage source of the circuit is illustrated with the red circles and the multimeter used to measure Vout is marked with green ones. Then, we applied 5 V to the circuit and measured Vout for the two different temperatures. First, we measured Vout at room temperature. The measured value is shown below in Figure 6. Next, we held the thermistor in our hands to warm it up to approximately 37 °C. The resulting voltage is shown in Figure 7.

Figure 7: Vout at 25°C
Figure 8: Vout at 37°C

Percent error = |expected value - measured value|/expected value x 100%

Since the difference between these values was 0.53 V, our design met the minimum constraints. In fact, the percent error of this value was 6 percent. Considering the limitations that we had, we believed that the experiment was successful.

POST-LAB


After performing the lab, we did a post-lab exercise in which we attempted to design an experiment in which the output voltage increased by 0.1 V per °C change. Since the overall temperature increase was 12°C, we concluded that our design had to result in a voltage increase of 1.2 V. However, we when we tried to solve for R, we got imaginary values. Therefore, we were unable to come up with a design that met the design specifications. Our process is illustrated in Figure 8.

CONCLUSION

In this experiment, we learned how to come up with a design for a circuit and implement the design successfully. We also acquired valuable experience in dealing with variable resistors. In this particular case, we saw how a certain type of variable resistor reacted to temperature changes.

The design that we implemented in this experiment was successful in meeting the minimum constraints. The results could have been even more accurate if we had been exact in getting the thermistor to be exactly 25°C and 37°C.

3-Mar-2015: Dusk-to-Dawn Light

DEMONSTRATION


At the beginning of class, we had a demonstration in which a current was applied across a hot dog with LEDs connected to it. Some were positioned perpendicularly from the hot dog, while others were positioned parallel to it. The ones that were positioned parallel to the hot dog lit up from the current, while the perpendicular LEDs did not. This is because the ones that were parallel with the hot dog were actually in series with the hot dog/circuit, while the perpendicular ones were parallel to the hot dog/circuit. As a result, the parallel LEDs received the current, while the perpendicular ones did not (at least not enough).

PURPOSE

The purpose of this experiment was to become familiar a type of variable resistor known as the photocell and a current-controlled current source called a bipolar junction transistor (BJT).

PRE-LAB

Figure 1: Mathematical process for pre-lab

Before starting our experiment, we solved for the theoretical values of the voltage across the photocell (Vb). We did this by applying KVL across the circuit displayed within the red circle in Figure 1. Also included in Figure 1 is the mathematical process for solving for Vb when we assumed the resistance of the photocell to be 5kΩ. We found this value to be 1.667. We followed the same process to solve for Vb when the resistance of the photocell was assumed to be 20 kΩ. We found this value to be 3.333 V.

PROCEDURES

After solving for the theoretical values in the pre-lab, we set up the circuit as shown below in Figure 2. The photocell is labeled with the red circle, the BJT with the green circle, the fixed resistor with the purple circle, and the LED with the blue. In addition, the black and red clips represent the 5 V voltage source.

Figure 2: Set-up of our circuit consisting of a photocell, a BJT, a fixed resistor,
an LED, and a voltage source

Next, we applied 5 V to the circuit and measured the voltage across the photocell and the LED when the photocell was allowed to receive light and when it was not. In the pre-lab, we assumed that the resistance of the photocell was 20 kΩ when the light was on and 5 kΩ when it was off. The measured values are shown below in Figure 3.

Figure 3: Measured voltages across the photocell and the LED, respectively

When the photocell was exposed to light, the LED remained off. However, when the light was cut off from the photocell, the LED lit up. This is due to the fact that the photocell's resistance is much higher when it is exposed to light. As a result, the photocell behaves like a on/off switch that is regulated by light. A video of this process is shown below.


CONCLUSION

In this experiment, we became familiar with two circuit elements: the BJT and the photocell. This will be a valuable lesson because these are commonly used in circuits. Moreover, this experiment allowed us to apply what we learned about KVL and voltage division.

Furthermore, we compared these measured values to the values that we found in the pre-lab by calculating the percent difference between the expected values and measured values. We found the percent difference to be 10.6 percent for when the light was off and 94.0 percent when the light was on. We noticed that the percent difference for when the light was on was incredibly high. We believe this may be due to the fact that resistance of the photocell was not actually 20 kΩ when it was exposed to light. It also could have been due to a mathematical error in our calculations.





FreeMat Exercises







Wednesday, March 4, 2015

26-Feb-2015: Resistors and Ohms Law - Voltage-Current Characteristics

Resistors and Ohms Law - Voltage-Current Characteristics

(Figure 2)
(Figure 1)

Schematics of circuit (Figure 1).
Actual set-up of circuit (Figure 2).
This simple circuit consisted of a voltage source (Analog 
Discovery) connected to a 100 Ω resistor.
     

 
   


                                         
(Figure 3)

Figure 3 to the right shows the measured resistance of the resistor, which we found to be 97.9 Ω. This value will be later used to be compared to the slope of the current versus voltage graph.



(Figure 4)



Figure 4 is a table of the gathered data. Our group varied the voltage source between 0 V and 1.8 V in increments of 0.2 V. We measured the current running through the resistor at each voltage value with a digital multimeter. We will take these numbers and construct a graph show the
relationship between voltage
and current. The voltage will
go on the x-axis and the current
will go on the y-axis.