Difference between revisions of "Component: Buzzer (Audio Output)"
From Flowcode Help
Jump to navigationJump to searchLine 14: | Line 14: | ||
==Buzzer component== | ==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. | 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== | ==Detailed description== | ||
+ | |||
+ | |||
Line 26: | Line 32: | ||
==Examples== | ==Examples== | ||
+ | |||
+ | |||
Revision as of 16:30, 7 January 2022
Author | Matrix TSL |
Version | 1.0 |
Category | Audio Output |
Contents
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
![]() |
BuzzerOff |
Switch Off the Buzzer | |
![]() |
Return |
![]() |
BuzzerOn |
Switch On the Buzzer | |
![]() |
Return |
![]() |
BuzzerOnDelay |
Switch the Buzzer on for a fixed amount of time | |
![]() |
Time |
Time in milliseconds to keep the buzzer on | |
![]() |
Return |