Thursday, May 3, 2018

Arduino standalone Audio generation - How to play Audio Signals from Arduino without modules using PCM signals

In this post we'll see how to generate audio signals from Arduino without using any shields or modules.

PCM (Pulse Code Modulation)



Using Arduino and a speaker, you can generate audio signals as if they were coming out from an MP3 player.


Components
Arduino Uno
8 ohm Speaker
TIP 120 Resistor to be used as an amplifier.

Circuit

Picture of Connections



Just connect the amplifier transistor to Arduino and then connect them to the speaker.

Software
Download Audacity and then download software encoder from here.


Arduino code is included in this file.








Source: Instructables

















No comments: