CPS-Lab / Mbed 2 deprecated Lab3

Dependencies:   mbed

Report.txt

Committer:
davmalon
Date:
2018-02-01
Revision:
1:5192dafaecad
Child:
2:d457aead43f6

File content as of revision 1:5192dafaecad:

Lab 3 Lab report
David Malone davmalon   
Samantha Smith sks1 

Results


Difficulties
During the process of manipulating the sinewave example code, we ran into quite a few problems with the frequency of the wave. 
We were slightly confused initially on how to convert the period into frequency with the wait_us() function. 
Eventually we had realized that the function operated in miliseconds and the frequency we were giving the function was actually a delay of 1ooms and not 100hz/samples per second. 
To achive the actual frequency, one only has to divide the input frequency by 10 and pass that number to the wait_us function. 
We also had an issue with how we originally connected our circuit which caused a few problems. One issue that stemmed from this was that we chose a capacitor with a high capacitance that disrupted the form of our sinewave. 
We simply chose another capacitor, at .1 microferrats. and this fixed our problem (we swapped out the resistor to reflect this change in our circuit for our freuency cutoff value). 



How closely did your analysis match your measurements. What were the reasons for the differences? 

Filter Ideal Analysis 


Filter Measurements