Twinkle Twinkle Using Arduino and Buzzer ; the Easiest Tutorial

by miymakers in Circuits > Arduino

10566 Views, 2 Favorites, 0 Comments

Twinkle Twinkle Using Arduino and Buzzer ; the Easiest Tutorial

IMG_1188.jpg
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!!!

How It Works?

how-it-works.jpg

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.

​Things Required

components~MIYMAKERS.jpg

Circuit

buzc_bb.jpg

Connect Arduino According to the CIrcuit

> Digital pin 9- Buzzer Positive (Via Resistor)

> Gnd -Buzzer Negative (Directly)

Code

3033181-poster-p-1-should-i-teach-my-kid-to-code.jpg

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

Twinkle Code

​Upload

ss.JPG
Twinkle Twinkle using Arduino and Buzzer ; The Easiest Tutorial

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

Done!

13164474_993937340705627_4513903858033529892_n.jpg

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!