![]() ![]() ![]() To prevent stm32 microcontroller from any power related issues like power on reset and other potential errors buzzer is interfaced with transistor. Transistor on the other hand operates on a very small voltage and have the ability to drive heavy loads which are not possible to drive directly with GPIO’s of microcontrollers. So its a bad idea to directly drive a piezo sound buzzer with stm32 microcontroller or any general purpose microprocessor GPIO pin. Average piezo buzzers works on about 5 volts and consumes 50 mA of current. Small piezo buzzers operates on 3-5v and consumes about 15 mA of current. This voltage and current is not suitable for driving a piezo buzzer. Their GPIO’s can output max voltage of 3.3 v and source about 20 mA to 40 mA of current at 3.3 volts. Well stm32 microcontrollers are 3.3 volt tolerant devices. Buzzer alarm is controller through microcontroller Port-C pin#13. Push button is connected to microcontroller Port-A pin#10. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |