Wednesday, March 8, 2017

Night Light Circuit Lab

Objective: 
We reviewed the representation of a current controlled current sources (CCCS) and other dependent sources. Furthermore, we reviewed how to add resistors in series where Req = R1+R2+.. and adding resistors in parallel as 1/Req = 1/R1+1/R2 = R1+R2/(R1*R2) that can be rearrange into Req = R1*R2/R1+R2. The main objective is to understand the idea of voltage division and using the Req to find certain values.

Hot Dog Experiment:
1. A hot is connected to an alternating voltage source as seen in Figure 1. The focus of the experiment is to see what the result would be for the hot dog. We hypothesized that the hot dog may represent a human being and concluded that the hot dog would slowly cook and eventually burn. The result was exactly what we predicted.

2. The next step is to predict what would happen when led's are placed in a parallel and in perpendicular. The result was that the LED's that were in series turned on while the middle LEDs which were perpendicular were turned off. However, we noticed that the LED's suddenly turned off as the hot dog was burning. 
Figure 1. Hot dog experiment with an alternating voltage and LED's lights attached. 
Group Practice Problems:
1.  The circuit in Figure 2 shows that there are dependent sources of a current controlled current source (CCCS). The objective is to find the unknown voltage across the resistor of 8 ohms. We calculated the Vo by using Kirchoff's current law. 


Figure 2. A circuit with a current controlled current source and dependent source.

2.  The problem in Figure 3 tells us to to find the voltage across R1 and R2. In order to this, we use voltage division. This means that we will need to the total Current which is I =Vin/R1+R2. So, the voltage at R1 is V1 = R1*(Vin/R1+R2) and V2 which is also the Vout is V2=Vout= R2*(Vin/R1+R2)
Figure 3. Circuit where Resistors are in series. 

3. We created a circuit where we ran a 12V output and 3.3V ADC and can sink at a max of .01A. The question is to find the necessary resistance for the appropriate circuit. Using the idea of voltage division, we figured that the voltage at R1 should 8.70 and at R2 should be 3.3V. Using the equation R = V/I, we can acquire the the resistance at each Resistor. We found that R1 = 870 ohms and R2 = 330 ohms as seen in Figure 4. 
Figure 4. Creating a circuit with the appropriate resistor.

4. The problem below in figure 5 shows an LED with running voltage of 4V. The problems asks to find the appropriate resistance for the circuit. We found that the needed resistor according the range of current gives us 3.3 ohms<R<10 ohms. However, this is not out true answer as we must find the appropriate resistor in hand. We found a 7.5 resistor in class that falls within the range. 
Figure 5. A circuit with an LED and resistor with a running voltage of 4V. 

5.  In the end, we followed the initial instructions for the lab where we needed to find the voltages at the photocell. As seen in Figure 5. We acquired a voltage at a resistance of 5K of Vb = 1.7V and Vb = 3.33V at 20K. We found the current by adding the resistors in series and finally calculating the above voltage at each resistor using ohms law V=IR. 
Figure 5. Pre Lab calculations. 

Dusk to Dawn Lab Procedures:
1. We create a circuit as seen in Figure 6  and Figure 7. where there is a photocell, LED, a resistor of 10000 ohms, and a Bipolar Junction Transistor (BJT). The BJT can be considered as a current controlled current source.
2. We use the Analog Discover to measure the base voltage of the BJT and the voltage difference across the LED when the photocell is exposed to light. We acquired Vb =.91V+/-.05 and
 Vd =.54V+/-.05
3. In order to see the circuit behaved like a nightlight, we made sure that when the photocell is exposed to light, the LED does not light up. Yet, when the photocell is covered, the LED is turned on. We record the voltage when the photocell is covered. Vb = 2.45V+/-.05   and Vd= 1.93V+/-.05
4. A video can be seen here: https://youtu.be/EzZvij3H2_o

Figure 6. Circuit representation.


Figure 7. Actual circuit. However, the BJT was not correct which is why the LED is turned on. Though it had been fixed and can be seen at the link https://youtu.be/EzZvij3H2_o
Summary of the Lab and Overall Learning Outcome:
The goal of the lab is to connect the circuit according to Figure 6. We made sure it worked according to the instructions by checking that when the photocell is exposed to light, the LED should not turn on. Conversely, when the light is not being exposed to light by covering the photocell, then the light should turn which means that the circuit with the LED acts as a night light. The reason for which this occurs is because the photocell is a variable resistor where R~1/L. This means that when the luminosity is lighter, than the resistance would be lower. Furthermore, when the luminosity is lower,  the resistance is higher. Our final measurement results, respectively, for the voltage at Vd and Vb when light is off or when exposed to light are .54V+/-.05 and .91V+/-.05 When the light is on and not exposed to light, then the Vd= 1.93V+/-.05 and Vb =2.45V+/-.05. Our results for the pre lab differed since our theoretical results was Vb=1.7V at a resistance of 5k and Vb=3.33V at a resistance of 20K. Since our experimental resistance of R = 10K was between the theoretical resistance between 5K and 20K. Then it make sense that our experimental result of Vb = 2.45V falls between our theoretical voltage range of 1.7V and 3.33V 

Friday, March 3, 2017

Dependent Sources and MOSFETs and Voltage-Current Characteristics Lab


Objective: 

The goal is to review and define resistance in which R = resistivity* Length/Area. We can see that resistance is proportional to length (R~L)  and resistivity (R~resistivity) and inversely proportional to area (R~1/A). Defining the equation can be seen in Figure 1 as well as using the equation so solve an in class problem where we were given the power, voltage of a source, and the resistivity of a material. From this, we were told to find the cold and hot resistance and an approximation for length and area. Finding the hot resistance was plugging in and manipulating the equation. However, finding the cold resistance was a bitt different since a lot of engineering results in estimating. As a result, we concluded a cold resistance of R cold<R hot. We also covered how to find the nodes, branches, and loops in a circuit. Most importantly, the fundamental theorem of network topology (b = L+N-1) would help us find the loops since, some times, may be difficult to find for complicated circuits. We would then apply our learning outcome of the lecture to our labs based on Voltage and Current Characteristics, and Dependent Sources and MOSFETs. Furthermore, we also have the opportunity to use MATLAB in our labs since it requires linear regression

Group Circuit Practice Problem and Learning Outcome:

1. Resistance:
We covered the idea that resistance depends on the resistivity of the material, length, and cross sectional area as seen in Figure 1. In addition, the problem below asks to find the resistance. In this case, we use ohms law where V=IR but we take in mind that when current flows from a high potential to a low potential, then V= IR and when current flows from low to high potential, then
V = -IR. This idea can be seen in Figure 2 where an unknown current and voltage across a and b is found. 
Figure 1. Above shows the equation for resistance based on the length, cross sectional area, and resistivity of the wire.

2. Branches, nodes, and loops:
The way in which we can represent branches is by looking whether there is a two terminal element or in other words, is connected to voltage source or a resistor. The nodes are found by seeing whether there is a point that has two or more branches. A loop is any closed path in a circuit but the equation
b = L+N-1 may be needed since loops may be hard to visualize with more complicated circuits. 

Figure 2. The image shows a circuit for which the number of branches, nodes, and loops were found using the equation
b = L+N-1 

Figure 3. The image shows a circuit where the unknown current in amps was found and the voltage across a and b (Vab).



Voltage- Current Characteristics Lab Summary with Procedures:
1. The first portion of the lab explores Ohms law (V=IR) where we are a given a voltage source and a resistor of 100 ohms according to the manufacturer. Yet, we measured a resistance of R = # which is lower than specified. We connected the resistor in series and collected 6 measurements of voltage and current. we expect to calculate the overall resistance by looking at the slope of a current vs voltage plot.  Our data measurements may be seen in Figure 5 and plotted the points as well as include a linear fit. We figured that R = V/I and concluded that the resistance would be the same as we increased the voltage in increments of approximately 5 volts. 
Figure 4. The image above shows how a circuit was connected with a resistor in series. From this, we acquired various measurements of voltage and current.
2. MATLAB table and Plotting:
We placed our measurements in a table as seen in Figure 5 as well as finding the linear curve fit with a degree of one, and the correlation coefficient. We acquired a linear fit equation of R = 0.0106V-0.0027. The linear curve fit may be seen in Figure 6. 
Figure 5. The image shows a table of our measurements, the curve fit linear constants and the correlation coefficients. 
Figure 6. A Linear curve fit using the MATLAB Program. 
Summary of Dependent Sources and MOSFETs Lab with Procedures:
1. A MOSFET is used in a circuit which serves to control the power supply's current as seen in Figure 7 and 8. In other words, the increase in voltage, should increase the current out of the power supply which can seen from our measurements in Figure 9. We also measure the resistance of the resistor of R = 98.1 ohms. Our table of measurements in Figure 9 shows that there is a Threshold Voltage from .72<V<.74 since it is where the drain current beings to increase significantly.

Figure 7. The image shows a representation on how the circuit is built with the use of a MOSFET
Figure 8. The actual circuit set up with the a use of a MOSFET 

Figure 9. Table of measurements of current as voltage gradually increases until no current passes through the MOSFET
2. We plot the gate to source voltage vs drain current as seen in Figure 10. We can see on the graph that as the voltage increases, the current increases as well until current stabilizes. This is known as a Voltage controlled current source or VCCS.
Figure 10. Current vs Voltage plot 
3. We are also able to find the value of g for the circuit which is the slope of our data points as seen in figure 11. Our g for the circuit is g=0.433 as seen in figure 11.
Figure 11. We used the points that are more linear and found a linear fit equation. 

