Difference between revisions of "Electronic Organ Ensemble"

From Microduino Wiki
Jump to: navigation, search
(Created page with "{| style="width: 1000px;" |- | ==Outline== 600px|center Let’s make a simple electronic organ, and play the classical song A Valedict...")
 
 
Line 6: Line 6:
 
[[File:anywhere_electronic-Qin.jpg|600px|center]]
 
[[File:anywhere_electronic-Qin.jpg|600px|center]]
  
Let’s make a simple electronic organ, and play the classical song A Valediction.  
+
Let's make a simple electronic organ, and play the classical song A Valediction.  
 
[[File:anywhere_songbie.jpg|600px|center]]
 
[[File:anywhere_songbie.jpg|600px|center]]
  
Line 47: Line 47:
 
==Programming==
 
==Programming==
 
===Required Program Blocks===
 
===Required Program Blocks===
*[[“Repeat doing” program block]]
+
*[["Repeat doing" program block]]
*[[“Touch button” program block]]
+
*[["Touch button" program block]]
*[[“Buzzer on-melody” program block]]
+
*[["Buzzer on-melody" program block]]
*[[“Delay” program block]]
+
*[["Delay" program block]]
  
 
===Programming Thought===
 
===Programming Thought===
Judge which touch sensor has been pressed, and the buzzer repeats executing playing the corresponding note; if no touch button is pressed, turn the buzzer of.  
+
Judge which touch sensor has been pressed, and the buzzer repeats executing playing the corresponding note; if no touch button is pressed, turn the buzzer off.  
 
[[File:mixly-ctrl-electronic-Qin.jpg|600px|center]]
 
[[File:mixly-ctrl-electronic-Qin.jpg|600px|center]]
  
Line 59: Line 59:
 
'''Touch button 2 is pressed, then it will play low 7.'''
 
'''Touch button 2 is pressed, then it will play low 7.'''
 
<br>
 
<br>
Use the repeat doing program block, and set the condition to when touch button 2 is pressed, repeat executing playing “low 7 XI” note.
+
Use the repeat doing program block, and set the condition to when touch button 2 is pressed, repeat executing playing "low 7 XI" note.
 
[[File:mixly-ctrl-electronic-Qin-code.jpg|600px|center]]
 
[[File:mixly-ctrl-electronic-Qin-code.jpg|600px|center]]
 
'''Touch button 4 is pressed, then play middle 1. '''
 
'''Touch button 4 is pressed, then play middle 1. '''
 
<br>
 
<br>
Use the repeat doing program block, and set the condition to when touch button 4 is pressed, repeat executing playing “middle 1 DO” note.
+
Use the repeat doing program block, and set the condition to when touch button 4 is pressed, repeat executing playing "middle 1 DO" note.
 
[[File:mixly-ctrl-electronic-Qin-code1.jpg|600px|center]]
 
[[File:mixly-ctrl-electronic-Qin-code1.jpg|600px|center]]
 
'''When touch button 6 is pressed, play middle 2.'''
 
'''When touch button 6 is pressed, play middle 2.'''
 
<br>
 
<br>
Use the repeat doing program block, and set the condition to when touch button 6 is pressed, repeat executing playing “middle 2 RE” note.
+
Use the repeat doing program block, and set the condition to when touch button 6 is pressed, repeat executing playing "middle 2 RE" note.
 
[[File:mixly-ctrl-electronic-Qin-code2.jpg|600px|center]]
 
[[File:mixly-ctrl-electronic-Qin-code2.jpg|600px|center]]
 
'''When there is no sensor pressed, the buzzer is off. '''
 
'''When there is no sensor pressed, the buzzer is off. '''

Latest revision as of 07:54, 9 October 2016

Outline

Anywhere electronic-Qin.jpg

Let's make a simple electronic organ, and play the classical song A Valediction.

Anywhere songbie.jpg


Suitable kit: mCookie302, IBC


Module Bill

Module

Module Number Function
mCookie-Core 1 Core board
Batter box 1 Program download and power supply
mCookie-Hub 1 Sensor adapter plate
Touch button 3 Detect the touch
Buzzer 1 Produce sound

Other Equipment

  • USB cable*1
  • Sensor cable*4
  • Sensor shell*1
  • Lego or other fixation structure
Anywhere electronic-Qin-module.jpg

Module Setup

Setup

Anywhere electronic-Qin-step.jpg
  • Assemble the modules and sensors:
    • Stick the red core module, battery base, and green extension module together;
    • Connect the 3 touch sensors to pin 2/3, 4/5, and 6/7 of Hub respectively;
    • Connect the buzzer to pin 8/9 of Hub;
    • Insert one end of USB cable into the battery base, and connect the other to computer;

Programming

Required Program Blocks

Programming Thought

Judge which touch sensor has been pressed, and the buzzer repeats executing playing the corresponding note; if no touch button is pressed, turn the buzzer off.

Mixly-ctrl-electronic-Qin.jpg

Start to Program

Touch button 2 is pressed, then it will play low 7.
Use the repeat doing program block, and set the condition to when touch button 2 is pressed, repeat executing playing "low 7 XI" note.

Mixly-ctrl-electronic-Qin-code.jpg

Touch button 4 is pressed, then play middle 1.
Use the repeat doing program block, and set the condition to when touch button 4 is pressed, repeat executing playing "middle 1 DO" note.

Mixly-ctrl-electronic-Qin-code1.jpg

When touch button 6 is pressed, play middle 2.
Use the repeat doing program block, and set the condition to when touch button 6 is pressed, repeat executing playing "middle 2 RE" note.

Mixly-ctrl-electronic-Qin-code2.jpg

When there is no sensor pressed, the buzzer is off.

Mixly-ctrl-electronic-Qin-code3.jpg

Game rule
1.There are 3 students in one group.
2.The song A Valediction crosses nine notes totally. Three pupils play together, each taking charge of three during them.
3.Students in the other groups evaluate the performance of which group is the best. 4.Pay attention to the length of each note and the rhythm.

Mixly-ctrl-electronic-Qin-game.jpg

Test the result
After upload, everyone play the A Valediction together.
Set up an electronic organ mode with lego, and put 3 touch buttons and one buzzer into the mode, then the electronic organ is completed.

Anywhere electronic-Qin.jpg

Technical Specification

Related Cases

FAQ