Difference between revisions of "MCookie-Audio"

From Microduino Wiki
Jump to: navigation, search
(Dial Wheel Button Control)
 
(4 intermediate revisions by 2 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 uses memory card to save songs to Audio Shield and amplifies sound together with [[mCookie-Amplifier]]. Audio and Audio shield stacked can be stacked to computer and serves as a card reader, which can be used for file transmission.  
+
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.
*With broadcast language insertion function, you can pause the playing background music.  
 
 
*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 (0x00-0x1E)
+
*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 62: Line 61:
 
</source>
 
</source>
  
*Insert TF card to Audio Sheild slot.  
+
*Insert TF card to Audio Shield slot.  
*Stack AudioSheild and Audio, connect the Audio to your computer, and then you can save songs to TF card. Here we can save nine songs.
+
*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.
 
*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 AudioSheild. (Only these three modules need to be connected together. Not for the other modules.)  
+
*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.  

Latest revision as of 03:19, 4 August 2017

Language: English  • 中文
mCookie-Audio

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.




Features

  • Adopt serial port control with default serial (D2,D3). Serial port can be selected by jumpers: Serial (D0, D1), soft serial port(D4, D5).
  • Allow external memory card connection and play as well as disk display while connecting with a computer and content update.

Specification

  • MP3 format:
  • Support asynchronous serial communication mode and receive commands sent from the upper computer by serial port:
    • Communication standard: 9600 bps;
    • Data bit:1;
    • Check bit: none;
    • Flow control: none.
  • 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.
  • 30-level volume adjustable
    • Support Play, Pause, Last one, Next one and Play certain audio.

Document

JQ6500 audio chip description: File:JQ6500.pdf

MCookie-Audio-pin.jpg

Development

Copy music to Audio shield

  • Insert memory card into Audio shield
MusicBox Joystick TF.jpg
  • Stack Audio shield and Audio and connect them to your computer via a USB cable. And you'll see a disk on the computer.
MusicBox Joystick song.jpg
  • Copy songs to the disk.

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
  • 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.
  • Connect loudspeaker to the interface of Amplifier.
MusicBox Joystick song speak.JPG
  • Stack Amplifier, Audio and AudioShield. (Only these three modules need to be connected together. Not for the other modules.)
MusicBox Joystick 3 speak.JPG
  • Connect the battery pack to the BM module.
CoreUSB Ble steup2.jpg
  • Stack the other modules and connect them to BM shield. Then you can system power supply.
    • Audio must be powered through BM and it cannot powered by computer via CoreUSB, otherwise, it may cause system breakdown.
  • 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

It can be widely used in all kinds of voice broadcast:

  • Car navigation voice broadcast
  • Road transport inspection and toll station voice prompt;
  • Railway station and bus station security inspection voice prompt;
  • Electricity, communication and financial business office voice prompt;
  • Vehicle entry and exit channel verification voice prompt;
  • Public security frontier inspection channel voice prompt;
  • Multi-channel voice alarm or device operation guide voice;
  • Electric sight-seeing car safe driving voice prompt;

Purchase

History

Pictures

Audio&&shield-SD
Audio&&shield-SD
Audio&&shield-SD

Video