Make a buzzer sound at a fixed frequency using the Frequency block.
This tutorial is part of the Nairda learning path. You can build it step by step inside the app, which checks every block you place before letting you move on.
The steps
- We create a frequency called buzzer on pin 8.
- We add a While loop, which repeats forever.
- Inside the loop we drop the buzzer block.
- We ask for 880 hertz, which sounds higher.
- And make it sound for 250 milliseconds.
- Behind it a delay of 1000, so it sounds in pulses.
When you finish, the app takes you straight to the next tutorial in the path.