Difference between revisions of "MCookie-Audio"
From Microduino Wiki
(→Dial Wheel Button Control) |
|||
(8 intermediate revisions by 4 users not shown) | |||
Line 4: | Line 4: | ||
| | | | ||
[[File: mCookie-Audio-rect.jpg|400px|thumb|right|mCookie-Audio]] | [[File: mCookie-Audio-rect.jpg|400px|thumb|right|mCookie-Audio]] | ||
− | mCookie-Audio is an audio play module with serial communication. It | + | mCookie-Audio is an audio play module with serial communication. It adopts a memory card to save songs on the Audio Shield and amplifies sound via [[mCookie-Amplifier]]. mCookie-Audio and the Audio shield can be stacked to computer and served as a card reader, used for file transmission. |
Line 19: | Line 19: | ||
* MP3 format: | * MP3 format: | ||
*Support asynchronous serial communication mode and receive commands sent from the upper computer by serial port: | *Support asynchronous serial communication mode and receive commands sent from the upper computer by serial port: | ||
− | **Communication standard: 9600 bps | + | **Communication standard: 9600 bps; |
− | **Data bit:1 | + | **Data bit:1; |
− | **Check bit: none | + | **Check bit: none; |
− | **Flow control: none | + | **Flow control: none. |
− | *Support FAT16 and FAT32 system as well as 32G memory card to the maximum | + | *Support FAT16 and FAT32 system as well as 32G memory card to the maximum. |
− | |||
*Audio data is sorted by folders with 100 folders at the most supportable. Each folder can be sorted with 1000 pieces of music. | *Audio data is sorted by folders with 100 folders at the most supportable. Each folder can be sorted with 1000 pieces of music. | ||
− | *30-level volume adjustable | + | *30-level volume adjustable |
− | * * Support Play, Pause, Last one, Next one and Play certain audio | + | ** Support Play, Pause, Last one, Next one and Play certain audio. |
==Document== | ==Document== | ||
Line 42: | Line 41: | ||
*Copy songs to the disk. | *Copy songs to the disk. | ||
− | === | + | ===Thumbwheel Button Control=== |
*Hardware needed: [[mCookie-CoreUSB]], [[mCookie-OLED]], [[mCookie-Amplifier]], mCookie-Audio, Audio shield, [[mCookie-BM]], [[mCookie-BM shield]], two loudspeakers and two cells of battery; | *Hardware needed: [[mCookie-CoreUSB]], [[mCookie-OLED]], [[mCookie-Amplifier]], mCookie-Audio, Audio shield, [[mCookie-BM]], [[mCookie-BM shield]], two loudspeakers and two cells of battery; | ||
*Code example download: [[File:Music Text.zip|Music Text]] | *Code example download: [[File:Music Text.zip|Music Text]] | ||
*Connect CoreUSB to your computer, start Arduino IDE and open example program. | *Connect CoreUSB to your computer, start Arduino IDE and open example program. | ||
*Click and upload program. When you see "Uploaded", it means the program has been uploaded to CoreUSB successfully. | *Click and upload program. When you see "Uploaded", it means the program has been uploaded to CoreUSB successfully. | ||
− | Program description: " | + | Program description: " audio.h " is audio file control, responsible for sending control instruction to Audio module. |
− | 1. Under default serial port, you can select communication serial port from " | + | 1. Under default serial port, you can select communication serial port from " audio.h " based on the core modules you use. |
<source lang="cpp"> | <source lang="cpp"> | ||
//#define AUDIO_PORT Serial1 | //#define AUDIO_PORT Serial1 | ||
Line 62: | Line 61: | ||
</source> | </source> | ||
− | *Insert TF card to Audio | + | *Insert TF card to Audio Shield slot. |
− | + | *Stack AudioShield and Audio, connect the Audio to your computer, and then you can save songs to TF card. Here we can save nine songs. | |
− | *Stack | ||
*Connect loudspeaker to the interface of Amplifier. | *Connect loudspeaker to the interface of Amplifier. | ||
[[file: MusicBox_Joystick _song_speak.JPG|600px|center]] | [[file: MusicBox_Joystick _song_speak.JPG|600px|center]] | ||
− | *Stack Amplifier, Audio and | + | *Stack Amplifier, Audio and AudioShield. (Only these three modules need to be connected together. Not for the other modules.) |
[[file: MusicBox_Joystick _3_speak.JPG|600px|center]] | [[file: MusicBox_Joystick _3_speak.JPG|600px|center]] | ||
*Connect the battery pack to the BM module. | *Connect the battery pack to the BM module. | ||
Line 75: | Line 73: | ||
*Operation Description: | *Operation Description: | ||
− | + | **Press down the thumbwheel to play or pause. | |
+ | **Toggle right or left to change songs. | ||
+ | **Keep toggling to the right or left to adjust the volume. | ||
==Projects== | ==Projects== | ||
Line 97: | Line 97: | ||
[[file:mCookie-Audio-KEY-SD2.JPG|thumb|600px|center|Audio&&shield-SD]] | [[file:mCookie-Audio-KEY-SD2.JPG|thumb|600px|center|Audio&&shield-SD]] | ||
[[file:mCookie-Audio-KEY-SD3.JPG|thumb|600px|center|Audio&&shield-SD]] | [[file:mCookie-Audio-KEY-SD3.JPG|thumb|600px|center|Audio&&shield-SD]] | ||
− | |||
− | |||
==Video== | ==Video== | ||
|} | |} |
Latest revision as of 03:19, 4 August 2017
Language: | English • 中文 |
---|
mCookie-Audio is an audio play module with serial communication. It adopts a memory card to save songs on the Audio Shield and amplifies sound via mCookie-Amplifier. mCookie-Audio and the Audio shield can be stacked to computer and served as a card reader, used for file transmission.
ContentsFeatures
Specification
DocumentJQ6500 audio chip description: File:JQ6500.pdf
DevelopmentCopy music to Audio shield
Thumbwheel Button Control
Program description: " audio.h " is audio file control, responsible for sending control instruction to Audio module. 1. Under default serial port, you can select communication serial port from " audio.h " based on the core modules you use. //#define AUDIO_PORT Serial1
#define AUDIO_PORT mySerial 2. Initialize Audio module and select play mode. #define MODE_loopAll 0 //Loop all the time
#define MODE_loopOne 1 //Loop once
#define MODE_One_STOP 2 //Single cycle
#define MODE_One_END 4 //Play once
ProjectsIt can be widely used in all kinds of voice broadcast:
PurchaseHistoryPicturesVideo |