PicoMite: driving a passive buzzer
Author
Message
Martin H.
Guru
Joined: 04/06/2022
Location: GermanyPosts: 1198
Posted: 12:53pm 28 Nov 2022
thwill said
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
in German but I think you ll get it:
RC Low Pass
cheers
Mart!n
Edited 2022-11-28 23:05 by Martin H.