Component: moteiv.tos.sensorboards.invent.MicDriverC

configuration MicDriverC

Driver for the omnidirectional microphone and audio preamplifier on Tmote Invent.

Only available on Moteiv's Tmote Invent

Before use, be sure to start the sensor using the SplitControl interface. If you would like to start the sensor on system boot, use the MainControl generic component like so:

  components new MainControl() as MicControl;
  components MicDriverC;
  MicControl.SplitControl -> MicDriverC;
 
To continuously sample the microphone, use the Microphone interface which allows you to specify a sampling rate and data buffer for use. This is the recommended method for acquiring data from the Microphone. Use the 'ADC as Mic' interface to extract single data samples from the microphone, although this is not recommended.

Vrc sets the compression ratio of the underlying SSM2167 amplifier. Vrg set the noise gate of the SSM2167. See the Tmote Invent datasheet for more information.

MicInterruptDrain sets the resistor value of an RC circuit that determines how long charge leaves a capacitor. MicInterruptThreshold sets the voltage potential of the capacitor that is required to generate an interrupt. MicInterrupt allows the enabling/disabling of the interrupt and fires the event when all of the physical conditions are met.

Author:
Joe Polastre, Moteiv Corporation <info@moteiv.com>

Provides
interface ADC as Mic
interface SensorInterrupt as MicInterrupt
interface Potentiometer as MicInterruptDrain
interface Potentiometer as MicInterruptThreshold
interface Microphone
interface SplitControl
interface Potentiometer as Vrc
interface Potentiometer as Vrg

Wiring