Difference between revisions of "Main Page"

From Microduino Wiki
Jump to: navigation, search
(mCookie UPin27 Series)
Line 1: Line 1:
{{Language|Main Page}}
+
{| style="width: 800px;"
 +
|-
 +
|
 +
==Overview==
 +
*Project name:Microduino open source player
 +
*Objective:to read the songs in the SD card.
 +
*Difficulty: medium
 +
*Time consuming: 2 hours
 +
*Producer:
 +
*Introduction:
 +
**Open source music player is an open source speaker which can read SD card and decode it.
 +
** Appearance concise, simple button design, OLED screen display, easy to use
 +
**This system is fully realized by Microduino, and the user can experience the fun of manual DIY
  
{| class="titlebox" width="800px" style="border:2px solid #000000; -moz-border-radius:5px 5px 5px 5px; -webkit-border-radius:5px 5px 5px 5px;" cellspacing=0 cellpadding=0
+
 
! style="background:#000000; border-radius:2px; padding:5px; color:#ffffff;" | <div style="font-size:180%;text-align:center;">Welcome to the Microduino Wiki</div>
+
==Bill of materials==
 +
{| border="0" cellpadding="10" width="100%"
 +
|-
 +
|width="50%" valign="top" align="left"|
 +
===Microduino devices===
 +
{|class="wikitable"
 +
|-
 +
|Module||Number||Function
 +
|-
 +
|[[Microduino-Core]]||1||Core-board
 +
|-
 +
|[[Microduino-USBTTL]] ||1||Download programs
 +
|-
 +
|[[Microduino-Audio]](with shield) ||1||Decode,store music files
 +
|-
 +
|[[Microduino-Amplifier]] ||1||Attack release
 
|-
 
|-
|
+
|[[Microduino-OLED]] ||1||Display
{|  
 
 
|-
 
|-
|[[file:wiki.jpg|800px|left]]
+
|[[Microduino-Cube-S1]] ||1||The OLED interface of extension board
 
|}
 
|}
 +
|width="50%" valign="top" align="left"|
 +
===Other devices===
 +
{|class="wikitable"
 +
|-
 +
|Module||Number||Function
 +
|-
 +
|Fixed plate||1||Fix structure
 +
|-
 +
|OLED connecting line||1||Connect
 +
|-
 +
|Micro-USB line ||1||Download programs、supply power
 +
|-
 +
|Speaker||2||Play audio
 +
|-
 +
|MicroSD card(optional) ||1||Store music files
 +
|-
 +
|M2 Nylon screw ||8||To fix
 +
|-
 +
|M2 Nylon stud ||4||To fix
 
|-
 
|-
|
+
|M2 Nylon nut ||8||To fix
{|  
+
|}
 +
|}
 +
{| border="0" cellpadding="10" width="100%"
 
|-
 
|-
|     Small size, great power! Microduino and mCookie bring powerful, small, stackable electronic hardware to makers, designers, engineers, students and curious tinkerers of all ages. Build open-source projects or create innovative new ones.
+
|width="50%" valign="top" align="left"|
<br>
+
[[File:Musicmaterial1.jpg||450px|center]]
All Microduino and mCookie boards are Arduino-compatible. Experienced makers can write their own programs in the Arduino IDE and upload their code to the hardware via USB, while novices can take advantage of open-source Scratch programming to drag and drop pre-written code.
+
|width="50%" valign="top" align="left"|
 +
[[File:Musicmaterial2.jpg||450px|center]]
 +
|}
  
<br>
+
==Programs to download==
Microduino dramatically decreases the size and cost of design prototyping, improves flexibility of Arduino-compatible boards, and enhances the user experience for any age or skill level.
+
*The code of music player Github:'''[https://github.com/Microduino/Simple_player_V2 Simple_Player_v2]'''
<br>
 
  
 +
==Program writing==
 +
*Stack '''[[Microduino-Core/zh]]''' and '''[[Microduino-USBTTL/zh]]''' together.
 +
** Connect the'''[[Microduino-USBTTL/zh]]'''ready to upload program with a data line.
 +
**Note:It is best not to put all modules stacked together and then upload.
 +
*Open Arduino IDE for Microduino, environment, (Reference of the set-up:'''[[The core of AVR:Getting started/zh]]''')
 +
*Click'''【Instrument】''', assure the '''board card(Microduino-Core) processor(Atmega328P@16M,5V)''' selected correctly, and select the corresponding '''port number(COMX)'''
 +
*Click'''【File】'''->'''【Open】''', browse to the project program address, and click '''’Simple_player_V2.ino’''' to open program
 +
*After all these items are correct, click the button  '''"→"'''to download the program to the development board
  
Microduino and mCookie modules, sensors and accessories are perfect for idea realization, prototype development, low-volume production and old-fashioned fun.
+
==Store audio==
 +
*Audio files need to be stored in a container in advance, then the player can play on them. There are two types of storage:
 +
**The module board FLASH:'''[[Microduino-Audio]]''' has boarded the 4MByte FLASH
 +
***Audio storage method please refer to the following page: '''[https://www.microduino.cn/wiki/index.php/Microduino-Module_Audio/zh#.E5.BC.80.E5.8F.91 Download audio]'''
 +
**SD outside enlarge capacity: Use the '''Shield''' module of the '''[[Microduino-Audio]]'''module to  realize '''MicroSD card dilatation'''
 +
***SD card supports 32GB capacity maximumly
  
 +
==Steps of the set-up==
 +
{| border="0" cellpadding="10" width="100%"
 +
|-
 +
|width="50%" valign="top" align="left"|
 +
*'''Step1:'''
 +
*According to the picture 1-1,  fix '''[[Microduino-OLED]]''' on''Structure-A1''' with '''nylon screw''' and '''nylon nut''' .
 +
*'''Note: '''Pay attention to the installation direction of the OLED display screen, and please take the LOGO'''”Microduino”''' as a reference,  the LOGO located in the ''positive direction''' saying it installed in the right direction.
 +
|width="50%" valign="top" align="left"|
 +
[[File:Musicstep1-1.jpg||450px|center]]
 +
|}
 +
{| border="0" cellpadding="10" width="100%"
 +
|-
 +
|width="50%" valign="top" align="left"|
 +
*After the installation of the OLED display screen, please put nthe sensor lin access to the interface on the reverse of the OLED.
 +
|width="50%" valign="top" align="left"|
 +
[[File:Musicstep1-2.jpg||450px|center]]
 +
|}
 +
{| border="0" cellpadding="10" width="100%"
 +
|-
 +
|width="50%" valign="top" align="left"|
 +
*'''Step2:'''
 +
*According to the picture 2-1, insert '''structure-D1''' into the corresponding interface of the  '''structure-B1'''.
 +
|width="50%" valign="top" align="left"|
 +
[[File:Musicstep2-1.jpg||450px|center]]
 
|}
 
|}
 +
{| border="0" cellpadding="10" width="100%"
 +
|-
 +
|width="50%" valign="top" align="left"|
 +
*According to the picture 2-2, insert '''structure-C2''' into the corresponding interface of the  '''structure-B1'''.
 +
|width="50%" valign="top" align="left"|
 +
[[File:Musicstep2-2.jpg||450px|center]]
 
|}
 
|}
 
+
{| border="0" cellpadding="10" width="100%"
<br>
+
|-
 
+
|width="50%" valign="top" align="left"|
=Microduino Upin27 Series=
+
*After step2, the  '''player skeleton''' forms
{| style="width: 800px;"| colspan="2" |
+
|width="50%" valign="top" align="left"|
 +
[[File:Musicstep2-3.jpg||450px|center]]
 +
|}
 +
{| border="0" cellpadding="10" width="100%"
 +
|-
 +
|width="50%" valign="top" align="left"|
 +
*'''Step3:'''
 +
*According to the picture 3-1, embed the ''horn''' into the position as shown in the picture, taking care of the installation direction of the '''horn''', the '''horn line''' needing threading to the behind of the '''structure-B1''' in advance.
 +
|width="50%" valign="top" align="left"|
 +
[[File:Musicstep3-1.jpg||450px|center]]
 +
|}
 +
{| border="0" cellpadding="10" width="100%"
 +
|-
 +
|width="50%" valign="top" align="left"|
 +
*According to the picture 3-2, splice the '''structure-A1''' installed with OLED display screento the front of the '''player skeleton'', then put the '''structure-D3''' into the slot in '''structure-A1''' and '''structure-B1'''.
 +
|width="50%" valign="top" align="left"|
 +
[[File:Musicstep3-2.jpg||450px|center]]
 +
|}
 +
{| border="0" cellpadding="10" width="100%"
 +
|-
 +
|width="50%" valign="top" align="left"|
 +
*After step3, the front of the player has been assembled
 +
|width="50%" valign="top" align="left"|
 +
[[File:Musicstep3-3.jpg||450px|center]]
 +
|}
 +
{| border="0" cellpadding="10" width="100%"
 +
|-
 +
|width="50%" valign="top" align="left"|
 +
*'''Step4:'''
 +
*According to the picture 4-1, turn to the back of the player, stuck '''structure-D2''' with the slot of '''structure-D3'''
 +
** Pay attention to the force evenly, avoid too much force to break, and at the same time thread the two '''horn''' line and OLED line out from the hole on the back
 +
|width="50%" valign="top" align="left"|
 +
[[File:Musicstep4-1.jpg||450px|center]]
 +
|}
 +
{| border="0" cellpadding="10" width="100%"
 +
|-
 +
|width="50%" valign="top" align="left"|
 +
*According to the picture 4-2, fix the baseboard of the '''[[Microduino-Cube-S1/zh]]''' on the '''structure-C2''' with '''nylon screw''', '''nylon stud''' and '''nylon nut'''
 +
**Note that the USB port in the baseboard of the '''[[Microduino-Cube-S1/zh]]''needs to be out
 +
|width="50%" valign="top" align="left"|
 +
[[File:Musicstep4-2.jpg||450px|center]]
 +
|}
 +
{| border="0" cellpadding="10" width="100%"
 
|-
 
|-
| style="width:400px" align="left"|
+
|width="50%" valign="top" align="left"|
=='''[[Microduino Series]]'''==
+
*After step4, the construction picture is as follow:
<br>
+
|width="50%" valign="top" align="left"|
[[file:Microduino-CoreList-rect.jpg|200px|left]]
+
[[File:Musicstep4-3.jpg||450px|center]]
 
+
|}
| style="width:400px" align="left"|
+
{| border="0" cellpadding="10" width="100%"
=='''[[Microduino Tutorials and Projects]]'''==
 
<br>
 
[[file:Microduino-Projects.png|400px|left]]
 
 
|-
 
|-
 +
|width="50%" valign="top" align="left"|
 +
*'''Step5:'''
 +
*According to the picture 5-1, insert '''structure-C1''' into the back of the player
 +
|width="50%" valign="top" align="left"|
 +
[[File:Musicstep5-1.jpg||450px|center]]
 
|}
 
|}
<br><br>
+
{| border="0" cellpadding="10" width="100%"
 
 
=mCookie UPin27 Series=
 
{| style="width: 800px;" | colspan="2" |
 
 
|-
 
|-
| style="width:400px" align="left"|  
+
|width="50%" valign="top" align="left"|
=='''[[mCookie Series]]'''==
+
*According to the picture 5-2, stick '''structure-D4''' to the corner of the '''structure-C1'', and at the same time thread the two '''horn''' lines and OLED line out from the hole in the '''structure-C1'''
<br>
+
|width="50%" valign="top" align="left"|
[[file:mCookie-rect.jpg|200px|left]]
+
[[File:Musicstep5-2.jpg||450px|center]]
 
+
|}
| style="width:400px" align="left"|
+
{| border="0" cellpadding="10" width="100%"
== '''[[mCookie Tutorials and Projects]]'''==
 
<br>
 
[[file:mCookie-Projects.jpg|400px|left]]
 
 
|-
 
|-
 +
|width="50%" valign="top" align="left"|
 +
*According to the picture 5-3, overlay the following module on the baseboard of the '''[[Microduino-Cube-S1]]''', paying attention to that install the '''MicroSD card''' on the module '''Shield''' of the '''[[Microduino-Module Audio]]''' in advanced
 +
**'''[[Microduino-Core]]'''
 +
**'''[[Microduino-Module Audio]]'''
 +
**'''[[Microduino-Module Amplifier]]'''
 +
|width="50%" valign="top" align="left"|
 +
[[File:Musicstep5-3.jpg||450px|center]]
 
|}
 
|}
<br><br>
+
{| border="0" cellpadding="10" width="100%"
 
 
{| style="width: 800px;" | colspan="2" |
 
 
 
=MicroWrt HPin44 Series=
 
 
|-
 
|-
| style="width:400px" align="left"|  
+
|width="50%" valign="top" align="left"|
=='''[[MicroWrt Series]]'''==
+
*'''Step6:'''
<br>
+
*According to the picture 6-1, connect the OLED line to the IIC interface(there are SCL,SDA near the interface)on the left of the baseboard of the '''[[Microduino-Cube-S1]]''
[[file:MicroWRT-rect.jpg|200px|left]]
+
*Then connect the two '''horn''' lines to the audio interface in the '''[[Microduino-Module Amplifier]]'''module
 
+
|width="50%" valign="top" align="left"|
| style="width:400px" align="left"|  
+
[[File:Musicstep6-1.jpg||450px|center]]
=='''[[MicroWrt Tutorials and Projects]]'''==
+
|}
<br>
+
{| border="0" cellpadding="10" width="100%"
[[file:MicroWrt-Extension-rect.jpg|200px|left]]
 
 
|-
 
|-
|
+
|width="50%" valign="top" align="left"|
 +
*Now open source music player has been set up completely
 +
|width="50%" valign="top" align="left"|
 +
[[File:Musicstep6-2.jpg||450px|center]]
 
|}
 
|}
<br>
 
<br>
 
  
{| style="width: 800px;" | colspan="2" |
+
==Operating instruction==
 +
===Player power supply===
 +
*According to the following picture, connect the USB power supply line to the USB interface in the baseboard of the '''[[Microduino-Cube-S1]]''.
 +
**USB power supply can use computer USB port, USB charger, mobile power supply, and other forms.
 +
[[File:Musicpower.jpg||600px|center]]
  
=MicroPi HPin88 Series=
+
===Players use===
 +
*There is a thumb wheel switch in the '''shield'''module of the '''[[Microduino-Module Audio]]''', and you can control music playing through this switch. The method is as follow:
 +
{|class="wikitable"
 +
|-
 +
|The use way of the thumb wheel switch||Function
 
|-
 
|-
| style="width:400px" align="left"|  
+
|Click on the wheel||Music play and pause switch
=='''[[MicroPi Series]]'''==
+
|-
<br>
+
|Long press on the wheel||Play mode switch, such as looping, single play, etc.
[[file:MicroCookie-Zen-rect.jpg|200px|left]]
+
|-
 
+
|Left dial the wheel once||Switch to playing the last one
| style="width:400px" align="left"|  
+
|-
=='''[[MicroPi Tutorials and Projects]]'''==
+
|Right dial the wheel once||Switch to playing the next one
<br>
+
|-
[[file:MicroCookie-Nux-rect.jpg|200px|left]]
+
|Left long dial the wheel||The volume reduces
 
|-
 
|-
 +
| Right long dial the wheel||The volume increases
 
|}
 
|}
<br><br>
+
* Player energized the default is the first song in the SD card selected, and in a suspended state, can press a allocated round to start playing music
 +
*The volume range of the player is 0~30. The bigger the number is, the bigger the volume is. Player chooses the volume 20 by default.
  
{| style="width: 800px;" | colspan="2" |
+
==Code instruction==
 
+
*The '''’userDef.h’''' is our configuration file.
=Microduino Sensor Series=
+
*The following code can set the thumbwheel switch threshold
 +
<source lang = "cpp">
 +
#define PUSH_BUTTON    50
 +
#define LEFT_BUTTON    100
 +
#define RIGHT_BUTTON  200
 +
</source>
 +
*In the event of:The volume can only be increased and can’t be reduced, the number of the song can only be increased and can’t be reduced, or on the contrary.
 +
Cause:The thumbwheel switches threshold setting is not reasonable in the “userDef.h”.
 +
{|class="wikitable"
 +
|-
 +
|The action of the thumbwheel||A6 measured voltage(V)||The corresponding code(voltage/5*1023)||Threshold setting
 +
|-
 +
|Default||3.3||675.18||>600
 +
|-
 +
|Downward ||0||0||0~50
 +
|-
 +
|Towards the left||1.6||327.36||150~400
 
|-
 
|-
| style="width:400px" align="left"|  
+
|Towards the right ||2.6||531.96||450~600
=='''[[Microduino Sensor Series]]'''==
 
<br>
 
[[file:Microduino-sensors.jpg|200px|left]]
 
 
 
| style="width:400px" align="left"|
 
 
 
=='''[[Microduino Sensor Tutorials and Projects]]'''==
 
<br>
 
[[file:Microduino-sensors.jpg|200px|left]]
 
 
|}
 
|}
<br><br>
+
Please change the threshold in the “userDef.h” to the actual using value of the thumbwheel
 
 
 
 
=Additional Information=
 
 
 
Fritzing: '''[[File:Microduino-Fritzing.zip]]'''<br>
 
Microduino Community Projects: https://www.microduino.cc/project <br>
 
Microduino IDE Github Repository: [[https://github.com/wasdpkj/Microduino-IDE Microduino-IDE]]<br>
 
Microduino Getting Started: '''[[AVR Core: Getting Started]]''' <br/>
 
mCookie Frequently Asked Questions: [[mCookie Frequently Asked Questions|FAQ]]
 
 
 
<br>
 
<br>
 
  
{| class="wikitable" style="width:800px;border:2px solid #000000; -moz-border-radius:5px 5px 5px 5px; -webkit-border-radius:5px 5px 5px 5px;" cellspacing=0 cellpadding=0
+
==video==
|
 
This Wiki was built on '''June 11, 2013'''. There are '''[[Special:SpecialPages|{{NUMBEROFARTICLES}} pages]]''', '''[[Special:NewFiles|{{NUMBEROFFILES}} files uploaded]]''' and '''[[Special:Statistics|{{NUMBEROFEDITS}} revisions]]'''. <br>To learn more information, please visit '''[[Special:RecentChanges|Recent Changes]]'''.
 
<br>
 
<br>Technical Support: support@microduino.cc
 
<br>Business Inquiries: sales@microduino.cc
 
|}
 

Revision as of 01:29, 29 March 2016

Overview

  • Project name:Microduino open source player
  • Objective:to read the songs in the SD card.
  • Difficulty: medium
  • Time consuming: 2 hours
  • Producer:
  • Introduction:
    • Open source music player is an open source speaker which can read SD card and decode it.
    • Appearance concise, simple button design, OLED screen display, easy to use
    • This system is fully realized by Microduino, and the user can experience the fun of manual DIY


Bill of materials

Microduino devices

Module Number Function
Microduino-Core 1 Core-board
Microduino-USBTTL 1 Download programs
Microduino-Audio(with shield) 1 Decode,store music files
Microduino-Amplifier 1 Attack release
Microduino-OLED 1 Display
Microduino-Cube-S1 1 The OLED interface of extension board

Other devices

Module Number Function
Fixed plate 1 Fix structure
OLED connecting line 1 Connect
Micro-USB line 1 Download programs、supply power
Speaker 2 Play audio
MicroSD card(optional) 1 Store music files
M2 Nylon screw 8 To fix
M2 Nylon stud 4 To fix
M2 Nylon nut 8 To fix
Musicmaterial1.jpg
Musicmaterial2.jpg

Programs to download

Program writing

  • Stack Microduino-Core/zh and Microduino-USBTTL/zh together.
    • Connect theMicroduino-USBTTL/zhready to upload program with a data line.
    • Note:It is best not to put all modules stacked together and then upload.
  • Open Arduino IDE for Microduino, environment, (Reference of the set-up:The core of AVR:Getting started/zh
  • Click【Instrument】, assure the board card(Microduino-Core) processor(Atmega328P@16M,5V) selected correctly, and select the corresponding port number(COMX)
  • Click【File】->【Open】, browse to the project program address, and click ’Simple_player_V2.ino’ to open program
  • After all these items are correct, click the button "→"to download the program to the development board

Store audio

  • Audio files need to be stored in a container in advance, then the player can play on them. There are two types of storage:
    • The module board FLASH:Microduino-Audio has boarded the 4MByte FLASH
      • Audio storage method please refer to the following page: Download audio
    • SD outside enlarge capacity: Use the Shield module of the Microduino-Audiomodule to realize MicroSD card dilatation
      • SD card supports 32GB capacity maximumly

Steps of the set-up

  • Step1:
  • According to the picture 1-1, fix Microduino-OLED' onStructure-A1 with nylon screw and nylon nut .
  • 'Note: Pay attention to the installation direction of the OLED display screen, and please take the LOGO”Microduino” as a reference, the LOGO located in the positive direction saying it installed in the right direction.
Musicstep1-1.jpg
  • After the installation of the OLED display screen, please put nthe sensor lin access to the interface on the reverse of the OLED.
Musicstep1-2.jpg
  • Step2:
  • According to the picture 2-1, insert structure-D1 into the corresponding interface of the structure-B1.
Musicstep2-1.jpg
  • According to the picture 2-2, insert structure-C2 into the corresponding interface of the structure-B1.
Musicstep2-2.jpg
  • After step2, the player skeleton forms
Musicstep2-3.jpg
  • Step3:
  • According to the picture 3-1, embed the horn' into the position as shown in the picture, taking care of the installation direction of the horn, the horn line needing threading to the behind of the structure-B1 in advance.
Musicstep3-1.jpg
  • According to the picture 3-2, splice the structure-A1' installed with OLED display screento the front of the player skeleton, then put the structure-D3 into the slot in structure-A1 and structure-B1.
Musicstep3-2.jpg
  • After step3, the front of the player has been assembled
Musicstep3-3.jpg
  • Step4:
  • According to the picture 4-1, turn to the back of the player, stuck structure-D2 with the slot of structure-D3
    • Pay attention to the force evenly, avoid too much force to break, and at the same time thread the two horn line and OLED line out from the hole on the back
Musicstep4-1.jpg
  • According to the picture 4-2, fix the baseboard of the Microduino-Cube-S1/zh on the structure-C2 with nylon screw, nylon stud and nylon nut
Musicstep4-2.jpg
  • After step4, the construction picture is as follow:
Musicstep4-3.jpg
  • Step5:
  • According to the picture 5-1, insert structure-C1 into the back of the player
Musicstep5-1.jpg
  • According to the picture 5-2, stick structure-D4' to the corner of the structure-C1, and at the same time thread the two horn lines and OLED line out from the hole in the structure-C1
Musicstep5-2.jpg
Musicstep5-3.jpg
  • Step6:
  • According to the picture 6-1, connect the OLED line to the IIC interface(there are SCL,SDA near the interface)on the left of the baseboard of the 'Microduino-Cube-S1
  • Then connect the two horn lines to the audio interface in the Microduino-Module Amplifiermodule
Musicstep6-1.jpg
  • Now open source music player has been set up completely
Musicstep6-2.jpg

Operating instruction

Player power supply

  • According to the following picture, connect the USB power supply line to the USB interface in the baseboard of the 'Microduino-Cube-S1.
    • USB power supply can use computer USB port, USB charger, mobile power supply, and other forms.
Musicpower.jpg

Players use

  • There is a thumb wheel switch in the shieldmodule of the Microduino-Module Audio, and you can control music playing through this switch. The method is as follow:
The use way of the thumb wheel switch Function
Click on the wheel Music play and pause switch
Long press on the wheel Play mode switch, such as looping, single play, etc.
Left dial the wheel once Switch to playing the last one
Right dial the wheel once Switch to playing the next one
Left long dial the wheel The volume reduces
Right long dial the wheel The volume increases
  • Player energized the default is the first song in the SD card selected, and in a suspended state, can press a allocated round to start playing music
*The volume range of the player is 0~30. The bigger the number is, the bigger the volume is. Player chooses the volume 20 by default.

Code instruction

  • The ’userDef.h’ is our configuration file.
  • The following code can set the thumbwheel switch threshold
#define PUSH_BUTTON    50
#define LEFT_BUTTON    100
#define RIGHT_BUTTON   200
  • In the event of:The volume can only be increased and can’t be reduced, the number of the song can only be increased and can’t be reduced, or on the contrary.

Cause:The thumbwheel switches threshold setting is not reasonable in the “userDef.h”.

The action of the thumbwheel A6 measured voltage(V) The corresponding code(voltage/5*1023) Threshold setting
Default 3.3 675.18 >600
Downward 0 0 0~50
Towards the left 1.6 327.36 150~400
Towards the right 2.6 531.96 450~600

Please change the threshold in the “userDef.h” to the actual using value of the thumbwheel

video