What circuit can I use to switch on a speaker with an arduino (stm32 board)? Ideally the speaker will run longer (automatic off after some time-0.5s)
I have a stopwatch program in STM32 (digitalpinread(low)-when i connect pin to ground=program run) and I need to run speaker-sirene when the push button starts the stopwatch in arduino (sirene ON from start stopwatch with some delay, maybe 0.5s). Is it possible with N-mosfet or what do I need for that?
When momentary push button is ON, the stopwatch will run in arduino software and for some time it should activate the sirene longer (c. 0.5s-1s). Start sound for runners :-)