License

CC-BY-SA 3.0

Recommend Projects

ATtiny85 TinyDFPlayer SMD

11 months ago 848
  • Description
  • Documents
  • BOM
  • Attachments
  • Members
  • Comments

Description

ATtiny controlled and LiPo battery powered MP3-Player using the DFPlayerMini-module featuring:

  • Micro-SD-card slot,
  • battery charging and protection circuit,
  • battery level detection,
  • OLED display,
  • on/off switch,
  • volume control,
  • 3 push buttons to control the player.

You can directly connect a 3.7V LiPo battery and a 3W/4Ohm speaker to the board. The firmware is written for the folder-play function of the DFPlayer. This means you have to create folders named 01, 02, 03, ... in the sd-card root and inside the folders you have to name the audio files 001.mp3, 002.mp3, ... It makes heavy use of the sleep features of the microcontroller in order to extend battery life.

tinyDFPlayer_x.jpg

IMG_20200331_164823_BURST001_COVER_x.jpg

Documents

TinyDFPlayer

TinyDFPlayer_v1.0

BOM

ID Name Designator Footprint Quantity
1 Header SPK HDR-1X2/2.54 1
2 Connector BAT HDR-1X2/2.54 1
3 DFPlayer U2 DFPLAYER_MINI 1
4 100n C1,C9,C3 0805 3
5 10u C8 0805 1
6 I2C I2C HDR-4X1/2.54 1
7 470uF C10 CAP-SMD_D10.0-L10.3-W10.3-H10.2 1
8 OLED OLED OLED 1
9 ATTINY85-20SU U1 SOIC-8_208MIL 1
10 USB PWR Connector USB USB PWR CONNECTOR 1
11 Slide Switch POWER SLIDE SWITCH DPDT 1P2T JB 1
12 FS8205 Q1 SOT-23-6 1
13 ICSP-6 ICSP ICSP-6 1
14 3x6x2.5 PREV,NEXT,OK KEY-3.0*6.0 3
15 1k R12,R7 0805 2
16 10k R11,R10,R1,R9 0805 4
17 4k7 R4,R3 0805 2
18 1k2 R6 0805 1
19 1k5 R5,R2 0805 2
20 100 R8 0805 1
21 DW01A U5 SOT-23-6 1
22 47u C2 1206 1
23 Red L2 LED-0805 1
24 Blue L1 LED-0805 1
25 TP4056 U4 SOP-8_EP_150MIL 1
26 B103 3 pin U6 B103 3 PIN 1

Attachments

Filename Download
tinyDFPlayer_firmware_v1.0.zip
tinyDFPlayer_firmware_v1.0_hex.zip
Success
The owner does not allow comments in this project now

Comments (8)

jasonmrc Reply

Hi


I build this project , but when i power up it says starting ... then says error sd card . i tried formatting it in exfat , fat16,fat32 and also put files like 0001.mp3 in root , in folder mp3, in folder  advert as per datasheet. 1


One thing i should highlight is inspecting the dfplayer mini module the small chip us without a number and the bigger chip has number AA19HFA440-94 . Maybe these are cheap copies on the internet !


will dig deeper about these mp3 modules ..

Stefan Wagner Reply

@jasonmrc: Mmmmh, I also used a cheap dfplayer. I think it could be the sd-card. Have you tried to use one with 4GB or less? The bigger ones often have compatibility issues.

Stefan Wagner Reply

@jasonmrc: And check if you have set the fuses of the ATtiny to 8MHz internal ("Burn bootloader" in the Arduino IDE) to have a working serial communictaion with the dfplayer.

jasonmrc Reply

@wagiminator  I used a 2GB tf card , as for fuses i used avrdudezz with line -U lfuse:w:0xE2:m -U hfuse:w:0xDF:m -U efuse:w:0xFF:m


then wired the df player to an arduino uno - same tf card - but used the library dfplayer_fast , and it worked fine .


so i ported the tinyplayer to the fast library and its working - but -


ejecting the card it will no show the error
files and folders  are read and give a maximum of 25
buttons work fine too.
volume works - battery shows full at batt 4.3v circa.


So there is an issue with the library of the dfrobot ? is the cheap df player using the same protocol and codes to initialise the board?


I leave you with these questions . meanwhile I will try a 1gb card

Stefan Wagner Reply

@jasonmrc: Mmmmh, I use Arduino v1.8.8, maybe that's an issue. I will compile the sketch and upload the hex-file as soon as I'm on my "workstation". Maybe we can see a little bit clearer then. I will also look at the dfplayer for the number which is printed on it.

jasonmrc Reply

@wagiminator Hi , can you send me the compiled hex to jmcservv at gmail dot com. i have created a folder on the sd card mp3 and put some mps3 in it . when i play it  it only plays the first file 0001.mp3. selecting file 2 plays again the first file.  i await your hex file to test with !  thanks and happy weekend !

Stefan Wagner Reply

@jasonmrc: I've uploaded the hex-file and also send it via email. My bigger chip has the number YX5200-24SS.

Stefan Wagner Reply

@jasonmrc: And I created folders 01, 02, 03, ... in the sd-card root and inside the folders 001.mp3, 002.mp3, ...

goToTop
你现在访问的是EasyEDA海外版,使用建立访问速度更快的国内版 https://lceda.cn(需要重新注册)
如果需要转移工程请在个人中心 - 工程 - 工程高级设置 - 下载工程,下载后在https://lceda.cn/editor 打开保存即可。
有问题联系QQ 3001956291 不再提醒
svg-battery svg-battery-wifi svg-books svg-more svg-paste svg-pencil svg-plant svg-ruler svg-share svg-user svg-logo-cn svg-double-arrow
We use cookies to offer you a better experience. Detailed information on the use of cookies on this website is provided in our Privacy Policy. By using this site, you consent to the use of our cookies.