Jump to content

Component: Buzzer (Audio Output)

From Flowcode Help
Revision as of 16:30, 7 January 2022 by Wiki bot (talk | contribs)
Author Matrix TSL
Version 1.0
Category Audio Output


Buzzer component

Drives a simple fixed frequency buzzer in hardware and simulates the sound of a buzzer in simulation. To actually drive a buzzer you would have to amplify the signal from the microcontroller using a transistor or MOSFET.

Component Pack

BASICIO

Detailed description

No detailed description exists yet for this component

Examples

Depending on your Buzzer you may need to amplify the signal from the microcontroller using a NPN transistor or N channel FET.


Downloadable macro reference

BuzzerBeep
Switches the buzzer on and off automatically to allow for a series of beeps 
- UINT OnTime
Length of time in ms the buzzer will remain on 
- UINT OffTime
Length of time in ms the buzzer will remain off 
- BYTE NumberLoops
Number of times to repeat the sequence. Range 1-255 
- VOID Return


BuzzerOff
Switch Off the Buzzer 
- VOID Return


BuzzerOn
Switch On the Buzzer 
- VOID Return


BuzzerOnDelay
Switch the Buzzer on for a fixed amount of time 
- UINT Time
Time in milliseconds to keep the buzzer on 
- VOID Return



Property reference

Properties
Output Pin
Pin used to drive the output to the buzzer 
Polarity
Controls the pin state required to switch the buzzer on. 
Color
Controls the color of the Buzzer object on the panel. 
Buzzer Frequency
Frequency of the buzzer in Hz to drive the simulation 
Connections
Simulations