It is the micro card, not not the larger card, so you got to make sure you have a micro sd to use this device um. ![]() At least i did to get this working so its kind of an interesting little uh nuance that we have to be aware of, but lets take a look at what the library looks like and look at a simple example code.īut first what i want to do is actually show how to get your own song onto the sd card, so were going to get a micro sd card all right, so ive got the micro sd card im going to plug it in over here in my computer, With my, i just have the standard micro sd card reader, which i can unplug in a micro sd card right here. Well, come back to this when were wiring it up, because you actually have to flip the tx and rx for this particular board. All right next up, weve got tx and rx, so im going to make the yellow tx and the orange rx okay so were going to leave the tx and rx disconnected for right now. Got lets see so first i got the ground: pin were going to connect this to ground im, going to make a ground and plus 5 volt connection to the arduino right there right there cool now, im going to connect to vcc to 5 volts on the arduino. Ive got ground, vc, ctx and rx, so im going to plug those into the breadboard anywhere, really is fine. These pins are already soldered, which is pretty nice. 3.5 millimeter auxiliary, audio, cable jack. So ive got my bluetooth speaker, its got an auxiliary audio cable, so i am going to hook that up and then get ready to play through the serial mp3 player. Pretty simple in this example, so i do have an uh bluetooth speaker here. Okay, so first ill show you the electrical connections. We can connect it and then we can also load up our song onto the sd card. First weve got our little board right here. How you can integrate this in the arduino code, so first things. We load onto the sd card, so im going to show you the fastest way to get this working and show you some tips and tricks. Its best to find a library, thats easy to use that can play whatever song or sound. So we have to figure out how to hook this up and instead of writing the serial code ourselves. This is a serial module that says serial mp3 player. But we can see that because theres an rx and a tx uh and then vcc and ground. Some answered questions that show you a couple of different options in terms of how you interact with this. So if you check out the documentation, theres not a lot here, there are some ratings theres. This particular one im going to show you is generic to the yx 5300 chip that that this board contains, but this particular one is made by i i deepen and its a pretty nice little module that can play whatever sound or song you want. I want to show you how to use the yx 5300, its a serial control module that can play mp3 songs or sounds that you load onto an sd card and you can trigger that very easily with arduino other microcontroller.
0 Comments
Leave a Reply. |