“Microduino LM4863 Music player -301KIT”的版本间的差异

来自Microduino Wikipedia
跳转至: 导航搜索
(Created page with "{| style="width: 800px;" |- | ==Outline== Project:Microduino LM4863 music player Objective:Use Microduino LM4863 play the music, use the button to achive the "start","sto...")
 
Pkj讨论 | 贡献
 
(未显示同一用户的2个中间版本)
第1行: 第1行:
 +
{{Language|Microduino_LM4863_Music_player_-301KIT}}
 
{| style="width: 800px;"
 
{| style="width: 800px;"
 
|-
 
|-
 
|
 
|
 
==Outline==
 
==Outline==
Project:Microduino LM4863 music player
+
Project:Microduino-Amplifier Music Player
  
Objective:Use Microduino LM4863 play the music, use the button to achive the "start","stop" function.
+
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
第15行: 第16行:
 
|
 
|
 
==Bill of Materials==
 
==Bill of Materials==
*Microduino equipment
+
*Microduino Equipment
 
{|class="wikitable"
 
{|class="wikitable"
 
|-
 
|-
 
|Module||Number||Function
 
|Module||Number||Function
 
|-
 
|-
|Microduino-Core||1||Core module
+
|Microduino-Core||1||Core Board
 
|-
 
|-
|Microduino-FT232R ||1||Download program
+
|Microduino-FT232R ||1||For downloading the program
 
|-
 
|-
|Microduino-SD||1||Store music file
+
|Microduino-SD||1||For storing the music file  
 
|-
 
|-
|Microduino-LM4863||1||Audio play
+
|Microduino-LM4863||1||For audio play
 
|-
 
|-
|Microduino Duo-V||1||Easy to debug
+
|Microduino Duo-V||1||For ease of debugging
 
|}
 
|}
 
|-
 
|-
 
|
 
|
*Other equipment
+
*Other Equipment
 
{|class="wikitable"
 
{|class="wikitable"
 
|-
 
|-
|Horn||one
+
|Loudspeaker||One
 
|-
 
|-
|Bread board||one
+
|Breadboard||One
 
|-
 
|-
|Breadboard Jumper||one box
+
|Breadboard jumper||One box
 
|-
 
|-
|Button||one
+
|Button||One
 
|-
 
|-
|memory card||one
+
|Memory card||One
 
|-
 
|-
|micro usb data calbe||one
+
|micro USB cable||One
 
|}
 
|}
 
|-
 
|-
 
|
 
|
[[File:301-KIT.jpg|600px|center|thumb|301KIT图片]]
+
[[File:301-module.jpg|600px|center|thumb|301KIT module]]
 
|-
 
|-
 
|
 
|
==Document==
+
==File==
 +
 
 +
 
 +
Test Code:
 +
https://github.com/Microduino/Microduino_Tutorials/tree/master/Microduino_KIT/kit_LM4863_music
  
|-
 
|
 
 
==Debugging==
 
==Debugging==
Step 1:Set up circuit
+
Step 1:Build the circuit  
*Insert the memory card into Microduino SD card slot.
+
*Insert the memory card into Microduino-SD card slot
 
|-
 
|-
 
|
 
|
[[File:301KIT-sd.jpg|600px|center|thumb|301KIT-SD]]
+
[[File:301KIT-SD.jpg|600px|center|thumb|301KIT-SD]]
 
|-
 
|-
 
|
 
|
*Connect the horm
+
*Connect the loudspeaker
 
|-
 
|-
 
|
 
|
[[File:301KIT-speak.jpg|600px|center|thumb|301KIT-Speak]]
+
[[File:301KIT-speaker.jpg|600px|center|thumb|301KIT-Speak]]
 
|-
 
|-
 
|
 
|
*Connect the button
+
*Connect the button  
 
|-
 
|-
 
|
 
|
[[File:201KIT-button.jpg|600px|center|thumb|301KIT]]
+
[[File:201KIT-button.jpg|600px|center|thumb|301KIT-Button]]
 
|-
 
|-
 
|
 
|
*Install all modules
+
*Stack all modules together to have an overall buildup.
 
|-
 
|-
 
|
 
|
[[File:301KIT-Ok.jpg|600px|center|thumb|301KIT-ok]]
+
[[File:301KIT-system.jpg|600px|center|thumb|301KIT-system]]
 
|-
 
|-
 
|
 
|
Step 2:Make the audio file.
+
Step 2:Maker audio  
*Need a tool based the SoX. Choose the convert program according the working frequence of Microduino.
+
*We’ll need a tool based Sto oX and choose the right conversion program according to the work frequence of your Microduino modules;
*Decompres the file, enter into "Microduino  with 16 MHz" folder, put the audio file into this folder, and drag to the "FullRate@16MHz_Mono.bat" for batch.
+
 
 +
*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;
 
|-
 
|-
 
|
 
|
[[File:music-1.jpg|600px|center|thumb|music]]
+
[[File:audio-1.jpg|600px|center|thumb|Audio]]
 
|-
 
|-
 
|
 
|
*After drag, will start the conversion program, it will pop up a dialog box that appears "press any key to continue...".
+
*The program can be converted after the drag. A dialog box will pop up, showing “Enter Any Key to Continue...";
 +
 
 
|-
 
|-
 
|
 
|
[[File:music-2.jpg|600px|center|thumb|music]]
+
[[File:audio-2.jpg|600px|center|thumb|Audio]]
 
|-
 
|-
 
|
 
|
*After finished, you can find a new folder where store the new file. If this failed, please convert the original audio file into .wav format, then 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.
 
|-
 
|-
 
|
 
|
[[File:music-3.jpg|600px|center|thumb|music]]
+
[[File:audio-3.jpg|600px|center|thumb|Audio]]
 
|-
 
|-
 
|
 
|
*Copy the audio file to memory card, then Insert the memory 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 the IED to open Microduino example program, board type choose "Microduino Core (Atmega328P@16M,5V)",before download, need to do following update:
+
*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:
**Some library has different pin defination, so please download the latest library.
+
**Since some libraries may have different pin definition, please download the latest libraries to replace the former ones;
**Need change the existing audino name in program to generated audio file name.
+
**In the program, you need to change the name of the audio file to that of the generated audio file.  
  
 
==Result==
 
==Result==
After download, press the button to play the music, and press again, stop the music.
+
After the download, just press the button to play music and one more press to pause the music.  
 
|-
 
|-
 
|
 
|
==Video==
+
==Vedio==
 
http://v.youku.com/v_show/id_XNjY1Njg5ODQw.html
 
http://v.youku.com/v_show/id_XNjY1Njg5ODQw.html
 
|}
 
|}

2014年8月21日 (四) 02:38的最新版本

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 frequence 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;
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.

Vedio

http://v.youku.com/v_show/id_XNjY1Njg5ODQw.html