I want want to add code to my esp d1 mini for continuous beep with pasive buzzer
I have tested the code below and it makes only 2 beeps. I need continuous 2 beep sound when triggerd. Please help me with this.
I think all the examples about continuous buzzers use ESP32 - like the example here:
You could have a play with RTTL buzzer. I have used this before and it works well. I can’t remember if it loops automatically but worst case it you set up a timer and call the play command once you expect it to finish.
It is my approach to turn on a buzzer with pauses. Basically it uses a template binary sensor to control the buzzer.
Strictly speaking, It is not necessary to create the template sensor if you put everything in the same block.
Thanks for taking the time to share this, Randy. It solved my problem, I like it, I wasn’t on the verge of thinking of this solution myself, you saved me time, and I am grateful.