How to Add Audio to Your Embedded Project Using SparkFun's Qwiic Twist and Audio Player Breakout

Pages
Contributors: [redacted], QCPete, Member #927272

Software Setup

To follow along, install the following libraries via the Arduino Library Manager:


alt text

Use Example4_QwiicTwist.ino from the SparkFun MY1690 MP3 Decoder Library examples. It enables the Qwiic Twist to:

  • Rotate to change track number
  • Press to play the selected track
  • Display info via serial monitor

How It Works:

  • The Audio Player Breakout receives serial messages from the RedBoard Qwiic.
  • The Qwiic Twist allows you to navigate through tracks by rotating and play one by pressing.
  • The selected audio file is played through the MY1690 and sent to the mono amp and speaker.

Serial Feedback: The sketch prints useful debug messages to the Serial Monitor, including the number of tracks on your SD card and the currently selected track.

Tips:

  • Make sure your microSD card is formatted correctly and contains MP3/WAV files.
  • Use a single-cell LiPo if you'd like to run this portable.
  • You can customize the playback behavior by editing the example sketch.