Skip to content

Arduino project using a small nativity scene, some leds and a passive buzzer

Notifications You must be signed in to change notification settings

luizfernandorabelo/arduino-christmas-lights

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Christmas Lights

Required Materials:

  • 1 small nativity scene;
  • 1 Arduino Nano;
  • 9 Leds 5mm, in the colors of your choice;
  • 1 Passive Buzzer 5V.

You can make your own nativity scene, using a shoe box, residue of sharpened pencil and your creativity.

Arduino Circuit:

Arduino Code:

  • Firstly, all the leds are turned on and off to certify that all of them are working properly;
  for(int i = 0; i < TOTAL_LEDS; i++){
        digitalWrite(leds[i], HIGH);
        delay(350);
        digitalWrite(leds[i], LOW);
  }
  • Then, a part of the song "Jingle Bells" is played. Each tone has its corresponding leds;
  playSong(void);
  • And in the loop function, all the leds are blinked.
  blinkAll(int delayTime);

You can add new functions to blink the leds in different ways. There are many possibilities.

Video

VIDEO

About

Arduino project using a small nativity scene, some leds and a passive buzzer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages