Twinkle Twinkle Using Arduino and Buzzer
Lets play our favourite Childhood Rhyme ” Twinkle Twinkle Little Stars” on our current favourite board Arduino!!! 😀
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.
>Arduino Uno (Buy From Amazon.in) (Buy From Amazon.com)
>Buzzer (Buy From Amazon.in) (Buy From Amazon.com)
>100ohm Resister(Buy From Amazon.in) (Buy From Amazon.com)
Connect Arduino According to the CIrcuit
> Digital pin 9- Buzzer Positive (Via Resistor)
> Gnd -Buzzer Negative (Directly)
After following the above step. Open the file .ino file with Arduino IDE
Upload the code…..and You can hear the Nostalgic Twinkle Twinkle !!
THATS ALL MAKERS FOR TODAY!
WE WILL BE COMMING WITH MORE INTRESTING PROJECT SOON!
If you have any doubts just comment it with the tag “#MM”
Stay Tuned For more Interesting Projects!
Feel free to share your Photos and Experience making this Projects in the Comment Section Or leave a message on our Facebook Page!
We would be very much inspired by Your comments!!! ❤