Skip to main content

LED Chaser Using Arduino Nano Project For Beginners

LED Chaser Using Arduino Nano Project For Beginners


Creating a Swastik style LED chaser using an Arduino Nano is a fascinating project that combines art and technology, allowing you to explore the realms of electronics and programming while producing a visually striking display. The Swastik symbol, with its rich cultural and historical significance, makes for a unique LED pattern that can bring vibrancy to any setting. In this project, you'll learn how to wire up multiple LEDs to your Arduino Nano, write a simple program to create a mesmerizing chaser effect, and gain hands-on experience with coding, circuit design, and troubleshooting. Whether you’re a beginner or an experienced maker, this guide will walk you through the entire process, from setup to execution, ensuring that you can create your own stunning LED display in no time. Let’s illuminate your creativity!


Here is the code below,-


void setup() {

 pinMode(2,OUTPUT);

 pinMode(3,OUTPUT);

 pinMode(4,OUTPUT);

 pinMode(5,OUTPUT);

}


void loop() {


 //effect 1

  for (int i=0;i<=5; i++){

  digitalWrite(i,HIGH);

  delay(100);

  digitalWrite(i,LOW);

  delay(100);

  }

  for (int i=0;i<=5; i++){

  digitalWrite(i,HIGH);

  delay(100);

  digitalWrite(i,LOW);

  delay(100);

  }

  for (int i=0;i<=5; i++){

  digitalWrite(i,HIGH);

  delay(100);

  digitalWrite(i,LOW);

  delay(100);

  }

  for (int i=0;i<=5; i++){

  digitalWrite(i,HIGH);

  delay(100);

  digitalWrite(i,LOW);

  delay(100);

  }

  for (int i=0;i<=5; i++){

  digitalWrite(i,HIGH);

  delay(100);

  digitalWrite(i,LOW);

  delay(100);

  }

delay(1000);


//effect 2

  for (int i=0;i<=5; i++){

  digitalWrite(i,HIGH);

  delay(50);

  digitalWrite(i,LOW);

  delay(50);

  }


  for (int i=5;i>=0; i--){

  digitalWrite(i,HIGH);

  delay(50);

  digitalWrite(i,LOW);

  delay(50);

  }

  for (int i=0;i<=5; i++){

  digitalWrite(i,HIGH);

  delay(50);

  digitalWrite(i,LOW);

  delay(50);

  }


  for (int i=5;i>=0; i--){

  digitalWrite(i,HIGH);

  delay(50);

  digitalWrite(i,LOW);

  delay(50);

  }

delay(1000);


 

//effect 3


for (int i=0;i<=5; i++){

  digitalWrite(i,LOW);

  delay(100);

  digitalWrite(i,HIGH);

  delay(100);

  }

  for (int i=0;i<=5; i++){

  digitalWrite(i,LOW);

  delay(100);

  digitalWrite(i,HIGH);

  delay(100);

  }

  for (int i=0;i<=5; i++){

  digitalWrite(i,LOW);

  delay(100);

  digitalWrite(i,HIGH);

  delay(100);

  }

  for (int i=0;i<=5; i++){

  digitalWrite(i,LOW);

  delay(100);

  digitalWrite(i,HIGH);

  delay(100);

  }

  for (int i=0;i<=5; i++){

  digitalWrite(i,LOW);

  delay(100);

  digitalWrite(i,HIGH);

  delay(100);

  }

 delay(500);


}


Comments

Popular posts from this blog

Clap On Off Switch Circuit Using Arduino

  Arduino Clap LED program #define MicAO 8 int ledPin = 13; int clap = 0; long detection_range_start = 0; long detection_range = 0; boolean status_lights = false; void setup() {   pinMode(MicAO, INPUT);   pinMode(ledPin,OUTPUT);   } void loop() { int status_MicAO = digitalRead(MicAO); if (status_MicAO == 0) { if (clap == 0) { detection_range_start = detection_range = millis(); clap++; } else if (clap > 0 && millis()-detection_range >= 50) { detection_range = millis(); clap++; } } if (millis()-detection_range_start >= 400) { if (clap == 2) { if (!status_lights) { status_lights = true; digitalWrite(ledPin, HIGH); } else if (status_lights) { status_lights = false; digitalWrite(ledPin, LOW); } } clap = 0; } }

IOT Based Water Level Indicator Project Using Esp32 And Ultrasonic Sensor

  Water Level Indicator Project Using ESP32   Water Level Indicator with Alarm on Tank Full.   IoT Wi-Fi smart water level indicator for tanks with mobile app control . 📟 OLED Display (0.96" I2C SSD1306)   OLED Pin         ESP32 Pin VCC                     3.3V GND                     GND SDA                    GPIO 21 SCL                      GPIO 22     🔔 BUZZER   Buzzer Pin        ESP32 Pin   +           GPIO 26 -            GND         Each LED connects to an ESP32 GPIO pin via a current-limiting resistor.   ...

DIY ORTOMI ROBOT FACE USING ESP32 CONNECTION DIAGRAM

  0.96” I2C   28x64 SSD1306 OLED Display Wiring :- VCC – 3.3V GND – GND SCL(OLED) – GPIO 22 ( ESP32 ) SDA(OLED) – GPIO 21 ( ESP32 )   TTP223 Touch Sensor Wiring :- VCC – 3.3V {Add 10R resistor with this pin} (ESP32) GND – GND (ESP32) I / O   – GPIO 14 (ESP32)   Speaker OR Buzzer :-   + POSITIVE –   GPIO 25 (ESP32) - NEGETIVE - GND (ESP32)   Required Libraries to Install:- Adafruit_GFX Adafruit_SSD1306 Wire     Note:- Download Emotions.h and SoundFX.h file for link below and paste in same folder where code.uno file save.     Full Code:- RobotFace.ino #include <Wire.h> #include <Adafruit_GFX.h> #include <Adafruit_SSD1306.h> //#include "Emotions.h" #include "Emotions_CLEAN.h" #include "SoundFX.h"   #define SCREEN_WIDTH 128 #define SCREEN_HEIGHT 64 #define OLED_RESET     -1 Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_H...