Posts

Showing posts from May, 2021

Alan Walker :Faded diagram & code_

Image
 _____________________________________________ Systematic code link:_ https://drive.google.com/file/d/1VwPzmhvYBqmUebydrFQrcfeUPqpu3OMe/view?usp=drivesdk

Push Button Happy Birthday 3 Leds Diagram_

Image
 Components required to make this project_ Arduino Uno,nano A buzzer or speaker 4ohm A push button 3 5mm Leds A 10k ohm resistor For leds safety you can use 3 220ohm resistor to each led of positive leg __________________________________________________________________________________________ Copy and paste the code to arduino ide or arduinodroid_ Code are given below _ _____________________________________________ //constant will be not change const int speakerPin = 2; const int led1 = 5; const int led2 = 6; const int led3 = 7; const int button = 12; int buttonState = 0; int length = 28; // the number of notes char notes[] = "GGAGcB GGAGdc GGxecBA yyecdc"; int beats[] = { 2, 2, 8, 8, 8, 16, 1, 2, 2, 8, 8,8, 16, 1, 2,2,8,8,8,8,16, 1,2,2,8,8,8,16 }; int tempo = 150; void playTone(int tone, int duration) {     for (long i = 0; i < duration * 1000L; i += tone * 2)         {               digitalWrite(speaker...