I want to make two sounds at the same time with the buzzer. I'm not sure if I should do it with the milis() function? For example, there will be 2 buttons and only one buzzer. 1. There will be a C sound on the button. There will be a re sound on the 2nd button. If I press at the same time, I want both sounds to come out at the same time, how can I do it?
Hello yunuszb
Welcome to the worldbest Arduino forum ever.
Take a search engine of your choice and ask the WWW for 'arduino polyphonic' to collect some data to be sorted out to get the needed information.
Have a nice day and enjoy coding in C++.
I moved your topic to an appropriate forum category @yunuszb.
In the future, please take some time to pick the forum category that best suits the subject of your topic. There is an "About the _____ category" topic at the top of each category that explains its purpose.
This is an important part of responsible forum usage, as explained in the "How to get the best out of this forum" guide. The guide contains a lot of other useful information. Please read it.
Thanks in advance for your cooperation.
this one seems to be promising
What buzzer.
Most buzzers are mechanical/active, and make a sound of their own when you connect a voltage to it. Those buzzers are not suitable to generate different sounds. For that you need a passive buzzer or (piezo) speaker of some sort.
Leo..
Look at the tone library it may be able to help you. I am not familiar with that but it comes to mind that answered a similar question about a year ago.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.