r/ArduinoHelp • u/avess_90 • Oct 29 '26
Buzzer coding
I don’t have a picture of my Arduino because it is currently with my friends, but I’m writing the code for them since they don’t know how. I don’t have enough time to figure out the tones but does anyone know the tones I could set the buzzer to that would make the Scooby-Doo theme song. I know it’s an odd request but it’s for a project that’s being used at a trunk-or-treat. (Also maybe a car horn sound because that’s needed too although hard to do on a piezo buzzer, I know).
3
Upvotes
3
u/IllSpeaker3255 Oct 29 '26
maybe you can find this on internet
2
u/No_L_2547 Oct 29 '26
Get yourself a library that can play rtttl melodies for you.
And then find the fitting melody on google.
1
u/SeaFaringPig Oct 29 '26
There is a web page that does this for you. It’s been many years since I’ve used it. Google around.
1
u/mtraven23 Oct 29 '26
use a midi library.
1
u/gm310509 Oct 29 '26 edited Oct 30 '26
You need to find the music. That will give you the notes.
Then just use one of the tone example programs and play those notes instead of the notes that they are playing..
Google will probably help you. Maybe your friend could find the notes for you - if it is for their project.
1
u/spicychickennpeanuts 29d ago
upload the song and ask chatgpt to do it. tell it to allow for a base note that makes it easy to adjust or slide the whole range based on the physical characteristics of the speaker.