Light Effects and Sound Effects Arduino Nano

Light Effects and Sound Effects Arduino Nano shield, shield contains 11 LEDs ,one buzzer and INA198 current measurement , shield can be used to develop various projects like LED Bar-graph Volt Meter, Bar-Graph Current Meter, LED light effects, Warning light and sound.

Download Data Sheet INA198 Current Sensor

  • Supply 5V DC
  • 11 LEDS Connected to D2-D12 Digital Pins Of Arduino Nano
  • Buzzer Connected to Digital Pin D13 to Arduino

 

 

 

 

ARDUINO CODE


*/

int led = 13;
int led2 = 2;
int led3 = 3;
int led4 = 4;
int led5 = 5;
int led6 = 6;
int led7 = 7;
int led8 = 8;
int led9 = 9;
int led10 = 10;
int led11 = 11;
int led12 = 12;

// the setup routine runs once when you press reset:
void setup() {
// initialize the digital pin as an output.
pinMode(led, OUTPUT);
pinMode(led2, OUTPUT);
pinMode(led3, OUTPUT);
pinMode(led4, OUTPUT);
pinMode(led5, OUTPUT);
pinMode(led6, OUTPUT);
pinMode(led7, OUTPUT);
pinMode(led8, OUTPUT);
pinMode(led9, OUTPUT);
pinMode(led10, OUTPUT);
pinMode(led11, OUTPUT);
pinMode(led12, OUTPUT);

}

// the loop routine runs over and over again forever:
void loop() {
digitalWrite(led, HIGH);
delay(50);
digitalWrite(led, LOW);
delay(100);
digitalWrite(led, HIGH);
delay(90);
digitalWrite(led, LOW);
delay(60);
digitalWrite(led, HIGH);
delay(150);
digitalWrite(led, LOW);
delay(20);
digitalWrite(led, HIGH);
delay(120);
digitalWrite(led, LOW);
delay(70);
digitalWrite(led, HIGH);
delay(10);
digitalWrite(led, LOW);
delay(50);
digitalWrite(led, HIGH);
delay(250);
digitalWrite(led, LOW);
delay(90);
digitalWrite(led, HIGH);
delay(100);
digitalWrite(led, LOW);
delay(130);
digitalWrite(led, HIGH);
delay(20);
digitalWrite(led, LOW);
delay(90);
{digitalWrite(led2, HIGH);
delay(100);
digitalWrite(led2, LOW);
delay(100);}
{digitalWrite(led4, HIGH);
delay(100);
digitalWrite(led4, LOW);
delay(100);}// wait
{digitalWrite(led5, HIGH);
delay(100);
digitalWrite(led5, LOW);
delay(100);}// wait
{digitalWrite(led6, HIGH);
delay(100);
digitalWrite(led6, LOW);
delay(100);}// wait
{digitalWrite(led7, HIGH);
delay(100);
digitalWrite(led7, LOW);
delay(100);}// wait for a second
{digitalWrite(led8, HIGH);
delay(100);
digitalWrite(led8, LOW);
delay(100);}// wait
{digitalWrite(led9, HIGH);
delay(100);
digitalWrite(led9, LOW);
delay(100);}// wait
{digitalWrite(led10, HIGH);
delay(100);
digitalWrite(led10, LOW);
delay(100);}// wait
{digitalWrite(led11, HIGH);
delay(100);
digitalWrite(led11, LOW);
delay(100);}// wait
{digitalWrite(led12, HIGH);
delay(100);
digitalWrite(led12, LOW);
delay(100);}// wait
}

 


 

 

 

 

 

Leave a Reply

Your email address will not be published.