Difference between revisions of "Electronic Greeting Card"
(Created page with "{| style="width: 1000px;" |- | ==Overview== 600px|center Make an electronic greeting card which can play Happy Birthday to You automa...") |
|||
(One intermediate revision by the same user not shown) | |||
Line 36: | Line 36: | ||
<br> | <br> | ||
− | ==Module Setup= | + | ==Module Setup== |
[[File:anywhere_Electronic_cards—step.jpg|600px|center]] | [[File:anywhere_Electronic_cards—step.jpg|600px|center]] | ||
*Assemble the modules and sensors: | *Assemble the modules and sensors: | ||
**Stick the red core module, battery base and green extension module together; | **Stick the red core module, battery base and green extension module together; | ||
− | **Connect the line finder to pin A0/A1 of | + | **Connect the line finder to pin A0/A1 of Hub; |
**Connect the buzzer to pin 6/7 of Hub; | **Connect the buzzer to pin 6/7 of Hub; | ||
**Insert one end of USB cable into the USB upload module, and connect the other to the computer; | **Insert one end of USB cable into the USB upload module, and connect the other to the computer; | ||
Line 47: | Line 47: | ||
==Programming== | ==Programming== | ||
===Required Program Blocks=== | ===Required Program Blocks=== | ||
− | *[[ | + | *[["Waiting" program block]] |
− | *[[ | + | *[["Compare" program block]] |
− | *[[ | + | *[["Infrared Reflection" program block]] |
− | *[[ | + | *[["Buzzer on-frequency" program block]] |
===Programming Thought=== | ===Programming Thought=== |
Latest revision as of 08:47, 1 November 2016
ContentsOverviewMake an electronic greeting card which can play Happy Birthday to You automatically as it is open. Suitable kits: mCookie102, mCookie202, mCookie302, IBC
Module BillModule
Other Equipment
Module Setup
ProgrammingRequired Program Blocks
Programming ThoughtWait for the line finder to detect the distance, and judge whether it is larger than 300, if it is, it will play the music. Start to ProgramWait for the distance value of line finder to be larger than 300(open the card), and then play the Happy Birthday to You.
Technical Specification
Related Cases
Q&A
|