CPS-Lab / Mbed 2 deprecated Lab3

Dependencies:   mbed

Committer:
davmalon
Date:
Thu Feb 01 20:58:09 2018 +0000
Revision:
1:5192dafaecad
Child:
2:d457aead43f6
added dafsdg

Who changed what in which revision?

UserRevisionLine numberNew contents of line
davmalon 1:5192dafaecad 1 Lab 3 Lab report
davmalon 1:5192dafaecad 2 David Malone davmalon
davmalon 1:5192dafaecad 3 Samantha Smith sks1
davmalon 1:5192dafaecad 4
davmalon 1:5192dafaecad 5 Results
davmalon 1:5192dafaecad 6
davmalon 1:5192dafaecad 7
davmalon 1:5192dafaecad 8 Difficulties
davmalon 1:5192dafaecad 9 During the process of manipulating the sinewave example code, we ran into quite a few problems with the frequency of the wave.
davmalon 1:5192dafaecad 10 We were slightly confused initially on how to convert the period into frequency with the wait_us() function.
davmalon 1:5192dafaecad 11 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.
davmalon 1:5192dafaecad 12 To achive the actual frequency, one only has to divide the input frequency by 10 and pass that number to the wait_us function.
davmalon 1:5192dafaecad 13 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.
davmalon 1:5192dafaecad 14 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).
davmalon 1:5192dafaecad 15
davmalon 1:5192dafaecad 16
davmalon 1:5192dafaecad 17
davmalon 1:5192dafaecad 18 How closely did your analysis match your measurements. What were the reasons for the differences?
davmalon 1:5192dafaecad 19
davmalon 1:5192dafaecad 20 Filter Ideal Analysis
davmalon 1:5192dafaecad 21
davmalon 1:5192dafaecad 22
davmalon 1:5192dafaecad 23 Filter Measurements