【MP3】DFPlayer Mini with ATtiny13A【DIY】

Поделиться
HTML-код
  • Опубликовано: 26 июл 2020
  • By connecting a microcontroller to DFPlayer Mini, even if the power is turned off, the volume setting and the song data you were listening to will be recorded in the EEPROM of the microcontroller.
    When you turn on the power, the beginning of the song you were listening to will be played.
    【Circuit Diagram】
    drive.google.com/file/d/1R-4X...
    【Program】
    drive.google.com/file/d/1kUfk...
    [Updated June 14th, 2024]
    【DFPlayer Mini Datasheet】
    drive.google.com/file/d/1vo19...
    【Music】
    空を見上げれば / sora_wo_miagereba
    Shall we meet? dova-s.jp/bgm/play2896.html
    Alice dova-s.jp/bgm/play11900.html
    Cocktail Glass dova-s.jp/bgm/play3270.html
    .
  • НаукаНаука

Комментарии • 69

  • @EduardoSantos-un4iy
    @EduardoSantos-un4iy 3 года назад +1

    Awesome, congrats! And thanks for share!

  • @vishalsmenon
    @vishalsmenon 4 года назад +1

    Amazing work...keep it going

  • @rattehalliravishankar1801
    @rattehalliravishankar1801 3 года назад

    Excellent project

  • @onecircuit-as
    @onecircuit-as 3 года назад

    Lovely project! 👍😀

  • @hishin6180
    @hishin6180 4 года назад +1

    素晴らしいとしか言いようがありません・・・

  • @Ripichipi-id4zu
    @Ripichipi-id4zu 3 года назад

    Dude you are awesome!

  • @dodorga6642
    @dodorga6642 2 года назад +4

    Hello, nice work done here !
    I tried it on an ATtiny13A-PU using AVRISP XPII (ISP prog) through atmel studio v7 (also using the DFPlayer-mini).
    I also did a small PCB in order to have a clean result (powered by a 5v usb converter) hehe.
    In order to give some help/info to people here willing to try this project, here is some things that are good to know about this stuff :
    - If you're going through a basic installation of Microchip Studio v7 and using the listed materials here (hardware & code), you will probably meet a ".text section" error about the .ELF when you compile the code. This can be solved by changing some compiler parameters (don't mess your µC). You can also just replace (line 62) "if(res[3]==0x48){total=res[6];} //Total Number" to a smaller (line 62) "total=X; //Total Number" with "X" the integer number that correspond to the amount of sound stored on the SD-Card (eg : total=6;). Since we're talking about some bits overflowing the region, this will fix it !
    - About the DFPlayer itself, you will find different file naming strategies which can be defined (eg: "0001.mp3" or also a folder hierarchy solution). Be careful about it, since some versions (red/blue leds) of the DFPlayer are considering the file position (#1, #2, #3, ...) about the "moment/order you inserted it in the SD card" and not about the "file name".
    Anyway, nice use of this small µC ! Hope it will help some people ! :)

    • @katelynf8289
      @katelynf8289 2 года назад

      I made the music box from his other dfplayer tutorial but it doesnt skip song when i open box,it just repeats first song on microsd.Do you know correct filename for red dfplayer.When i tested before soldering to attiny13a the filename didnt matter but does the atttiny13 require differrent filename to skip song?i tried 001.mp3 and 0001.mp3 but still only plays first song only.Do you know how to fix? ruclips.net/video/Xs99jWn9MHE/видео.html

  • @Scrogan
    @Scrogan 3 года назад +1

    Neat little project! I’d also quite like to add a display or indicator lights or whatever, though before all that I’d move the project from perfboard to a slick home-etched board. Fold the legs of the DIP8 into an SMD, ditch the pin headers, etc. in order to make it less prickly in the pocket.
    Though I’ve not seen your channel yet, it would be nice to see an ATtiny13 + RDA5807 (or TEA5767) FM radio project.

  • @Bongkar_Projek
    @Bongkar_Projek 4 года назад

    Nice.

  • @Milk-coffee-1001
    @Milk-coffee-1001 4 года назад +1

    良いなぁ〜☺️♫
    自作出来るなんて良いなぁ〜☺️

  • @dodydarmadichanel4862
    @dodydarmadichanel4862 3 года назад

    mantap Kreatif sekali Bang

  • @theyoin118
    @theyoin118 4 года назад +1

    Why you channel 24k your are soo good at this

  • @panwarhappy9368
    @panwarhappy9368 3 года назад +1

    Background was also in dr. Driving

  • @nexuzinnovation-com
    @nexuzinnovation-com 3 года назад +2

    diorama111 さん , do you have the reference link or part number for the prototyping board at 01:25 ?
    It is a very clean and easy color prototyping board, I hardly see such smooth prototyping board, loves it 👍

  • @robin4970
    @robin4970 2 года назад +1

    Would it be possible to code it playing a random song after pressing a button?
    Thanks in advance

  • @giselacastaneda6638
    @giselacastaneda6638 3 года назад +1

    Where did you get the speaker? 🔊

  • @dkm2708
    @dkm2708 4 года назад +1

    Can you make a tutorial how to make a bodyshell for a RC Car easy

  • @beimarticona8895
    @beimarticona8895 2 года назад

    It is possible a jump folder button?

  • @user-dm4mh9sp6c
    @user-dm4mh9sp6c 3 года назад

    What kind of battery did you use?

  • @katelynf8289
    @katelynf8289 2 года назад +1

    I made the one with box with your instructions but it only plays same song over and over.how do i get it to play next song when box opens.did i wire it wrong?

  • @cbbios7804
    @cbbios7804 3 года назад +4

    The project is great but if I wanted to program the same code of the program in an ATtiny85 but with Arduino would it work? And if the code of the program would be the same or it is modified for Arduino, I have no knowledge but I really want to learn.

    • @RucaBan
      @RucaBan 2 года назад

      I want to know that too

    • @robin4970
      @robin4970 2 года назад

      Did you try it?

  • @fidelinaaquino5270
    @fidelinaaquino5270 3 года назад

    where would you put a usb on that plate

  • @bhovmikvaity701
    @bhovmikvaity701 4 года назад

    which software you use for programming

  • @canola3
    @canola3 4 года назад

    Can make a vídeo making a mini bluetooth sistem on 1/64? And How to remove smd led from the original board

  • @user-xm6wk6yd4i
    @user-xm6wk6yd4i 3 года назад

    1曲目が吉田製作所のBGM
    チュイーン!!

  • @meddiys6171
    @meddiys6171 2 года назад

    Good project Sir , but can you share the Hex file and thank you.

  • @nexuzinnovation-com
    @nexuzinnovation-com 3 года назад

    diorama111 さん , is there a way to use volume rotational knob to control the volume up and down to the input pins IO_1 and IO_2 of DFPlayer ?

    • @Scrogan
      @Scrogan 3 года назад +1

      They go into the ATtiny, so definitely. A rotary encoder with pullup resistors (maybe denouncing caps too) should easily be workable, so long as you change a bit of code. Probably be best to hook it up with an extra resistor or two in order for it to take up only a single pin alongside the repeat button, as is already being done with the current buttons. Could use the integrated pushbutton atop the encoder for the play/pause functionality too. Or you could use the button such that when the encoder is turned while the button is depressed, it changes songs (next, previous) instead of changing the volume. Or both.
      There’s also the option of fixing the output amplitude at max and using a volume potentiometer (perhaps with an amplifier IC) and just ditching the buttons.

    • @nexuzinnovation-com
      @nexuzinnovation-com 3 года назад

      @@Scrogan , thanks for the info sharing.

  • @chibitano_denshikousakushitsu
    @chibitano_denshikousakushitsu Год назад +1

    急に阪急来てビビった

  • @billywhizz98
    @billywhizz98 4 года назад

    What is the battery you are using and what battery connector have you used can you give me a web link where to buy them

    • @diorama111
      @diorama111  4 года назад +2

      The battery is G-FORCE GH008(for H001) Li-Po 3.7V 80mAh.
      I bought it at Amazon Japan in 2018, but it was sold out.
      www.amazon.co.jp/%E3%82%B8%E3%83%BC%E3%83%95%E3%82%A9%E3%83%BC%E3%82%B9-80mAh-LiPo%E3%83%90%E3%83%83%E3%83%86%E3%83%AA%E3%83%BC-H001%E7%94%A8-GH008/dp/B06WGPVRKM
      I made the connector from 1.27mm pitch pins and pin sockets.

  • @lucyazazel9202
    @lucyazazel9202 3 года назад

    Can we put an mp3 song?

  • @fidelinaaquino5270
    @fidelinaaquino5270 3 года назад

    Donde pondría USB para pendrive

  • @TheDradge
    @TheDradge 2 года назад +2

    Isn't it pointless using the ATTiny13 when you can do all those switching functions with just the DFPlayer anyway?

    • @diorama111
      @diorama111  2 года назад +8

      I used the ATtiny13A to memorize the volume and the song number.

  • @seonekcdbsme8932
    @seonekcdbsme8932 4 года назад +1

    I am Love you 💚💚

  • @yupingliao4078
    @yupingliao4078 18 дней назад

    Hello thank you+👍 very much, but I don’t have an ISP adapter. I use an Arduino board to externally convert it to an ISP. In Clock, I choose 9.6MHZ to upload, and it is also successful. I have no problem testing MP3 and buttons

  • @i.y.k4602
    @i.y.k4602 4 года назад +1

    阪急の接近メロディ混ざってて草

  • @junhaozhang533
    @junhaozhang533 Год назад

    so I can assume Attiny45 works same way?

  • @ahmethakansengul6935
    @ahmethakansengul6935 2 года назад +2

    what does the yellow button do

  • @fidelinaaquino5270
    @fidelinaaquino5270 3 года назад

    Usb??

  • @nithishkumar.r1423
    @nithishkumar.r1423 4 года назад

    Can you make a mini drone

  • @eg6hide
    @eg6hide 3 года назад +1

    スイッチいれたら
    どーんだけー
    的な(笑)

  • @alexlupin
    @alexlupin Месяц назад

    PB2:TX, PB1:RX............In the program are they reversed compared to the video scheme? I uploaded it but it doesn't work :-(

    • @diorama111
      @diorama111  Месяц назад

      Sorry, for some reason the program exceeded the capacity and could not be written to the microcontroller, so I corrected the program.

  • @redthepost
    @redthepost Месяц назад

    Where oh where is Radio Shack when you need their guidance?

  • @user-xm9ge7ns5f
    @user-xm9ge7ns5f Год назад

    黄色いボタンの役割は何だったんだろう?

    • @diorama111
      @diorama111  Год назад +2

      黄色いボタンは1曲リピートにしています。

  • @window.location
    @window.location 4 года назад

    you should upload code to github or bitbucket
    it will improve your productivity

  • @usmabinshahilak4309
    @usmabinshahilak4309 3 года назад +1

    Make one press off on switch

  • @mr.babygoat4145
    @mr.babygoat4145 4 года назад

    Plz make a small rc trophy truck

  • @RollingBob
    @RollingBob 4 года назад

    Hello my friend hope you are doing well. I like all of your videos an i would like to collaborate with you please let me know if you are interested. Thank you.

  • @ADITYA-hf6ln
    @ADITYA-hf6ln 4 года назад

    Brooo plzz keep your channel logo and banner okkkk

  • @qok-slowedreverb5389
    @qok-slowedreverb5389 4 года назад

    Куплю твою машину на радиоуправлении за 1000₽

  • @leno-indiangamer3211
    @leno-indiangamer3211 3 года назад

    Qna

  • @driss25
    @driss25 Год назад

    Char code hex