39 GUIDES | 235 PAGES | 1 FEATURED | 0 POPULAR
The Raspberry Pi has an on-board audio jack, which is super handy for all kinds of sound effects and speech, just plug and go! However, for when you want better audio for music playback, or you want to record audio...a USB audio card can greatly improve the sound quality and volume, this tutorial will show you how!
To keep costs low, the Raspberry Pi does not include a Real Time Clock module. Instead, users are expected to have it always connected to WiFi or Ethernet and keep time by checking the network. Since we want to include an external module, we'll have to wire one up. We'll go with the easy-to-use and low-cost DS1307.
Once soldered together, the cable plugs between the Pi computer and the Cobbler breakout. The Cobbler can plug into any solderless breadboard (or even a prototyping board like the PermaProto). The Cobbler PCB has all the pins labeled nicely so you can go forth and build circuits without keeping a pin-out printout at your desk. We think this will make it more fun to expand the Pi and build custom circuitry with it.
One of the great things about the Raspberry Pi is how everyone starts with same piece of gear. Since the sound cards are identical on every unit it is trivial to load the drivers and play mp3 files. This guide describes how to connect input buttons and play audio files using a Raspberry Pi with Python. We make use of the Adafruit's Pi Cobbler Breakout Kit and the python module RPi.GPIO. If you have not already used the raspberry pi as a input device this guide will show you how to wire the pull-down resistors to the GPIO pins and buttons.