Difference between revisions of "Itty Bitty Buggy: Buzzer Tutorial (mDesigner)"
(→Example 1: Play a note with Buzzer) |
(→Example 1: Play a note with Buzzer) |
||
Line 53: | Line 53: | ||
'''Description:''' [[how to activate blocks|When activated]], Buzzer will play note C4 for 3 seconds. | '''Description:''' [[how to activate blocks|When activated]], Buzzer will play note C4 for 3 seconds. | ||
+ | |||
+ | ==Example 2: Play a note, pause, play another note, pause, repeat== | ||
+ | {| class="wikitable" style="background-color:#FEF9E7;" | ||
+ | |'''Note:''' this example can be performed in '''online''' or '''offline mode'''.<br> | ||
+ | If you plan to use '''online''' mode and previously used '''offline''' mode, [[Itty_Bitty_Buggy:_Getting_Started_(mDesigner)#Connecting_to_Itty_Bitty_Buggy_to_mDesigner_.28Online_mode.29|'''please follow the instructions to reset back to "online mode"'''.]] | ||
+ | |} | ||
+ | {| | ||
+ | |style="vertical-align:top;"| | ||
+ | {| class="wikitable" | ||
+ | |+Blocks Used | ||
+ | !Block Category | ||
+ | !Blocks | ||
+ | |- | ||
+ | |bgcolor=FEC254|Events | ||
+ | |[[File:MDesigner_When_Click_Green_Flag_block_new.png|x50px]] [[File:Info_icon.png|24px|link=block_reference]] | ||
+ | |- | ||
+ | |Buggy [[File:IBB_Buggy_icon.png|x30px]] | ||
+ | |[[File:IBB_mDesigner_Motor_Block_Set_Speed_NoLabels.png|x50px|link=Buggy_Base_(use_with_mDesigner)#Motor_-_Set_Speed]] [[File:Info_icon.png|24px|link=Buggy_Base_(use_with_mDesigner)#Motor_-_Set_Speed]] | ||
+ | |} | ||
+ | |||
+ | |style="vertical-align:top;"| | ||
+ | {| class="wikitable" | ||
+ | |+Example | ||
+ | |- | ||
+ | |style="padding:50px;"| | ||
+ | [[File:IBB_mDesigner_Buzzer_Example2.png]] | ||
+ | |} | ||
+ | |||
+ | |} | ||
+ | |||
+ | '''Description:''' [[how to activate blocks|When activated]], Buzzer repeatedly play note C4 (1 second), pause (1 second), play note D4 (1 second), pause (1 second). |
Revision as of 22:52, 1 November 2018
Contents
Buzzer
Buggy Base contains a Buzzer capable of producing sounds. When pulses of electricity are sent to the Buzzer, the pulses causes the Buzzer to vibrate and produce an audible sound. Pulses of different frequencies will cause the Buzzer to produce different notes. The following blocks will allow the user to control the Buzzer.
Block: Play Note
Buzzer can be controlled to play a note with the Buzzer - Play Note block.
Function: This block controls the Buzzer to play the selected note for the specified duration.
|
Example 1: Play a note with Buzzer
Note: this example can be performed in online or offline mode. If you plan to use online mode and previously used offline mode, please follow the instructions to reset back to "online mode". |
|
|
Description: When activated, Buzzer will play note C4 for 3 seconds.
Example 2: Play a note, pause, play another note, pause, repeat
Note: this example can be performed in online or offline mode. If you plan to use online mode and previously used offline mode, please follow the instructions to reset back to "online mode". |
|
|
Description: When activated, Buzzer repeatedly play note C4 (1 second), pause (1 second), play note D4 (1 second), pause (1 second).