2025-03-05 15:44:21 +01:00
..
2025-03-03 15:36:32 +01:00
2025-03-05 15:44:21 +01:00
2025-03-05 10:43:11 +01:00
2025-03-05 10:43:11 +01:00
2025-03-05 10:43:11 +01:00
2025-03-05 10:43:11 +01:00
2025-03-05 10:43:11 +01:00
2025-03-05 10:43:11 +01:00

buzzer

A program to run alarm on button pushed.

To activate the alarm, push the button. Same for desactivation. The alarm is launched in a separate task and controlled by the main task (which holds the push button logic).

You can run the application in "DEBUG" mode using: make run-debug name=buzzer The FreeRTOS engine is replaced by threads.

Hardware

Variant 1

  • 1x Passive Buzzer
  • 1x Push button
  • 1 NPN transistor for signal amplification
  • 1x 1k ohm resistor (NPN collector)
  • 2x 10k ohm resistor

Variant 2

You can play with the frequency [1500; 2000] hz thanks to the potentiometer.

  • Variant 1
  • 1x Rotary potentiometer
  • 1x blue LED

Enjoy ! 😉