Skip to content

Latest commit

 

History

History
89 lines (54 loc) · 3.82 KB

README.md

File metadata and controls

89 lines (54 loc) · 3.82 KB

Duckveloper 🐤


Say goodbye to the low-tech days of rubber duck debugging! Duckveloper 🐤 is the coding partner you never knew you needed.

Simply press a button and the innovative, high-tech duck will generously provide you with words of "encouragement" to help you figure out what's really wrong with your code.

Picture of project

Arduino project with an MP3 shield, speaker, and rubber duck. Inspired by the strategy of rubber duck debugging.

Components

This project uses the Arduino VS1053 Library to decode MP3 audio and interface with the MP3 shield.

Serial Name Quantity Description
🐤 Rubber Duck As many as you need to be happy in life
DEV-11021 Arduino Uno - R3 1
DEV-12660 SparkFun MP3 Player Shield 1 Requires soldering on headers
PRT-11417 Arduino Stackable Header Kit - R3 1 For the MP3 Shield
BOB-11044 SparkFun Mono Audio Amp Breakout - TPA2005D1 1 Requires soldering connections
COM-09151 Speaker (0.5W) 1
PRT-10512 Optional: 9V Battery Holder 1

Other common generic components you should have:

Picture of components

Setup

Hardware Configuration

Solder the stackable headers onto the MP3 Player shield.

Mount the MP3 Player shield onto the Arduino Uno.

Connect the remaining components according to the following schematic: Schematic

To accurately connect the Audio Breakout Board (TPA2005D1), follow the SparkFun Mono Audio Amplifier Quickstart Guide.

Duck Configuration

Use a hobby or utility knife to (carefully!) cut a small hole in the duck's rear end.

Insert the LED into the hole so it will light up the duck when a voiceline is playing.

Apologize profusely throughout the procedure.

SD Card Setup

Format the SD card to FAT16 or FAT32.

Place your intended voicelines onto the SD card, named in the format of track001.mp3, track002.mp3, etc.

Install the SD card into the MP3 Player Shield.

Software Configuration

Download the Arduino IDE.

Install the VS1053 library in the Arduino IDE.

Open the duckveloper/duckveloper.ino program. Modify the value NUMBER_OF_TRACKS (location in code here) accordingly, if you have changed the number of voicelines on the SD card.

Compile and upload the project to the Arduino.

Operating the Project

Press the button to trigger one of the random voicelines as well as the LED.

To monitor the program's output, open the serial monitor and set the baud rate to 115200.

Reference

For more information on working with the components in this project, see: