Summary

Receive audio using the built-in analog to digital converter.

Audio Connections

PortPurpose
Out 0Audio Channel

Functions

This object has no functions to call from the Arduino sketch. It simply streams data from the ADC to its output port.

Hardware

Pin A2 is used for audio input. This circuitry is recommended.

Signal range is 0 to 1.2V

Examples

File > Examples > Audio > HardwareTesting > PassThroughMono

File > Examples > Audio > Analysis > PeakMeterMono

File > Examples > Audio > Analysis > DialTone_7segment

Notes

A different pin may be used, but adding it as an parameter to the AudioInputAnalog object definition.

For example, to use pin A3:

AudioInputAnalog adc1(A3);

Noise due to high source impedance, which allows rapidly switching digital signals to capacitively couple... avoiding higher analog impedance is the solution.

Power Supply rejection issue with simple DC bias (bigger capacitor may be needed if 3.3V has low frequency noise)

Algorithm for automatic DC bias tracking

TODO: actual noise measurements with different input circuitry (it's not as quiet as the audio shield)