Tutorial.SimpleAudioPlayer History

Hide minor edits - Show changes to markup

November 12, 2013, at 10:58 AM by Scott Fitzgerald -
Changed line 28 from:
to:
November 12, 2013, at 10:51 AM by Scott Fitzgerald -
Changed line 28 from:
to:
May 16, 2013, at 05:55 PM by Federico -
Changed lines 3-6 from:
  • 8-ohm speaker
  • Arduino shield with an SD card on CS 4 (like the Ethernet shield)

Optional: if you want to build an external amplifier

to:
  • 8-ohm speaker or headphones
  • Arduino shield with an SD card with cs CS 4 (like the Ethernet shield)

Componets to build an external audio amplifier

Changed lines 16-18 from:

The shield sits on top of the Due with a micro-SD card in the slot. A .wav file named "test.wav" is in the card's root directory. For a simple test you can attach the speaker directly to ground and DAC0, respecting the polarity. The sound will be low, but this configuration is fine for headphones.

If you want to increase the volume of the speaker you have to add an amplifier stage attached to DAC output of the Due. There are many audio amplifiers available, one of the most common is the LM386.

to:

The shield sits on top of the Due with a micro-SD card in the slot. A .wav file named "test.wav" is in the card's root directory. For a simple test you can attach a pair of headphones directly to ground and DAC0, respecting the polarity.

To connect a speaker to the board you have add an amplification circuit connected between the DAC0 pin and the speaker. The amplification circuit will increase the volume of the speaker. There are many audio amplifiers available, one of the most common is the LM386.

Changed lines 22-23 from:

With the potentiometer you can control the volume of the amplifier.

to:

With the potentiometer you can control the volume of the amplifier.
Warning: do not connect the speaker directly to the pins of the Arduino Due.

January 01, 2013, at 11:36 AM by Federico -
Added lines 1-116:

Share