Skip to content

feat: add buzzer element #25

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

Merged
merged 5 commits into from
Apr 28, 2020
Merged

feat: add buzzer element #25

merged 5 commits into from
Apr 28, 2020

Conversation

gfeun
Copy link
Contributor

@gfeun gfeun commented Apr 24, 2020

Hey Uri,

This is my attempt to implement a simple buzzer web component.
I followed your video tutorial to design it with Inkscape.

I wanted the component to display music notes when in use so i implemented a css animation when the attribute "value" is true (similar to the led element on/off). It uses a MIT licensed music note icon

This is very raw since i'm not experienced with css. I am not aware of css animations browser compatibility so this could be a problem too.

@urish
Copy link
Collaborator

urish commented Apr 24, 2020

This is lovely @gfeun!

buzzer

What other names can we have for the attribute that controls the music animation?

@urish
Copy link
Collaborator

urish commented Apr 24, 2020

Also, I'm thinking it'd be cool to have two short wires or leads, possibly red and black, come out of the speaker body. When you search google images for "arduino speaker buzzer", most models that look like this one have red/blue wires coming out of them. This is a bit similar to the LED elements, which also have short leads sticking out of the LED body

@urish urish added the enhancement New feature or request label Apr 24, 2020
@urish urish linked an issue Apr 24, 2020 that may be closed by this pull request
Copy link
Collaborator

@urish urish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job!
I've added some comments / suggestions

@gfeun
Copy link
Contributor Author

gfeun commented Apr 28, 2020

I tried to add more details to the buzzer design but the contrast seems to make them undiscernible.
What do you think ?
Is there anything left to do ?
(oops, closed by mistake)

@gfeun gfeun closed this Apr 28, 2020
@gfeun gfeun reopened this Apr 28, 2020
@urish
Copy link
Collaborator

urish commented Apr 28, 2020

I think it's great the way it is.

Do you happen to have a twitter account, btw?

@urish urish merged commit 876a1a9 into wokwi:master Apr 28, 2020
LironHazan pushed a commit to LironHazan/wokwi-elements that referenced this pull request Apr 29, 2020
LironHazan pushed a commit to LironHazan/wokwi-elements that referenced this pull request Apr 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add piezo electric buzzer
3 participants