Make an Arduino Music Player Using A Sparkfun MP3 player shield - A beginner tutorial

Sdílet
Vložit
  • čas přidán 21. 08. 2024

Komentáře • 39

  • @rubensbraz
    @rubensbraz Před 2 měsíci +1

    really good! thank you

  • @danielcohelloanez4558
    @danielcohelloanez4558 Před 4 měsíci +1

    Great video! I was hoping I could ask two questions:
    -When a file has been played, does it stop or does it go to the next one automatically?
    -Is there any indicator signal or flag to know when a file has stopped playing?
    The reason I'm asking is because I want to build a project with one of these and a single motion sensor (PIR), and I want it to play a different file every time it detects motion (that's not the difficult part), the thing is that I don't want the motion detection to interrupt a file that is already playing, but to let it finish and then play the next one when motion is detected after having played the previous one.
    Thanks!

    • @BMonsterLaboratory
      @BMonsterLaboratory  Před 4 měsíci +1

      Hello, and thank you for the compliment! I have several videos using this Sparkfun mp3 player shield. I have a video that matches your description right here - czcams.com/video/zamlAniU2nQ/video.html
      You can find the Arduino sketch for that video on our Facebook page by searching "mp3uino" on Facebook, just check the comment section. If you have any questions about changing the code or adding something that's not included, feel free to ask. Have fun and thanks for reaching out! 👍

  • @michaelkuehnel7196
    @michaelkuehnel7196 Před rokem +1

    Next Challenge is to make buttons that "play next track" and "play previous track". These are not in the library, at least for the Adafruit version of the board. I will post if I can figure it out. Started by indexing my SD card and counting the number of songs on it. Then I started to write a method to return the filename at and index location so I can use that to return a song at a given location. The program loop can then maintain the song index location based on button presses, and appropriately pass the correct filename to the "play song" method. Assume names are different between libraries. At this point I just can't seem to typecast the name of the song once returned from the method that finds the song name at a given index location so the "play song" method will accept it. Although most people will simply use I/O sensors or push buttons to trigger specific files to play, thought it would be fun to have a fully functional arduino based mp3 player.

    • @BMonsterLaboratory
      @BMonsterLaboratory  Před rokem

      Hi Michael! great comment. The SFEMP3Shield library has "Next Track" included in the sketch. I have a motion activated player video with this shield that includes random shuffle - you can check that out here czcams.com/video/zamlAniU2nQ/video.html. Use "the code" time stamp to get to that part of the video quickly if you like. The code was posted to our Facebook page if you find it helpful.

  • @Bianchi77
    @Bianchi77 Před rokem +1

    Nice video, well done, thank you for sharing it with us :)

  • @zaChoovith
    @zaChoovith Před 7 měsíci +1

    Nice video Thank you

  • @user-zg7rb3jk2u
    @user-zg7rb3jk2u Před rokem +2

    Is it possible to choose a track via a potentiometer? We want to play the sound of an old ships engine by using the original oparating stand.

    • @BMonsterLaboratory
      @BMonsterLaboratory  Před rokem +1

      Hey there! Yes, You can. You would need to connect the middle pin of the potentiometer to an analog input pin and use analogRead() function to read potentiometer value.

    • @BMonsterLaboratory
      @BMonsterLaboratory  Před rokem +1

      I will post a CZcams #shorts video of track selection using a potentiometer. It will go up tomorrow morning. The code will be on our Facebook page if interested. 👍

    • @user-zg7rb3jk2u
      @user-zg7rb3jk2u Před rokem +1

      @@BMonsterLaboratory Thanks for your quick response. It was very helpful. I am looking forward for the video on the potentiometer.

    • @BMonsterLaboratory
      @BMonsterLaboratory  Před rokem

      @@user-zg7rb3jk2u it will be posted in 20min. I'll post code on Facebook tonight. I hope you find it helpful

  • @hydl25526
    @hydl25526 Před měsícem +1

    can we plug a tft shield 2,4 inch module in top of that and make the music menu in touchscreen so it will accesible in our screen?

    • @BMonsterLaboratory
      @BMonsterLaboratory  Před 29 dny

      hey there! I've never done it but perhaps it can be done. There are some available pins on this shield.
      The Arduino's three SPI data and clock pins -- D11, D12, and D13 -- can be used to interface to other SPI components. They can't, however, be used for any purpose other than SPI. Digital pins 5, 10, and all analog pins (A0 through A5) are available.
      Your TFT connection to the shield may look something like this:
      TFT_CS: Digital 10
      TFT_CD: Digital 5
      TFT_WR: Analog 0 (A0)
      TFT_RD: Analog 1 (A1)
      TFT_RESET: Analog 2 (A2)
      MOSI: Digital 11 (SPI)
      MISO: Digital 12 (SPI)
      SCK: Digital 13 (SPI)
      I haven't done this and you'll want to double check all connections and power before you turn it on.
      check here for more info about the mp3 shield: learn.sparkfun.com/tutorials/mp3-player-shield-hookup-guide-v15 Good luck to you! 👍👍

  • @frankkante7850
    @frankkante7850 Před 11 měsíci +1

    great !

  • @diegoaleman7822
    @diegoaleman7822 Před rokem +1

    great video did you end up fixing the music restarting every time you unpaused it

    • @BMonsterLaboratory
      @BMonsterLaboratory  Před rokem

      Thanks, Diego! No, I didn't change it. I've used this board for a number of other projects but if I ever build this again I would consider that. It would be annoying if you used the pause button much. So farr, this shield has be awesome.

  • @markvv596
    @markvv596 Před 4 měsíci +1

    I tried adding the addon in multiple ways but Arduino is not recognizing it anymore? can you attempt to do it again and see if you have the same issue, to see if you have a fix?

    • @BMonsterLaboratory
      @BMonsterLaboratory  Před 4 měsíci

      hey there! I can help out this evening if you still need it. Are you referring to the shield as the addon? Are you having trouble seating it into the redboard, or Uno ? I just received a shipment of 10 of these that I need to solder and attach to the redboard. Are your solder joints good? I am happy to help with any step along the way.

  • @husseinalameri8514
    @husseinalameri8514 Před rokem +1

    Hello, How we can play a specific track, for example, if I have 10 mp3 files and I like to play the 5th one. thank you in advance

    • @BMonsterLaboratory
      @BMonsterLaboratory  Před rokem

      HI there! I believe it's possible and I would like to play around with the shield to set it up. Are you thinking of a number pad and lcd display? How about turning a potentiometer to scroll through the songs that are shown on the LCD display? I like this idea. There are only a handful of pins available to use on this mp3 player shield but I can see what I come up with. 👍

  • @etruretyutyju
    @etruretyutyju Před 2 lety +1

    Hello! Fun project! I would like to try out this project, but before I buy the items, I want to make sure I buy compatible pieces. Would you be able to make a list of links to the items (amazon or other).

    • @BMonsterLaboratory
      @BMonsterLaboratory  Před 2 lety

      hey there. great to hear for ya! I bought the 3 main items from Amazon (redboard, mp3 shield, and speaker). I linked 3 items in the description. You can also buy the 2 boards at Sparkfun website but shipping may take longer and they may be out of stock. Seems like the mp3 shield goes out of stock frequently but there are currently 6 available on Amazon. Adding a motion sensor to this board is a fun project as well. Let me know if you have any questions. Good luck to you!

    • @etruretyutyju
      @etruretyutyju Před 2 lety +1

      ​@@BMonsterLaboratory When I download the zip library for the Sparkfun-MP3-Player-Shield-Arduino-Library I get an error message. "Invalid library found in C: ... : no headers files (.h) found in C: ... "
      Any suggestions?

    • @etruretyutyju
      @etruretyutyju Před 2 lety +1

      Arduino_Library-vs1053_for_SdFat seems to be working however. Is this code similar enough?

    • @BMonsterLaboratory
      @BMonsterLaboratory  Před 2 lety +1

      @@etruretyutyju do you have the "SFEMP3Shield" and "SdFat" files installed as arduino libraries? They are part of the "Sparkfun-MP3-Player-Shield-Arduino-Library-master" file

    • @BMonsterLaboratory
      @BMonsterLaboratory  Před 2 lety

      @@etruretyutyju I assume you unzipped the file through library manager tab in IDE

  • @user-yy6tp8uf3u
    @user-yy6tp8uf3u Před rokem +1

    Hi! My button Setup plays very quietly, do you have an idea how I can make it play louder. It is barely audible over my box.

    • @BMonsterLaboratory
      @BMonsterLaboratory  Před rokem

      Hi there! What kind of speaker do you have connected? Does it have a built in amplifier or do you need to add one?

    • @user-yy6tp8uf3u
      @user-yy6tp8uf3u Před rokem

      ​@@BMonsterLaboratoryI have this one:Philips
      Bluetooth speaker, SBA3011ORG/00. I don't know if it has a built-in amplifier

    • @BMonsterLaboratory
      @BMonsterLaboratory  Před rokem

      @@user-yy6tp8uf3u I looked up the speaker. The Philips Bluetooth speaker SBA3011ORG/00 is an active speaker. It has its own built-in amplifier and does not require an external amplifier or receiver to produce sound. Are you connecting it by 3.5mm aux ? Did you use the same code and setup as in the video?

  • @willemjanvandenhondel5860

    hi,
    when i tried to verify the code my computer keeps saying 'fatal error: FreeStack.h: No such file or directory' even after downloading the zip file, do you have any idea how i could fix the error?
    thank you in advance, Willem Jan

    • @BMonsterLaboratory
      @BMonsterLaboratory  Před 2 lety

      Hi there! So you downloaded the zip file but did you import the .zip library? In the IDE go to sketch- include library- add .zip library and select thre library to add. Give that a try.

  • @elgitanowest
    @elgitanowest Před rokem +1

    Did you record on this card? i try with v44k1q05.img, but i have a lot of noice. My voice and a lot of noice. Do you get a better result?

    • @BMonsterLaboratory
      @BMonsterLaboratory  Před rokem

      Hi there. I haven't recorded anything with it. How are you doing this? Sounds interesting. I'd like to try it out. Sorry i'm not much help at the moment.