Difference between revisions of "Little Song-Order Machine"
(→Module) |
|||
Line 49: | Line 49: | ||
==Programming== | ==Programming== | ||
===Required Program Blocks=== | ===Required Program Blocks=== | ||
− | *[["Crash" program block]] | + | *[["Crash button" program block]] |
*[["Buzzer on-song" program block]] | *[["Buzzer on-song" program block]] | ||
*[["If-do" program block]] | *[["If-do" program block]] | ||
Line 63: | Line 63: | ||
'''2. Press the crash of pin 2, and it will start to play the song "Calabash Boys".''' | '''2. Press the crash of pin 2, and it will start to play the song "Calabash Boys".''' | ||
<br> | <br> | ||
− | With "if-do", "crash", "buzzer on-song" program block, modify the pin number as the diagram shows, and choose the song "Calabash Boys". | + | With "if-do", "crash button", "buzzer on-song" program block, modify the pin number as the diagram shows, and choose the song "Calabash Boys". |
[[File:mixly-ctrl-musicplay-code2.jpg|600px|center]] | [[File:mixly-ctrl-musicplay-code2.jpg|600px|center]] | ||
'''Test the result''' | '''Test the result''' | ||
Line 79: | Line 79: | ||
==FAQ== | ==FAQ== | ||
*Q: Why does the buzzer not produce a sound when connect it directly to the power supply? | *Q: Why does the buzzer not produce a sound when connect it directly to the power supply? | ||
− | ** | + | **A: Because the buzzer is one kind of passive buzzer, which can only ring with changed voltage signal. The active buzzer can ring after added with voltage. |
<br> | <br> | ||
*Q: Can the buzzer sing? | *Q: Can the buzzer sing? |
Latest revision as of 10:30, 9 October 2016
ContentsOutlineMake a little song-order machine, which will play different songs when different switches are pressed.
Module BillModule
Other Equipment
Module Setup
ProgrammingRequired Program BlocksProgramming ThoughtJudge which crash is pressed with "if-do" condition statement, and play the corresponding song,and continue to judge after playing. Start Programming1. Press the crash of pin 4, an it will start to play the song "Doraemon".
2. Press the crash of pin 2, and it will start to play the song "Calabash Boys".
Test the result
Technical Specification
Related Cases
FAQ
|