Difference between revisions of "Microduino LM4863 Music player -301KIT"

From Microduino Wiki
Jump to: navigation, search
 
(One intermediate revision by one other user not shown)
Line 4: Line 4:
 
|
 
|
 
==Outline==
 
==Outline==
Project:Microduino-Amplifier Music Player  
+
Project: Microduino-Amplifier Music Player  
  
Purpose:It adopts Microduino-Amplifier to play fixed music and controls the play or pause through a button.
+
Purpose: It adopts Microduino-Amplifier to play fixed music and controls the play or pause through a button.
  
Difficulty:Elementary
+
Difficulty: Elementary
  
Time-consuming:Half an hour
+
Time-consuming: Half an hour
  
Maker:Microduino Studio-YLB
+
Maker: Microduino Studio-YLB
 
|-
 
|-
 
|
 
|
Line 56: Line 56:
  
  
Test Code:
+
Test Code:
 
https://github.com/Microduino/Microduino_Tutorials/tree/master/Microduino_KIT/kit_LM4863_music
 
https://github.com/Microduino/Microduino_Tutorials/tree/master/Microduino_KIT/kit_LM4863_music
  
 
==Debugging==
 
==Debugging==
Step 1:Build the circuit  
+
Step 1: Build the circuit  
 
*Insert the memory card into Microduino-SD card slot
 
*Insert the memory card into Microduino-SD card slot
 
|-
 
|-
Line 85: Line 85:
 
|-
 
|-
 
|
 
|
Step 2:Maker audio  
+
Step 2: Maker audio  
*We’ll need a tool based Sto oX and choose the right conversion program according to the work frequence of your Microduino modules;  
+
*We'll need a tool based Sto oX and choose the right conversion program according to the work frequency of your Microduino modules;  
  
*Uncompress the audio file, enter the folder “Microduino with 16 MHz”, store the file into the folder and drag it to “FullRate@16MHz_Mono.bat” for batch processing;  
+
*Unzip the audio file, enter the folder "Microduino with 16 MHz", store the file into the folder and drag it to "FullRate@16MHz_Mono.bat" for batch processing;  
 
|-
 
|-
 
|
 
|
Line 94: Line 94:
 
|-
 
|-
 
|
 
|
*The program can be converted after the drag. A dialog box will pop up, showing “Enter Any Key to Continue...";  
+
*The program can be converted after the drag. A dialog box will pop up, showing "Enter Any Key to Continue...";  
  
 
|-
 
|-
Line 101: Line 101:
 
|-
 
|-
 
|
 
|
*After it is finished, you will find a newly-created folder and the converted file is just inside it. If not, you can convert the original audio file to “wav format” and try again.   
+
*After it is finished, you will find a newly-created folder and the converted file is just inside it. If not, you can convert the original audio file to "wav format" and try again.   
 
|-
 
|-
 
|
 
|
Line 108: Line 108:
 
|
 
|
 
*Cope the converted audio file to the memory card and insert the card into Microduino-SD card slot.  
 
*Cope the converted audio file to the memory card and insert the card into Microduino-SD card slot.  
*Use IED to open the test program offered by Microduino, choose the board “Microduino Core (Atmega328P@16M,5V)and download the program. Before the download, you should know:
+
*Use IED to open the test program offered by Microduino, choose the board "Microduino Core (Atmega328P@16M,5V)" and download the program. Before the download, you should know:
 
**Since some libraries may have different pin definition, please download the latest libraries to replace the former ones;  
 
**Since some libraries may have different pin definition, please download the latest libraries to replace the former ones;  
 
**In the program, you need to change the name of the audio file to that of the generated audio file.  
 
**In the program, you need to change the name of the audio file to that of the generated audio file.  
Line 116: Line 116:
 
|-
 
|-
 
|
 
|
==Vedio==
+
==Video==
http://v.youku.com/v_show/id_XNjY1Njg5ODQw.html
+
 
 
|}
 
|}

Latest revision as of 08:16, 13 September 2016

Language: English  • 中文

Outline

Project: Microduino-Amplifier Music Player

Purpose: It adopts Microduino-Amplifier to play fixed music and controls the play or pause through a button.

Difficulty: Elementary

Time-consuming: Half an hour

Maker: Microduino Studio-YLB

Bill of Materials

  • Microduino Equipment
Module Number Function
Microduino-Core 1 Core Board
Microduino-FT232R 1 For downloading the program
Microduino-SD 1 For storing the music file
Microduino-LM4863 1 For audio play
Microduino Duo-V 1 For ease of debugging
  • Other Equipment
Loudspeaker One
Breadboard One
Breadboard jumper One box
Button One
Memory card One
micro USB cable One
301KIT module

File

Test Code: https://github.com/Microduino/Microduino_Tutorials/tree/master/Microduino_KIT/kit_LM4863_music

Debugging

Step 1: Build the circuit

  • Insert the memory card into Microduino-SD card slot
301KIT-SD
  • Connect the loudspeaker
301KIT-Speak
  • Connect the button
301KIT-Button
  • Stack all modules together to have an overall buildup.
301KIT-system

Step 2: Maker audio

  • We'll need a tool based Sto oX and choose the right conversion program according to the work frequency of your Microduino modules;
  • Unzip the audio file, enter the folder "Microduino with 16 MHz", store the file into the folder and drag it to "FullRate@16MHz_Mono.bat" for batch processing;
Audio
  • The program can be converted after the drag. A dialog box will pop up, showing "Enter Any Key to Continue...";
Audio
  • After it is finished, you will find a newly-created folder and the converted file is just inside it. If not, you can convert the original audio file to "wav format" and try again.
Audio
  • Cope the converted audio file to the memory card and insert the card into Microduino-SD card slot.
  • Use IED to open the test program offered by Microduino, choose the board "Microduino Core (Atmega328P@16M,5V)" and download the program. Before the download, you should know:
    • Since some libraries may have different pin definition, please download the latest libraries to replace the former ones;
    • In the program, you need to change the name of the audio file to that of the generated audio file.

Result

After the download, just press the button to play music and one more press to pause the music.

Video