Twinkle Twinkle Using Arduino and Buzzer ; the Easiest Tutorial

1,721

2

Posted in TechnologyArduino

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

About: 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 whole range of Intresting projects from Beginner level ...

Hey Makers,

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

Twinkle Code

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!

****www.miymakers.com ****

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!

Share

    Recommendations

    • Spotless Contest

      Spotless Contest
    • Trash to Treasure

      Trash to Treasure
    • Science of Cooking

      Science of Cooking
    user

    We have a be nice policy.
    Please be positive and constructive.

    Tips

    Questions

    Comments