Änderungen

SimpleSDAudio

388 Byte hinzugefügt, 19:40, 23. Okt. 2012
Be careful that the audio output pins are digital ports that carry a positive voltage between 0V and 5V. It is not a good idea to have a DC voltage at line-inputs or smaller speakers as there will be a steady current flow. Therefore at least a resistor and/or a capacitor should be connected in series. For a start use at least 100 ohm or a capacitor between 100nF and 100uF. For line inputs use a voltage divider or poti to reduce the voltage.
<gallery widths=300px heights=150px perrow=3>
Datei:SSDA SimpleConnections.png|Examples for simple 8-bit audio outputs
Datei:SSDA Simple16bit.png|Rising the audio resolution to something near 16-bit
Datei:SSDA Better16bit.png|Still unexpensive solution to get nice 16-bit audio output
</gallery>
== Build your own SD breadboard adapter ==
Follow those pictures to build a very cheap SD-card adapter.
Here is an overview of the constants used in the library.
<pre>
#define SSDA_VERSIONSTRING "1.0002"
// Sound Mode Flags
#define SSDA_MODE_MONO 0x00 // Use only 1st PWM pin
#define SSDA_MODE_STEREO 0x01 // Use both PWM pins for stereo output
#define SSDA_MODE_QUADRO 0x04 // Uses four PWM pins for either 4 speakers or Stereo 16 Bit
#define SSDA_MODE_MONO_BRIDGE 0x02 // Use both PWM pins for more power
 
// Error codes from SimpleSDAudio, see other sd_l*.h for more error codes
1.995
Bearbeitungen