Introduction: Twinkle Twinkle Using Arduino and Buzzer ; the Easiest Tutorial

Picture of Twinkle Twinkle Using Arduino and Buzzer ; the Easiest Tutorial

Hey Makers,

Lets play our favourite Childhood Rhyme ” Twinkle Twinkle Little Stars” on our current favourite board Arduino!!!

Step 1: How It Works?

Picture of 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

Picture of ​Things Required

Step 3: Circuit

Picture of Circuit

Connect Arduino According to the CIrcuit

> Digital pin 9- Buzzer Positive (Via Resistor)

> Gnd -Buzzer Negative (Directly)

Step 4: Code

Picture of Code

After following the above step. Open the file .ino file with Arduino IDE

Twinkle Code

Step 5: ​Upload

Picture of ​Upload

Upload the code…..and You can hear the Nostalgic Twinkle Twinkle !!

Step 6: Done!

Picture of 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!


About This Instructable




Bio: MIYMAKERS is a non-profit organization encouraging makers of all ages, from all around the globe to Innovate their daily lives. We provide them with a ... More »
More by miymakers:The Simplest Buzzer Tutorial; Using ArduinoTwinkle Twinkle using Arduino and Buzzer ; The Easiest TutorialMeasure Box (Distance sensing) Using Ultrasonic Sensor~The easiest
Add instructable to: