1
EECS1011Z Lab E
2
Introduction
3
Getting started
4
Getting the MATLAB code needed for the lab
5
Using conditional operators
(a)
(b)
(c)
(d)
(e)
(f)
(g)
(h)
6
The Clapper
®
7
Setting up the Phidget and breadboard
8
Check Phidget connectivity and circuit correctness
9
Collect some audio data
9.1
Try to record some audio data
9.2
Get the audio data from the recorder
9.3
Playback the recorded audio data
10
Create a function to plot an audio vector
10.1
Test your function
11
Collect some audio data of two claps
11.1
One-half second between claps
11.2
Two claps in quick succession
11.3
Two slow claps
11.4
Samples
12
Distinguishing between claps and other noises
12.1
Bandpass filtering
13
Detecting the two peaks of the claps (Part 1)
13.1
Envelope of the signal
14
Detecting the two peaks of the claps
14.1
Getting the values and locations of the peaks
15
Create a function that checks if there are two claps
15.1
Test your function
16
Create a function that toggles the LED on and off
16.1
Test your function
17
Implementing the Clapper
18
Ask a TA to mark your lab
19
Submit your work
19.1
Re-submitting your work
19.2
Retrieving your submitted work
20
Clean up
1
EECS1011Z Lab E
Tuesday February 11