

PRIMARY EDUCATION

COMPUTER SCIENCE

mBot

40MINS
Hardware requirements:
mBot
Implementation:
Upload the program to Arduino
Example programs
Script description
Ambulance effects: Moving forward and flashing the blue light on the top. In Example 2 Alternating blink we introduced how to realize alternative flashing of the onboard Led and in Example 7 Ambulance Sound we introduced how to make the onboard buzzer give ambulance sound effects. In this example we will combine the two examples to simulate ambulance light and sound effects. As it takes some time to play the tone, Block can be replaced by the block playing the tone to realzed the example effects in Example 2 Alternating blink.
Extended tasks
Decorate mBot and make it look like an ambulance.
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
