-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get no Sound from Buzzer #8794
Comments
You may have a power issue with your buzzer. Depending on the buzzer voltage you may need an amplifier to use. A simple transister could do the trick. |
But it do sounds if i configure the output as pwm. So i thought it shouldn’t be a voltage issue. |
you probably have the wrong type of buzzer. You are using one that requires a square wave/PWM signal. You should be using one that only requires the trigger pin to go high to sound, ie a KY-012 buzzer. |
I could be wrong but this is not described in the wiki anyway. Maybe a little hint could be helpfull there. Btw. It would be a nice feature to let the buzzer output “speak” pwm beeps. Thanks for explanation and the example. |
I am working on it: |
@ChrisVonFrosta Could you please tell me how you setup a buzzer with the sonoff basic? Like what GPIO pins you used, did you need to add a resistor? Is the 3.3V out pin from the sonoff enough to power the active piezzo buzzer? Thanks! |
@BroBan |
Found this thread when searching myself. You can use the PWM Buzzer, just do setoption111 1. Works like a charm. |
stumbled into the same problem as thread-starter described. edit: found an example in the issueshere maybe this is documented anywhere else? |
I had the same Problem and I dug deeper. It seems to be that the function I verified it with a scope and customized self-compiled firmware The argument in the original code id pwm_range/2. But pwm_range is 1023 and 511 folded to 8bit is 255 I reworked the buzzer code already for me and added some alarm-noise patterns with changing frequencies and allowed I might give you a pull request if I find the time to cleanup and checkin. |
PROBLEM DESCRIPTION
an installed piezo buzzer is setup as Buzzer. If send Command Buzzer 2,3,4 i can recognize super silent knocks. but no beeps.
When set this Buzzer/Port as PWM i can contoll is channel to do beeps.
What ist to do to get the piezo buzzer works as "Tasmota's Buzzer"?
REQUESTED INFORMATION
Backlog Template; Module; GPIO 255
:Backlog Rule1; Rule2; Rule3
:Status 0
:(Please use
weblog 4
for more debug information)TO REPRODUCE
Steps to reproduce the behavior:
EXPECTED BEHAVIOUR
A clear and concise description of what you expected to happen.
SCREENSHOTS
If applicable, add screenshots to help explain your problem.
ADDITIONAL CONTEXT
Add any other context about the problem here.
(Please, remember to close the issue when the problem has been addressed)
The text was updated successfully, but these errors were encountered: