Arduino Magic: Navigating MP3 Files with Rotary Encoder | MP3 Player Project Series

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ก.ย. 2024

ความคิดเห็น • 26

  • @michealafton1
    @michealafton1 10 หลายเดือนก่อน +1

    Love this project! Am thinking of making something similar this was so helpful!

  • @richardphillips1891
    @richardphillips1891 10 หลายเดือนก่อน +2

    I appreciate the various Arduino and ESP32 videos you've done. I tried doing this one on an ESP32 but don't quite have the knowledge of how to do it. It worked as you described on my Arduino UNO R3 (Elegoo version). I do have a large number of mp3 files on my micro SD card so the count and random features didn't quite work as you described. Would you consider doing a video on how to do this same project using an ESP32? I've been playing with the ESP32s and loading up numerous features on them because of their faster speeds and more memory. I share your enthusiasm regarding Star wars and really like the various displays you've developed and adding sounds is fun. Thank you.

    • @thelastoutpostworkshop
      @thelastoutpostworkshop  10 หลายเดือนก่อน

      Thanks for the suggestion, I will add it to my list.

  • @ikevz3881
    @ikevz3881 6 หลายเดือนก่อน +1

    How can I change or stop the song? you should show all the functions of the
    library

  • @jonicurn100
    @jonicurn100 ปีที่แล้ว

    I love Arduino and Star Wars as well. Your work is really good. When we go to DisneyWorld, we see lots of Starwars props but I never knew the work that was involved. Thanks for posting this. Recently, I was able to make mp3 selections using a 4x4 keypad (only 16 choices). However, I would like to use the keypad to select 100+ tracks (and show the chosen selection number on LCDi2c) but I have been unsuccessful. I am going to keep watching tho because I'm learning from you.

    • @thelastoutpostworkshop
      @thelastoutpostworkshop  ปีที่แล้ว

      Thank you very much!

    • @MichaelSchubertPhoto
      @MichaelSchubertPhoto 5 หลายเดือนก่อน

      I wanted to also create a project to selectup up to 16 songs with different buttons. How did you get this done?

  • @adeltabsh8578
    @adeltabsh8578 ปีที่แล้ว

    Hi
    Wonderful project! I have a special needs kid who loves turning knobs. I have bought him several old fashioned radios (with knobs) and he plays with them all day!
    I was in the middle of making a very similar project like yours. Here are some ideas that I need in addition to all of your nice work:
    1- it needs to run on a rechargeable li-ion battery so is it possible to use 3.3 volts instead of 5v? It spares me having to boost the 4.2volts from the battery
    2- it needs to go to very low power mode if the knob is not turned for over m-minutes. Then it comes to life after the knob is turned. This is to allow the child to go to sleep and save battery.
    3- it would be nice to set the volume level by pressing and holding the knob for say x seconds. Then turning the knob left or right would play a test track at that volume level. If no knob turning is detected for more than y seconds, then knob function would return to normal
    4- a config.txt file contains all the variables can be saved to the sd card (m,x,y)
    I intend to plant this device inside his favourite stuffed teddy bear which he takes to bed to help home sleep. He is 29 years old with the brain capabilities of a 4 year old.
    Thank you SO much!

  • @cisiel1
    @cisiel1 3 หลายเดือนก่อน

    Great thanks for good explanations. How to change the code when I have 2 minute track and I want it to stop playing after 1 second when I stop spinning encoder? Enyone?

  • @colinward322
    @colinward322 ปีที่แล้ว +1

    Would be great if you could add an LCD 20x4 menu display.

  • @richardphillips1891
    @richardphillips1891 14 วันที่ผ่านมา

    I am new to getting mp3 files to read on the DF Player. I'm suspecting that I may have not loaded them properly on the SD card. My "Number of Tracks=-1". When I rotate the knob, it appears to go from track to track up to the 10 tracks I have loaded, but when I push the button, it is always track 1. I'm assuming this is because of the trackCount=-1. Any ideas what I might have done wrong? I renamed the files removing any spaces and replacing with "-". Is the a limit for the record name? I appreciate these fun things you've put together and always look forward to them. Thank you.

    • @thelastoutpostworkshop
      @thelastoutpostworkshop  13 วันที่ผ่านมา

      The filename of the files on the SD card are not important, the module address them by number. If you try to play the first track after the setup like this :
      mp3.initialize();
      mp3.playTrackNumber(1, 15, false);
      Does it work ?
      If you call mp3.player.readFileCounts() does the module report the correct number of files ?

    • @richardphillips1891
      @richardphillips1891 13 วันที่ผ่านมา

      @@thelastoutpostworkshop I appreciate your quick response. I can confirm the various tracks do play when turning the knob. It works both Clockwise and Counterclockwise. When I push the button, it keeps playing the first track. trackCount (mp3.player.readFileCounts();) is "-1". I'm assuming the trackCount not properly displaying the number of records is what is causing unexpected results. When I force the trackCount to 10 (the number of records) everything works fine. I tried with a different SD Card (different number of tracks and the value for mp3.player.readFileCounts(); again displayed as "-1". Very confusing. I am using version 1.0.6 of DFRobotDFPlayerMini on Arduino IDE 2.3.2 with a Arduino Nano. I'll keep trying things and let you know if I get a correct mp3.player.readFileCounts(); value. Thank you.

    • @richardphillips1891
      @richardphillips1891 13 วันที่ผ่านมา

      I tried a couple of things. What seemed to work, is doing the "mp3.player.readFileCounts();" twice. The first time returned a value of "-1". The second time returned a value of "10" (the correct number of tracks). This "double read" seems to work. I tried using a "delay(4000);" and "mp3.player.readFileCounts();" once. it didn't seem to work. I don't know if there is more that should be done after the "mp3.initialize();". Very strange. At least I'm getting an accurate track count now (I'll leave the double read in for now).

  • @mvd0ae_876
    @mvd0ae_876 6 หลายเดือนก่อน

    Hi, do you know if it is possible to control volume with an encoder as well? and play/stop functions with a button or something similar?

    • @thelastoutpostworkshop
      @thelastoutpostworkshop  6 หลายเดือนก่อน

      Yes it possible. If you look at this project : th-cam.com/video/-R0lFGUW06M/w-d-xo.html, I am using an encoder for volume control

  • @diodematrix3738
    @diodematrix3738 11 หลายเดือนก่อน

    Great little project, is there a way to display the file name thats playing on an oled display.

    • @thelastoutpostworkshop
      @thelastoutpostworkshop  11 หลายเดือนก่อน

      Yes it could be done, there a method to get the filename from a file number

  • @sanjayadulankateamlead-tra5874
    @sanjayadulankateamlead-tra5874 ปีที่แล้ว

    Suggest to add a display😏

  • @antonionava9428
    @antonionava9428 ปีที่แล้ว

    I can use a push button?

    • @thelastoutpostworkshop
      @thelastoutpostworkshop  ปีที่แล้ว

      Yes you could adapt the code to use a push button instead, for exemple a push goes to the next sound and a long push reverse the direction

    • @antonionava9428
      @antonionava9428 ปีที่แล้ว +1

      @@thelastoutpostworkshop Can you make a video using several buttons to play different audios? I tried to do it but it didn't work for me.

    • @MichaelSchubertPhoto
      @MichaelSchubertPhoto 5 หลายเดือนก่อน

      @@antonionava9428I would also love to see multiple buttons that play different songs/audio files.

  • @TheUnofficialMaker
    @TheUnofficialMaker ปีที่แล้ว +1

    mp3 burglar alarm