กลับไปหน้ารวมไฟล์
vinyl-record-frame-mp3-player-with-screen-7daa32-en.md

Arduino Vinyl Mp3 Player

This is a simple mp3 player activated with a touch sensitive button that plays the mp3s on the DFPlayer SD card.

It also displays the current track onto the i2c LCD screen by keeping track of the current playing song and pulling the associated title from the album array.

The code is pretty basic and should be easy to modify, I used it to mount into a vinyl display frame to have it play tracks when you press the touch button but you could find plenty of other uses for it.

I used an Arduino Nano a 16x4 I2C LCD, a DFPlayer module and a TTP223 capacitive touch button.

I also used two small 2w speakers that produce just enough sound to be useable but small enough they can fit behind the slim vinyl frame.

There are plenty of ways this could be modified, you could add more functions quite easily, I considered having the touch button just play a random track everytime it was pressed but decided eventually on the skip function.

A single press plays the initial track, Two quick presses skips track, Three quick presses players previous track, A long press (which is defined as 5 in the code) resets the module (and stops music playing)

Anyway, I struggled to find the parts to make a drawing so: 5v to VCC on TTP223, I2C LCD and DFPlayer GND to TTP223, I2C LCD and DFPlayer D11 to DFPlayer RX D10 to DFPlayer TX D8 to TTP223 I/O A4 to I2C LCD SDA A5 to I2C LCD SCL

EXPANDED TECHNICAL DETAILS

The Vinyl Frame MP3 Player is a beautiful synthesis of woodworking, graphic programming, and audio processing. By hiding a DFPlayer module within the frame of an actual vinyl record, you create an interactive piece of wall art that plays the album upon command.

Full-Color TFT Album Art (Advanced Upgrade)

A standard 16x2 text LCD, as used in the basic version, can ruin the vintage aesthetic. For a more advanced build, you can upgrade to a 2.4" or 2.8" SPI TFT Color Screen to display the album artwork digitally!

  1. The Image Conversion: An Arduino cannot decode JPEG or PNG files. You must use software on your PC to convert the 240x320 album artwork into raw Bitmap (.BMP) arrays format.
  2. The SD Card Draw: You place the .BMP images onto an SD card located on the back of the TFT module.
  3. The Rendering: The <Adafruit_TFTLCD.h> library reads the RGB color data pixel-by-pixel from the SD card and draws the album art onto the screen in real-time.

Syncing Audio to Art

The DFPlayer Mini MP3 module handles the actual music.

  • When the user presses the "Play" button mounted to the wooden frame, the Arduino commands myDFPlayer.play(1); (Track 1).
  • At the exact same time, the Arduino commands the TFT screen to load and draw Cover01.bmp.
  • Play/Pause/Next/Prev buttons are wired to the Arduino to handle track navigation, keeping the screen in constant sync with the audio.

Required Setup for Advanced Version

  • Arduino Mega: Rendering bitmaps requires far more memory and processing capability than an Uno or Nano can handle efficiently.
  • 2.4" SPI or Parallel TFT Color Touchscreen.
  • DFPlayer Mini MP3 Player + MicroSD card.
  • A 3W to 5W Speaker hidden behind the canvas.
  • A vintage vinyl frame or thick picture frame.

Have fun!

ข้อมูล Frontmatter ดั้งเดิม

apps:
  - "1x Arduino IDE"
author: "aaronalam1987"
category: "Audio & Sound"
components:
  - "1x Stereo Enclosed Speaker - 3W 8Ω"
  - "1x Arduino Nano"
  - "1x Soldering kit"
  - "1x DFPlayer - A Mini MP3 Player"
  - "1x Touch sensor module TTP223"
  - "1x I2C 16x2 LCD"
description: "Vintage tech modernized! Turn an old vinyl record frame into an interactive, wall-mounted music player complete with album art and a TFT display."
difficulty: "Advanced"
documentationLinks: []
downloadableFiles:
  - "https://projects.arduinocontent.cc/592ea706-aa2d-406b-968c-fac20a7c0f4e.ino"
encryptedPayload: "U2FsdGVkX18C4ZxlDFwVCa0gZFYRdqCEh7TN/oBYpkyzVO+GoscoAEpPS2JWZGVCyACJ/KBMWUAb/hgnBlv0caEDITZlG89Wr9r8POHyedk="
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/vinyl-record-frame-mp3-player-with-screen-7daa32_cover.jpg"
lang: "en"
likes: 0
passwordHash: "eeb2bc53ae32aee335313a6cc28664b743f78d9187633f7e02805b599dd09d35"
price: 1499
seoDescription: "Simple DIY Vinyl Record Frame Mp3 Player with lcd display. A creative Arduino project for music lovers and home decor."
tags:
  - "Music"
  - "Audio"
title: "Vinyl Record Frame Mp3 Player With Screen"
tools: []
videoLinks:
  - "https://www.youtube.com/watch?v=aEK5C6ygAdU"
views: 7905