Using LEDS and AT Tiny to Create a Blinking Star With Piezo Playing " Twinkle, Twinkle, Little Star"

About: I have an Associate degree in Electronics Technology from Joliet Junior College . I have worked as an electronic technician in telecommunications and at Commonwealth Edison .Presently ,I enjoy electronics a...

Intro: Using LEDS and AT Tiny to Create a Blinking Star With Piezo Playing " Twinkle, Twinkle, Little Star"

This circuit uses LEDS ,AT TINY and piezo to produce a blinking star and music of "Twinkle, Twinkle ,little star" Please see the next step for the and circuit overview.

Step 1: Circuit Overview .

This circuit consists of LEDS ,ATTINY (2) and a piezo and Arduino .The Arduino will supply the power and the LEDs will light up with resistors .The ATTiny will blink some of the LEDS .The piezo speaker will play "Twinkle,Twinkle,little Star ' will a Code .

Step 2: LEDs

There are LEDs in this circuit .The LED stands for light emitting diode.

The LED consists of semiconductor crystal(p-type and n-type).If the crystal is energized by a current the semiconductor emits light .

There are important consideration in using the LEDs.LEDs work in one direction only,Current goes from the positive side(anode) to the negative side (cathode).It is important to use a resistor to regulate the current .The LED has a current limit of 20 mA per LED.

The short leg of the LED is the cathode (negative) .The longer leg of the LED is the anode (positive ) lead .

Always connect a resistor to the anode (positive) lead and the cathode (negative) lead to ground .

The symbol and picture of the LEDs are above .

Step 3: The AT TINY

The AT TINY is a microcontroller chip .Microcontroller are used in circuit to do one function .

Many electric devices use microcontrollers like microwaves, mixers etc.

The AT TINY is being used here as a clock .We will connect the LEDs to the ATTINY(pin5) which will give a clock input .A clock input is a series of pulsed inputs .This will make the LEDs blink.

Step 4: Electronic Components Used in the Circuit

Arduino Uno

15 LEDS

2 AT TINY 85 chips

12 ; resistors(yellow,violet ,brown)

piezo speaker

wires

Step 5: Piezo Speaker

The piezo speaker is the larger round object above in the image .

The piezo speaker consists of piezo crystal which is between 2 crystals .When voltage is applied across the crystals,they push the one conductor and pull the other .This action of pushing and pulling conductors produces sound .

The Code is read by Arduino and produces the notes for the song "Twinkle,Twinkle, little star'.

Note the positive lead of the piezo is connected to Arduino digital pin 11 .The negative lead is connected to ground on the digital rail of the Arduino .See image.

Step 6: Conclusion

This projects shows how you can use LEDs,ATTINY and resistors to create a circuit with LEDs to form a blinking star .Also it shows how the piezo can produce the notes of the song "Twinkle,Twinkle, little star ".

I made this circuit on Tinkercad .It was tested and works .

I hope this projects helps you to understand LEDS,AT TINY and piezo speakers and how they can be used to created a visual and musical circuit .

Thank you

Share

    Recommendations

    • Electronics Tips & Tricks Challenge

      Electronics Tips & Tricks Challenge
    • Optics Contest

      Optics Contest
    • Plastics Contest

      Plastics Contest

    2 Discussions

    0
    None
    sister mariaM

    6 weeks ago

    The ATTINY is a microcontroller and pin 5 is a clock output .Actually 1 ATTINY would have been sufficient to blink the LEDs ,but I put in 2 . I thought it was easier and looked more balanced as a picture of a circuit .So yes, you are correct 1 AT TINY would have been sufficient

    0
    None
    tbarnstormer

    Question 6 weeks ago on Introduction

    I'm a newbie, and still feeling my way around the wiring, but why 2 ATTiny's? Clearly I am missing something, but I can't quite figure out what it is.

    thanks.