Maker Education Manipulator A guest education robot
Lesson 10 Music play
CONTENTS II. Introduction of subject II. Preparation work III. Skills competition IV. Explanation of knowledge points V. Display and summary
I. Introduction of subject
1 1 Review (1) Variable (5) Cycle of the specified step (2) Variable “What to do”: function name “Blank function area”: function content (2) Variable (3) Logic judgment 1 (4) Gate-type movement 1
Target task 2
II. Preparation work
Group discussion 1 On the by-group basis, discuss the programming process and the difficulties that may be encountered, and work out the program flow chart. (5min) 1
Program flow chart Determine the position of Y coordinate of each key Gate-type move to the position of the key to achieve playing music Define the action to play each note into a function Determine the sequence of the note function according to music score The manipulator will lift at the end of playing music 2
III. Skills competition
It is time to operate by yourself!
I control my manipulator Operation purpose: Blockly program advancement Operation task: manipulator application – play music score
IV. Explanation of knowledge points
1 1 delay function Thinking of key and difficult points How to make the program look simple and beautiful? Think of the key and difficult points what are encountered in the programming process How to test the best space between keys? How to realize the pause between the music segments How to define Y coordinate of each key? 1 1 Function folding Use the variable with reference to “Domino building” program Test quickly using the cycle function of the specified step delay function
Reference program 2
V. Display and summary
Display 1 1 On the by-group basis, display the learning results and explain the program implementation method.
Please give a self-summary. 2 Please give a self-summary. (The differentitation of programming idea, the differentitation of program, the differentitation of group construction and the differentitation of individual performance)
THANK YOU