V2 Speaker and GPIO 0?

Hello,

When using sound on V2, I am surprised that pin 0 is still getting signal. Is there anyway to disable sound going to pin 0, or is the new speaker on V2 still pin 0?

Students discovered this when an LED plugged into 0 lit up when music played on internal speaker. Doesn’t matter if Play Tone or Play Sound. LED plugged into 0 lights up ;-(
The SetBuiltInSpeaker doesn’t make a difference either way.
image

Thanks!

1 Like

The nRF processor’s P0.00 is the speaker pin. See: https://tech.microbit.org/hardware/schematic/#v2-pinmap (so it is one and the same).

1 Like

Hi

Don’t think you can disable the audio output pin but you can select a different pin for audio output , the speaker on the V2 will just play what you send to this pin …

Have a look here …

Hope this help

TTFN

J

1 Like

Thanks for the help! Was hopeful they could release the pin given the built-in speaker

1 Like

No Problem…

what sort of project are you planning & what number of pins / pin numbers do you envisage using?

If you have just the Micro:Bit then you only have easy access to P0,P1,p2. 3v & GND.

If you need more pins then there are several edge connector adaptors that allow easy access to the full range of pins on the Micro:Bit…

A couple of examples … several others are available

TTFN

J

1 Like

Yes, we already use the breakout from Sparkfun. We are hooking up a Joystick (4 pins), 2 concave buttons, and some LEDs. Cool little remote control to control the Micro:bot, also from Sparkfun. Just a shame to have 0 be useless when a perfectly good speaker is already connected. We are now taking over the A and B button pins to make it all work.

Thank you for sharing your knowledge!

1 Like

Quick update, I had a clash with the micro:bit V2 vs 4tronix Cube:Bit which has its WS2812 RGB LEDs hanging off pin0. It probably appeared after this discussion, micro:bit MakeCode has a set audio pin enabled with boolean value now under Advanced > Pins. I can’t find the docs for that…