Also, removable batteries help eliminate planned obsolescence. * Removable batteries like rechargeable AA’s or beefy 18650’s. Some other things that would be nice in a long format MP3 player: * Mono/Stereo selector so only one ear-bud or speaker is needed. Unfortunately all the small stand-alone MP3 players I see these days are crippled when it comes to long format content because of one missing feature – no non-volatile bookmarks that work across SD cards. These small stand-alone MP3 players should be great for listening to long format content like audiobooks and podcasts, they can have long battery life so you’re not running down your phone when you are biking or on public transport, plus they are cheaper, smaller, lighter, and less fragile than a phone. Posted in digital audio hacks, Portable Audio Hacks Tagged arduino pro mini, DFRobot, FAT16, FAT32, mp3, soundcloud, TP4056 Post navigation While you’re here, take a look at some of our other MP3 projects. also introduces users to the U8g2 display library which he says is a bit more feature-rich than the common Adafruit SSD1306 library. There’s even a small Python GUI to help you get your new player up and running. With the hardware sorted, all you’ve got to do is flash the firmware and load up an SD card with some MP3s. does a good job walking readers through the build making it fairly easy to remix, reuse, and reshare. It can even play ads in between songs, should you want such a thing.Ĭontrolling the DFPlayer module is easy using serial commands from a microcontroller, making it a convenient subsystem in bigger projects, and a potential alternative to the popular VLSI chips or the hard to come by WT2003S IC. This tiny module comes packed with a ton of interesting capabilities such as EQ adjustment, volume control, and a 3 watt amplifier amongst other things. Serial.When saw DFRobot’s DFPlayer module, he decided he wanted to make his own retro MP3 player. Serial.println(" aumenta ou diminui o volume") Serial.println(" seleciona equalizacao") Serial.println(" pausa/continua a musica") Serial.println("] Para selecionar o arquivo MP3") So each time, the scheme will be printing the Options Menu you have, with commands, directions. You control this entire assembly through the serial monitor. Serial.print("Numero de arquivos no cartao SD: ") MaxSongs = myDFPlayer.readFileCounts(DFPLAYER_DEVICE_SD) recupera o numero de Músicas encontradas no SD. MyDFPlayer.volume(10) //Volume 10 vai de 0 a 30 Serial.println("Modulo DFPlayer Mini inicializado!") Serial.println("1.Cheque as conexoes do DFPlayer Mini") Serial.println("Inicializando modulo DFPlayer. Serial.begin(115200) //Verifica se o modulo esta respondendo e se o In this step, we put options of prints to give you indications that it is mounting the circuit, with evaluations of false conditions, for example. variável responsável por armazenar o total de músicas presentes no SD card. Int equalizacao = 0 // (0 = Normal, 1 = Pop, 2 = Rock, 3 = Jazz, 4 = Classic, 5 = Bass)" variável responsável por armazenar o estado da equalização variável responsável por armazenar o estado do player (0: tocando 1: pausado) variável responsável por armazenar os comandos enviados para controlar o player Objeto responsável pela comunicação com o módulo MP3 (DFPlayer Mini) SoftwareSerial mySoftwareSerial(10, 11) // RX, TX Inicia a serial por software nos pinos 10 e 11 #include "SoftwareSerial.h" #include "DFRobotDFPlayerMini.h" The "pause" variable will be used to indicate if the music is playing or paused (pause = true, and indicates that it is paused, otherwise it is playing). The buf variable, which is of type String, will serve to store the data coming from the Arduino Serial, which will be the commands for the MP3 module. Start by creating one object, the serial software, and another, which is myDFPlayer. We'll start by defining the libraries and constants we'll use with our code.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |