CPS-Lab* / Mbed 2 deprecated Lab2

Dependencies:   mbed

Lab2_Report.txt

Committer:
jackclar
Date:
2018-01-25
Revision:
1:71590a7cd53f
Parent:
0:815bb05cffef
Child:
2:48a9b9c9bda8

File content as of revision 1:71590a7cd53f:

Results:
    We successfully created a program to output a variable voltage from the mbed board. We then used that voltage to power two series of resistor networks. These are our ideal calculations and our actual readings.
    
    Circuit 1)
        Ideal)
        V1 = 2.5V
        V2 = 1.72
        R1 = 1k Ohm
        R2 = 2.2k Ohm
        I1 = .781 mA = I2
        
        Actual)
        V1 = 2.52V
        V2 = 1.74V
        R1 = 0.998k Ohm
        R2 = 2.19k Ohm
        I1 = 0.8 mA = I2
        
    Circuit 2)
        Ideal)
        V1 = 2.1V
        V2 = 1.35V
        V3 = 0.047V
        I1 = 0.746 mA
        I2 = 0.615 mA
        I3 = 0.13 mA
        I4 = 0.099 mA
        I5 = 0.31 mA
        R1 = 1k Ohm
        R2 = 2.2k Ohm
        R3 = 10k Ohm
        R4 = 470 Ohm
        R5 = 1.5k Ohm
        
        Actual)
        V1 = 2.128V
        V2 = 1.363V 
        V3 = 0.047V
        I1 = 0.77 mA
        I2 = 0.64 mA
        I3 = 0.15 mA
        I4 = 0.12 mA
        I5 = 0.05 mA
        R1 = 0.993k Ohm
        R2 = 2.176k Ohm
        R3 = 9.54k Ohm
        R4 = 467 Ohm
        R5 = 1.482k Ohm
        
Difficulties:
    The most difficult part of this lab was setting up the variable voltage source. We ran into several problems, namely manipulating the input voltage into a 12 bit number that could be output. 
    We rearranged the given formula and accounted for outputting a 16 bit number as a 12 bit number. We also had to make sure that the types were correct when manipulating the voltage and doing
    calculations.
    
Analysis:
    Resistors)
        Our resistors were all very close to their ideal values. They weren't perfect because they are physical systems and have a built in error of around 1% due to 
        manufacturing defects and temperature variations. They all seemed to be operating within that range. 
        
    Voltage)
        The main error for measuring voltage came from our output being a quantized version of an analog output. It can never be perfect. If we get a reading that is on the edge of 
        a voltage cutoff, it will be slightly off. That being said, all of our measurments were very close.
        
    Current)
        Current was where we had our largest variations, this was moslty due to our multimeter having a 0.02 mA variance. Even when disconnected the multimeter read 0.02 mA. The other variances
        were from differences in resistor values and voltage, which impact the current.