7. Project 2: Control Multiple Actuators Lv1¶
Level:
7.1. Part List¶
Mono-tone buzzer X1 (placed on Multiple Actuators for smart house)
Multiple Sensors for smart house X1
Multiple Actuators for smart house X1
Connecting Wire X1
micro:bit X1
USB Cable X1
7.2. Description¶
In project 2, you can learn how to use micro:bit button A & B to control mono-tone buzzer as an example in this demo.
7.3. Steps¶
Basic (Add block on start) > House (Add block Initialize Smarthon multiple-sensor)
Input (Add block on button A is pressed) > House-More (Add block Set Buzzer to intensity 0, change “0” to “1023”)
Input (Add block on button A is pressed, change “A” into “B”) > House (Add block Set Buzzer to intensity “0”)
7.4. Hardware¶
Download the code and transfer to micro:bit.
Plug the micro:bit into Multiple Sensors.
Connect Multiple Sensors and Multiple Actuators by connecting wire.
Pressed micro:bit button A to turn to the buzzer and button B to turn off the buzzer. * Try to use on shake to turn on and off buzzer.