![]() But don't forget to change the port number in the definition of the demo code at the same time. You can change to the digital port as well. Plug the Grove-Base Shield onto the Music shield, Connect the Grove socket of the Rotary and analog port 4 of the Base Shield with a Grove cable. When you complete the upload,new add songs will be played. īut you must ensure that the song has been stored in the SD card and the format of those songs must be one of MP3,WMA,WAV,AAC,MIDI,Ogg Vorbis. Select songs from the playlist.You just need to list songs you want to play by name correctly in the function addToPlayList(char *songName). Open the “addToList” example via the path: File → Examples → MusicPlayer → addToList. This demo will show you how to play part of the songs from all songs in the SD card. Of course, you can try others play modes. When multifunction button is pressed up or down, the volume will change. Click to Serial Monitor when “Done uploading” appears, you will find the order of songs is randomized on the list. Select the correct serial port you are using by the path: Tools → Serial Port → for example COM3.Select the type of Arduino board that you are using by the path: Tools → Board → for example Arduino UNO. Each mode stands for different playing orders. There are four modes you can set: MODE_NORMAL, MODE_SHUFFLE, MODE_REPEAT_LIST, MODE_REPEAT_ONE. ** Name:** setPlayMode(unsigned char playmode) In “creatList”, the function we use is described as follows. Open “creatList” example via the path: File → Examples → MusicPlayer → creatList as below. In order to use the playback function, you need to create a playlist first. ![]() Change the included header (to Arduino.h) in the example file if there is a 'arduino.h: No such file or directory' error while compiling.ĭemo 1: Play songs (e.g.Change the folder name of the extracted library if Arduino throws an error while loading.ISP interface: for bringing SPI port when using with Mega series products.ĭ3 - Receiving signal from button for Volume Up.ĭ4 - Receiving signal from switch for Next Song function.ĭ5 - Receiving signal from switch for Play&Stop and Record function.ĭ6 - Receiving signal from switch for Previous Song function.ĭ7 - Receiving signal from button for Volume Down.Ī3 - Chip Select of VS1053 Getting Started ¶ U2: VS1053B IC,Ogg Vorbis/MP3/AAC/WMA/FLAC/MIDI audio codec. Micro SD card: Can be FAT16 or FAT32, the maximum size SD card you can use is 2GB. Headsets interface: It can drive 16 ohm or 32 Ohm earphone and could serve as a external audio input port. **Play/Pause indicator LED (GREEN):**Blinks while playing. Multifunction button: Change volume and select songs. And the maximum size SD card you can use is 2GB. The recording function works with Seeeduino Mega and Arduino Mega only.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |