# Micro:bit buzzer

**URL:** <https://forum.code.org/t/micro-bit-buzzer/39204>\
**Category:** Unit and Lesson Discussion\
**Created:** [March 25, 2024, 7:24pm UTC](https://forum.code.org/t/micro-bit-buzzer/39204 "2024-03-25T19:24:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sanac2086](https://avatars.discourse-cdn.com/v4/letter/s/c37758/32.png) [@sanac2086](https://forum.code.org/u/sanac2086)\
**Post date:** [March 25, 2024, 7:24pm UTC](https://forum.code.org/t/micro-bit-buzzer/39204/1 "2024-03-25T19:24:55Z")

</div>

is there any buzzer we can use in microbit ?  
how to use it to play a sound?

---

<div class="post-metadata">

**Author:** ![Binary\_Coder](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/binary_coder/32/8618_2.png) [@Binary\_Coder](https://forum.code.org/u/Binary_Coder)\
**Post date:** [March 25, 2024, 7:42pm UTC](https://forum.code.org/t/micro-bit-buzzer/39204/2 "2024-03-25T19:42:38Z")

</div>

Not sure if this applies to micro:bit, but with many circuit boards you can use `tone(pin, frequency, duration)` to play a certain frequency on a pin. It’s possible that [Code.org](http://Code.org) doesn’t support playing sounds on micro:bit, so you may need a different program.

However, it can only [produce audio output](https://microbit.org/get-started/features/sound-output/) when connected to headphones, or if you have a newer model with a built-in speaker.
