# V2 microphone frequency detection

**URL:** <https://forum.makecode.com/t/v2-microphone-frequency-detection/17143>\
**Category:** micro:bit\
**Created:** [December 29, 2022, 6:59pm UTC](https://forum.makecode.com/t/v2-microphone-frequency-detection/17143 "2022-12-29T18:59:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![geab](https://avatars.discourse-cdn.com/v4/letter/g/f475e1/32.png) [@geab](https://forum.makecode.com/u/geab)\
**Post date:** [December 29, 2022, 6:59pm UTC](https://forum.makecode.com/t/v2-microphone-frequency-detection/17143/1 "2022-12-29T18:59:00Z")

</div>

Hi  
I am trying to use the microphone on V2 to detect a certain sound melody and control a stepper motor. I found this cool extension from Joshua that should do the job [https://github.com/JoshuaAHill/dissertation-ui-example](https://github.com/JoshuaAHill/dissertation-ui-example) which he presented in [https://www.youtube.com/watch?app=desktop&v=LzkN4j2DB\_w](https://www.youtube.com/watch?app=desktop&v=LzkN4j2DB_w)

I am just not able to get it running - any ideas? Cheers, Gernot

---

<div class="post-metadata">

**Author:** ![bsiever](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bsiever/32/1032_2.png) [@bsiever](https://forum.makecode.com/u/bsiever)\
**Post date:** [December 29, 2022, 11:30pm UTC](https://forum.makecode.com/t/v2-microphone-frequency-detection/17143/2 "2022-12-29T23:30:24Z")

</div>

Hi @geab ,

It looks like that GitHub repository doesn’t have any substantial code. In the presentation he mentioned it uses a special version of MakeCode (around [https://youtu.be/LzkN4j2DB\_w?t=2032](https://youtu.be/LzkN4j2DB_w?t=2032)). The video is too blurry to see the URL.

I think the substantial part of Joshua’s work may be in another repo: [https://github.com/JoshuaAHill/Dissertation-Project-Files](https://github.com/JoshuaAHill/Dissertation-Project-Files), but that’s not a MakeCode extension.

It may be best to contact Joshua. Perhaps you can “Raise an Issue” on GitHub: [https://github.com/JoshuaAHill/dissertation-ui-example/issues](https://github.com/JoshuaAHill/dissertation-ui-example/issues) .

Bill

---

<div class="post-metadata">

**Author:** ![geab](https://avatars.discourse-cdn.com/v4/letter/g/f475e1/32.png) [@geab](https://forum.makecode.com/u/geab)\
**Post date:** [December 30, 2022, 6:02pm UTC](https://forum.makecode.com/t/v2-microphone-frequency-detection/17143/3 "2022-12-30T18:02:21Z")

</div>

Thanks Bill for looking into the code behind. I will check with Joshua and get back with hopefully good news as I think that would make the microphone much more interesting & with an extension easy to use.

---

<div class="post-metadata">

**Author:** ![urassari](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/urassari/32/9535_2.png) [@urassari](https://forum.makecode.com/u/urassari)\
**Post date:** [October 17, 2023, 8:48pm UTC](https://forum.makecode.com/t/v2-microphone-frequency-detection/17143/4 "2023-10-17T20:48:45Z")

</div>

i found the link for the project with the extension.

> **[Dissertation UI Example](https://makecode.microbit.org/21869-69247-64798-08788)**
>
> Made with ❤️ in Microsoft MakeCode for micro:bit.

---

<div class="post-metadata">

**Author:** ![urassari](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/urassari/32/9535_2.png) [@urassari](https://forum.makecode.com/u/urassari)\
**Post date:** [May 26, 2024, 3:21pm UTC](https://forum.makecode.com/t/v2-microphone-frequency-detection/17143/5 "2024-05-26T15:21:16Z")

</div>

YO WHAAAT I HAVE 50 CLICKS (sentence)

---

<div class="post-metadata">

**Author:** ![bsiever](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bsiever/32/1032_2.png) [@bsiever](https://forum.makecode.com/u/bsiever)\
**Post date:** [June 6, 2026, 4:58am UTC](https://forum.makecode.com/t/v2-microphone-frequency-detection/17143/7 "2026-06-06T04:58:30Z")

</div>

In case anyone is still interested in this, here’s a prototype extension for musical note / frequency detection: [https://github.com/bsiever/pxt-freq](https://github.com/bsiever/pxt-freq) . It’s a work-in-progress and doesn’t work very well with lower frequencies (below middle C) or instruments with complex harmonics.
