
Playing Music
I was looking for a quick project with the Arduino which could get realized in less than half an hour and with the components from my Arduino Starter-Kit. I found this one for Christmas Music playing <===> Christmas songs with an Arduino Uno and a piezo buzzer <===> which I tried out as actually it was Christmas time. It was very easy to follow on the How-To… Please check the video below, where you can see and hear it in action.
.
.
There is not much to say about it as it is very well described in the tutorial. Check below please:
And as you know me, when creating a blog post, I give a bit more information about the theory and useful knowledge… Digging into it to understand about what it is 😉
Play Melody
This example makes use of a Piezo Speaker in order to play melodies. We are taking advantage of the processors capability to produde PWM (Pulse Width Modulation) signals in order to play music.
A Piezo is nothing but an electronic device that can both be used to play tones and to detect tones. In our example we are plugging the Piezo on the pin number 9, that supports the functionality of writing a PWM signal to it, and not just a plain HIGH or LOW value.
The first example of the code will just send a square wave to the piezo, while the second one will make use of the PWM functionality to control the volume through changing the Pulse Width.
Learn more:
- https://www.arduino.cc/en/Tutorial/PlayMelody
- Converting music tones into Arduino code
- Play a Melody using the tone() function
- More videos on YouTube…
- …
How to convert sheet music into an Arduino Sketch…
You might be interested also on the How-To to convert sheet music into an Arduino Sketch. please follow the link below:
Learn more:
- https://github.com/nseidle/AxelF_DoorBell/wiki/How-to-convert-sheet-music-into-an-Arduino-Sketch
- …
- …
.
.
The author Gust MEES is ICT Course Instructor, ”Member of the Advisory Board” from “Luxembourg Safer Internet” (LuSI), BEESECURE, Official Partner (Consultant) from the Ministry of Education in Luxembourg, project “MySecureIT“, Official Partner from the Ministry of Commerce in Luxembourg, project “CASES” (Cyberworld Awareness and Security Enhancement Structure). The author was also a winner of an electronics contest (Germanic countries) in 1979 and got his project published in the “Electronics Magazine ELO”). |
.
Stay tuned for next blog post(s) 😉..
.
Keywords necessary for me to create this blog post: Arduino Starterkit, Piezo Buzzer, Music, tones function, Coding, Xmas tones, converting tones into coding,
.
.