This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

LAUNCHXL-F28379D: Application with piezo speaker

Part Number: LAUNCHXL-F28379D

Hi,

in my application when there is a critical situation the red led blink, but it is not enough for my safety.

I would also to add a sound indicator, connecting one piezo speaker directly between a GPIO and GND of the microcontroller and controlling it with output GPIO.

Can I do it or risk damaging the microcontroller?

Best Regards,

Biagio

  • Biagio,

    Like most electrical components, there are MANY different devices available to pick from. From my search on Digikey only, it looks like there are plenty of options to pick from, just be sure that the minimum voltage of the buzzer is below 3.3V of the GPIO.

    See #2 from this link: www.murata.com/.../sch0001 on how to drive that. It looks like they recommend putting a zener diode in parallel with the speaker to help protect against back EMF.

    If you need to drive a higher voltage buzzer, you can connect the GPIO to enable/disable a FET which can drive a higher voltage similar to how some LED drivers operate.

    Regards,
    Mark