Editor Version ×
Standard

1.Easy to use and quick to get started

2.The process supports design scales of 300 devices or 1000 pads

3.Supports simple circuit simulation

4.For students, teachers, creators

Profession

1.Brand new interactions and interfaces

2.Smooth support for design sizes of over 5,000 devices or 10,000 pads

3.More rigorous design constraints, more standardized processes

4.For enterprises, more professional users

Ongoing

STD Grove - Serial MP3 Player

License:

Mode: Editors' pick

  • 2k
  • 0
  • 1
Update time: 2021-04-09 17:56:57
Creation time: 2016-01-15 12:30:23
Description
Grove - Serial MP3 Player ------------------------- ![enter image description here][1] Grove-Serial MP3 Player is a kind of simple MP3 player device whose design is based on a high-quality MP3 audio chip---WT5001. It can support 8KHZ~44.1KHZ sampling frequency MP3 and WAV file formats. This product has several peripheral ports: a standard UART Grove interface, a dual track headphone jack, an external interface and also a micro SD card interface. You can control the MP3 playback state by sending commands to module via serial port tools, such as switch songs, change the volume and play mode and so on. It seems a simple module, but it owns such strong function. Want to know how the sound quality? Please come to experience it! Features Standard Grove interface Asynchronous serial port control play mode Busy Indicator Reset Button Standard micro SD card Interface Support FAT16 and FAT32 file system For more detail, please visit: http://www.seeedstudio.com/item_detail.html?p_id=1542 /*****************************************************************************/ // Function: control the seeedstudio Grove MP3 player // Hardware: Grove - Serial MP3 Player /*******************************************************************************/ #include SoftwareSerial mp3(2, 3);//modify this with the connector you are using. void setup() { mp3.begin(9600); Serial.begin(9600); delay(100); if (true ==SetPlayMode(0x01)) Serial.println("Set The Play Mode to 0x01, Single Loop Mode."); else Serial.println("Playmode Set Error"); PauseOnOffCurrentMusic(); } void loop() { SetPlayMode(0x01); delay(1000); SetMusicPlay(00,01); delay(1000); SetVolume(0x0E); while(1); } //Set the music index to play, the index is decided by the input sequence //of the music; //hbyte: the high byte of the index; //lbyte: the low byte of the index; boolean SetMusicPlay(uint8_t hbyte,uint8_t lbyte) { mp3.write(0x7E); mp3.write(0x04); mp3.write(0xA0); mp3.write(hbyte); mp3.write(lbyte); mp3.write(0x7E); delay(10); while(mp3.available()) { if (0xA0==mp3.read()) return true; else return false; } } // Pause on/off the current music boolean PauseOnOffCurrentMusic(void) { mp3.write(0x7E); mp3.write(0x02); mp3.write(0xA3); mp3.write(0x7E); delay(10); while(mp3.available()) { if (0xA3==mp3.read()) return true; else return false; } } //Set the volume, the range is 0x00 to 0x1F boolean SetVolume(uint8_t volume) { mp3.write(0x7E); mp3.write(0x03); mp3.write(0xA7); mp3.write(volume); mp3.write(0x7E); delay(10); while(mp3.available()) { if (0xA7==mp3.read()) return true; else return false; } } boolean SetPlayMode(uint8_t playmode) { if (((playmode==0x00)|(playmode==0x01)|(playmode==0x02)|(playmode==0x03))==false) { Serial.println("PlayMode Parameter Error! "); return false; } mp3.write(0x7E); mp3.write(0x03); mp3.write(0xA9); mp3.write(playmode); mp3.write(0x7E); delay(10); while(mp3.available()) { if (0xA9==mp3.read()) return true; else return false; } } [1]: /editor/20160115/5698e6ebd829b.png
Design Drawing
schematic diagram
1 /
PCB
1 /
The preview image was not generated, please save it again in the editor.
ID Name Designator Quantity
1 SD Card J6 1
2 2.2nF C17 1
3 33nF C10 1
4 0R R2,R13,R3,R5 4
5 4.7k R4,R12,R10,R8,R11,R7 6
6 100nF C6,C16,C19,C15,C12,C7,C9,C18 8
7 AUDIO-8P-SMD J3 1
8 CJ2302 Q1,Q2 2
9 DNP C14,C11,C5,C13 4
10 32.768K X1 1
11 RESET RESET1 1
12 1M R6 1
13 DNP OUT_R,OUT_L 2
14 1K R1 1
15 TWIG-4P-2.0-2.0 J1 1
16 10uF 16V C3,C2,C1 3
17 PAD-TEST-POINT 3V3,1V8,LEFT,RIGHT 4
18 DNP D3,D2,D4 3
19 10R R9 1
20 WT5001-48L U1 1
21 SEEEDSTUDIO_SCH_FRAME U$4 1
22 15pF C4,C8 2
23 DNP RESET 1
24 red D1 1

Unfold

Project Attachments
Empty
Project Members
Target complaint
Related Projects
Change a batch
Loading...
Add to album ×

Loading...

reminder ×

Do you need to add this project to the album?

服务时间

周一至周五 9:00~18:00
  • 0755 - 2382 4495
  • 153 6159 2675

服务时间

周一至周五 9:00~18:00
  • 立创EDA微信号

    easyeda

  • QQ交流群

    664186054

  • 立创EDA公众号

    lceda-cn