bbcmicrobit / micropython

Port of MicroPython for the BBC micro:bit
https://microbit-micropython.readthedocs.io
Other
595 stars 287 forks source link

tutorials→music: Speaker, really? #722

Open msalat opened 2 years ago

msalat commented 2 years ago

https://github.com/bbcmicrobit/micropython/blob/v1.0.1/docs/tutorials/music.rst

It's very easy to generate bleeps and bloops from the device if you attach a speaker.

Tried it, micro:bit survived it. Then read the micro:bit schematic & NRF52833 datasheet:

msalat commented 2 years ago

https://infocenter.nordicsemi.com/pdf/nRF52832_PS_v1.3.pdf#page=156 (nRF52832) max sink current is 7 mA @ VDD=3.3V.

msalat commented 2 years ago

Funny fact about the V2 onboard Speaker demo circuit datasheet, Page 3:

rhubarbdog commented 2 years ago

Extrenal speakers and microbit is a bit suckling em and see. A real magnet +coil speaker requiers a reverse bias diode