Skip to content
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

change buzzer pin idle status to High voltage level (3.3v) #21

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Li-Tianming
Copy link

in original code, the buzzer is very hot.
the buzzer module schematic i used like below image, in original idle status, self.buz.duty(0), the buzzer drive pin will be 0v in idle status, so the transistor is open, and there are current through buzzer coil, the result is that the buzzer is very hot. after change to self.buz.duty(1023), the buzzer drive pin will be 3.3v in idle status, transistor is closed, no current through buzzer coil and buzzer will be cool.
buzzer_sch

this change will solve buzzer too heat issue
@Li-Tianming
Copy link
Author

Li-Tianming commented Nov 2, 2022

i think add a param for buzzer pin idle status will be a better solution.

@Li-Tianming Li-Tianming closed this Nov 2, 2022
@Li-Tianming Li-Tianming reopened this Nov 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant