Component: Piezo Sounder (Audio Output)
Author | Matrix TSL |
Version | 1.0 |
Category | Audio Output |
Contents
Piezo Sounder component
Drives a simple variable frequency piezo sounder in hardware and simulates the sound in simulation. To actually drive a piezo you may have to amplify the signal from the microcontroller using a transistor or MOSFET.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_PiezoSounder.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_PiezoSounder.fcfx
Detailed description
No detailed description exists yet for this component
Examples
Here is a simple example that will create a siren effect using a piezo sounder.
Piezo Siren
Depending on your Piezo Sounder you may need to amplify the signal from the microcontroller using a NPN transistor or N channel FET.
Macro reference
![]() |
BuzzerOnDelay |
Switch the Buzzer on for a fixed amount of time | |
![]() |
Time |
Time in milliseconds to keep the buzzer on | |
![]() |
Frequency |
Frequency to output in Hz | |
![]() |
Return |
Property reference
![]() |
Properties |
![]() |
Output Pin |
Pin used to drive the output to the buzzer |
==Macro reference==
![]() |
BuzzerOnDelay |
Switch the Buzzer on for a fixed amount of time | |
![]() |
Time |
Time in milliseconds to keep the buzzer on | |
![]() |
Frequency |
Frequency to output in Hz | |
![]() |
Return |
Property reference
![]() |
Properties |
![]() |
Output Pin |
Pin used to drive the output to the buzzer |
==Macro reference==
![]() |
BuzzerOnDelay |
Switch the Buzzer on for a fixed amount of time | |
![]() |
Time |
Time in milliseconds to keep the buzzer on | |
![]() |
Frequency |
Frequency to output in Hz | |
![]() |
Return |
Property reference
![]() |
Properties |
![]() |
Output Pin |
Pin used to drive the output to the buzzer |
==Macro reference==
![]() |
BuzzerOnDelay |
Switch the Buzzer on for a fixed amount of time | |
![]() |
Time |
Time in milliseconds to keep the buzzer on | |
![]() |
Frequency |
Frequency to output in Hz | |
![]() |
Return |
Property reference
![]() |
Properties |
![]() |
Output Pin |
Pin used to drive the output to the buzzer |