Summary of the Labs and Overall Learning Outcome:
The voltage-current characteristics lab explores the idea of ohms law where V=IR or R=V/I. If we plot our measurements of voltage and current while voltage was increased with increments of 5V, then we would see a linear representation of plotted points. Therefore, we can curve fit the line as a polynomial of degree of one. In other words, a linear equation. We can see that the y intercept is not at 0 but -0.0027 which is close to 0. We can assume that there is a linear resistor that obeys ohms law where the slope of .0106 ohms is the resistance. 
The dependent sources and MOSFETs Lab explores the use of a voltage controlled current sources where the gate voltage control the current in the circuit. As we increase the gate voltage, the more current flow was shown based on our results. We then found the threshold voltage by determining the voltage in which the current increased significantly. 












Wednesday, March 1, 2017

Solderless Breadboards, Open-circuits and Short circuits Lab



Purpose and class objective: 

We examine the resistance using a digital multimeter when connecting to different holes in our breadboard. The multimeter serves to read the resistance from which we will see whether connecting different nodes in the same row or in different rows will acquire a difference of resistance in ohms. We will also do in class practice using the idea that summation of power equals to zero or in other words the conservation of energy law. We will also practice the idea of P=IV, I=V/R, and graphical representation of current, energy, voltage, and power using calculus. 

Reviewing Circuits:

We reviewed the idea that electric current is the change of charge divided the change in time in which it is measure in Amperes. We can also manipulate the equation to calculate the charge between some time by integrating the current with respect to time. Furthermore, we reviewed graphical representation of direct current for which is constant and alternating current for which it  varies sinusoidally with time. With this in mind we can also acquire a mathematical equation for voltage where v = dw/dq where dw is the change represents the energy and dq the charge in coulombs. In the end, we can find Power where P= IV = dq/dt*dw/dq = dw/dt. Finally, we covered the idea of dependent and independent sources. 

Lab Procedures taken:

1. Our first step is to connect leads of the DMM using jumper cables to two hole that are in the same row on the breadboard as seen in Figure 1. The result shows 21 ohms. However, it seems to be inconsistent as it increases and decreases suddenly. Yet, we acquire a reasonable resistance measurements of 21 ohms. From this we can conclude that step 1 is a closed circuit since there is still a flow of current based on the idea that I = V/R 

Figure 1. Using a digital multimeter (DMM), there is a low resistance when the two leads of the DMM are connected on the same row. This is step 1 of the lab procedures. 

2. The second step is to connect the leads on the same row of the breadboard but on opposites sides of the central channel as seen in Figure 2. From this procedure, we acquire an infinite resistance which shows that there is no current flow since I = V/Inf = 0. Therefore, we can conclude that step 2 of the lab is an open circuit. 

Figure 2. The second step of the lab shows that the DMM reads an infinite resistance when connected on the same row on opposite sides.
3. The third step shows gave us an infinite resistance as shown in Figure 3. However, in this case, the connectivity was no in the same row but in different rows. As a result, we concluded that step 3 of our lab is a open circuit since there is no current flow when the resistance goes to infinity. We can see that there is no current flow since they do not lie on the same row. 

Figure 3. The third step of the lab shows the same infinite resistance as step 2 but when connected between two holes not in the same row.
4. Step 4 of the lab uses the same step as in step 3 where the DMM is connected on different rows. However, we added a jumper cable between the nodes as seen in Figure 4. We measure a resistance of 3.9 ohms which is very low than from step 1 result of 21 ohms. Since there is a low resistance, then, there is current flow. This means that step 4 is a closed circuit.

Figure 4. A low resistance of 3.9 ohms was measured from step 4 which shows that it is considered a closed circuit. 
In class Practice Procedures:

The circuit as seen in Figure 5 shows a variety of voltages and current flow measurements. The objective is to find the unknown voltage. We can see that we are given an ideal voltage source where the power absorbed by the voltage source is -150 watts. According to the law of conservation of energy, we add all the power where P = IV and equal it to zero. By using algebra, we can find for the unknown voltage for which we found it to be 20 volts.  
Figure 5. In class practice with lab partners on dealing with a circuit of different voltages and currents. 
Summary: 

We covered the idea that a short circuit involves the resistance approaching 0 and an open circuit involves a resistance approaching infinity. Yet, a short circuit can still show a current and can be anything while the current an open circuit is 0 since I = V/R. Furthermore, we can point out that current flowing from a lower potential to a higher potential is V = -iR and current flowing from a higher potential to a lower potential is V=iR.