Microphone Class
- ID: microphone
- Name: Simple Analog Microphone
- Other Names: Grove Sound Sensor
- Category: sound
- Manufacturer: seeed
- Link: http://www.seeedstudio.com/wiki/Grove_-_Sound_Sensor
- Connection: analog
- Kit: gsk
This module defines the Analog Microphone sensor
Item Index
Methods
Microphone
-
micPin
Instantiates a Microphone object
Parameters:
-
micPin
NumberPin where the microphone is connected
Returns:
getSampledWindow
-
freqMS
-
numberOfSamples
-
buffer
Gets samples from the microphone according to the provided window and number of samples
Parameters:
-
freqMS
NumberTime between each sample (in microseconds)
-
numberOfSamples
NumberNumber of sample to sample for this window
-
buffer
Uint16_t *Buffer with sampled data
Returns:
findThreshold
-
ctx
-
threshold
-
buffer
-
len
Given the sampled buffer, this method returns TRUE/FALSE if threshold is reached
Parameters:
-
ctx
ThresholdContext *Threshold context
-
threshold
NumberSample threshold
-
buffer
Uint16_t *Buffer with samples
-
len
NumberBuffer length
Returns:
printGraph
-
ctx
Prints a running average of the threshold context
Parameters:
-
ctx
ThresholdContext *Threshold context