Introduction: Twinkle Twinkle Using Arduino and Buzzer ; the Easiest Tutorial
Lets play our favourite Childhood Rhyme ” Twinkle Twinkle Little Stars” on our current favourite board Arduino!!!
Step 1: How It Works?
Pulse Width Modulation, or PWM, is a technique for getting analog results with digital means. Digital control is used to create a square wave, a signal switched between on and off. This on-off pattern can simulate voltages in between full on (5 Volts) and off (0 Volts) by changing the portion of the time the signal spends on versus the time that the signal spends off. The duration of “on time” is called the pulse width. PWM pins on arduino are 3, 5, 6, 9, 10, or 11. In this case we are using PIN 9 as PWM.
Step 2: Things Required
Step 3: Circuit
Connect Arduino According to the CIrcuit
> Digital pin 9- Buzzer Positive (Via Resistor)
> Gnd -Buzzer Negative (Directly)
Step 4: Code
After following the above step. Open the file .ino file with Arduino IDE
Step 5: Upload
Upload the code…..and You can hear the Nostalgic Twinkle Twinkle !!
Step 6: Done!
Please do vote this project,Your votes are very valuable To MIYMAKERS <3
If you have any doubts just comment it with the tag " #MM " Stay Tuned for more Projects!
:D View My Website For More Intresting Projects!
It's a request from me If my instructable worked for You ,Let the other Makers know by ur comments and Favourites! Do Visit my blog for Sure! Thank You!