use of LED control for buzzer?

Archibald
Posts: 110
Joined: Mon Mar 05, 2018 12:44 am

Re: use of LED control for buzzer?

Postby Archibald » Fri Jun 01, 2018 10:37 pm

mikemoy wrote:
Archibald wrote:
mikemoy wrote:Just an FYI, it's not a good idea to drive a piezo electric device via a GPIO pin. Piezo devices can generate negative voltages.
I'm getting only -40mV.
Is that measured with a scope or meter.
That was measured with a scope with 4kHz signal. There's no negative voltage if I drop the GPIO drive strength to minimum. I would not expect a piezo transducer to work well if it's just in series with the drain of a transistor but that should be OK for the electro-magnetic transducer.

I would recommend a kick-back diode (reference) with that electro-magnetic transducer to protect the transistor. I see its coil resistance is only about 16Ω.

User avatar
mzimmers
Posts: 643
Joined: Wed Mar 07, 2018 11:54 pm
Location: USA

Re: use of LED control for buzzer?

Postby mzimmers » Fri Jun 01, 2018 10:57 pm

Yes, we'll add that diode. Thanks for the recommendation.

mikemoy
Posts: 626
Joined: Fri Jan 12, 2018 9:10 pm

Re: use of LED control for buzzer?

Postby mikemoy » Fri Jun 01, 2018 11:59 pm

That was measured with a scope with 4kHz signal. There's no negative voltage if I drop the GPIO drive strength to minimum. I would not expect a piezo transducer to work well if it's just in series with the drain of a transistor but that should be OK for the electro-magnetic transducer.
Cool, at least you have a scope. Just because you are not seeing any negative voltage does not mean its not gernerating any. You could be using the body diode in the chip. The best way to be sure is to just hook up a spare piezo to the scope and tap on it. If you see a negative voltage then your relying on the body diode for protection.

Who is online

Users browsing this forum: No registered users and 110 guests