PicoMite: driving a passive buzzer


Author Message
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4193
Posted: 12:39pm 28 Nov 2022      

  phil99 said  One I have used (from an old microwave oven) was very fussy about the frequency. Quite loud at resonance. Sweep the PWM from 400Hz to 2kHz or so to find the loudest point.


Thanks Phil, but I don't think that is the problem I am trying to solve, I CAN get a buzz out of it using the PWM command but I'd like to get music out of it using PLAY SOUND.

However from the manual my understanding is that PLAY SOUND (and PLAY TONE) expect a "low pass filter" and some sort of amp to be connected to the pins, and tying the buzzer to the appropriate PWM pin isn't going to cut it.

I'm hoping the cognizante will be able to tell me what I need to build ... or conversely tell me I am on a fool's errand.

... it may also be that I am going to have to rewrite my MMBasic music engine to use PWM directly, in which case I assume I am still going to want some sort of "protection" between the PicoMite PWM pin and the buzzer.

Best wishes,

Tom
Edited 2022-11-28 22:41 by thwill