Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tutorials→music: Speaker, really? #722

Open
msalat opened this issue Jul 30, 2021 · 3 comments
Open

tutorials→music: Speaker, really? #722

msalat opened this issue Jul 30, 2021 · 3 comments

Comments

@msalat
Copy link

msalat commented Jul 30, 2021

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:

  • https://infocenter.nordicsemi.com/pdf/nRF52833_PS_v1.3.pdf#page=145
  • RING0 is directly attached to P0.02/AIN0, "standard drive".
  • "standard drive" = 4 mA sink/source.
  • Typical Speakers have 4…8 Ohms. (3.3 V (=VDD, worst case) -0.4V) / 4 Ohms (worst case) = 0.725 A. Factor 181.
  • Did not find anything about "short circuit protection" or similar.
  • Is attaching a speaker directly a good idea?
@msalat
Copy link
Author

msalat commented Jul 30, 2021

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

@msalat
Copy link
Author

msalat commented Aug 25, 2021

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

  • Worst case current @ 4.5 V and 16±3 Ω is 346 mA
  • the 2SC3199 transistor in the circuit is capable of 150 mA
  • Even if the transistor could handle 346 mA, IB should be approx. 34 mA, but then the base resistor could be (5 V(=UIN_peak) - 1 V (=UBE)) / 0.034 A = 116 Ω max.

@rhubarbdog
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants