Case 2 - Buzzer Control

Case 2 - Buzzer Control

Part 1  Objective

After you upload the program, the buzzer on Auriga beeps, sounds like an ambulance siren, or sounds in other ways as programmed.

Part 2  Preparation

  • Auriga x 1
  • USB cable x 1
  • Computer with network access x 1

Connect Auriga to the computer by using the USB cable, open mBlock 5 (PC client or web version), connect CyberPi, and select the Upload mode.

mr7.gif
mr8.gif

 

Part 3  Programming

  1. Beeping: When you turn on mBot Ranger, the buzzer keeps beeping (though it might sound a little bit harsh).mr9.gif
  1. Sounding like an ambulance siren: When you turn on mBot Ranger, the buzzer sounds like an ambulance siren.

mr10.gif

Part 4  Practice

    1. Write a program to make the buzzer play all the notes.
    2. Try to gradually increase the frequency of the sound, and see what happens.
Was this article helpful?
1 out of 1 found this helpful

Comments

0 comments

Please sign in to leave a comment.