gaiboten
Published © LGPL

Quadcopter LED Blink

This project is designed for a quadcopter.

BeginnerFull instructions provided370
Quadcopter LED Blink

Things used in this project

Hardware components

3 mm LED: Green
3 mm LED: Green
×3
3 mm LED: Red
3 mm LED: Red
×1
High Brightness LED, White
High Brightness LED, White
×1
Resistor 1k ohm
Resistor 1k ohm
×2
Resistor 100 ohm
Resistor 100 ohm
×1

Software apps and online services

Arduino IDE
Arduino IDE

Hand tools and fabrication machines

Breadboard, 170 Pin
Breadboard, 170 Pin

Story

Read more

Schematics

Scheme

Code

Untitled file

C/C++
int strobe1 = 7;
int red = 6;
int green1 = 8;
int green2 = 5; 
void setup()
{
  
pinMode(strobe1, OUTPUT);  
pinMode(green1, OUTPUT);  
pinMode(green2, OUTPUT); 
pinMode(red, OUTPUT);  
}


void loop() {

    //--------------------------------------
  digitalWrite(green1, HIGH); 
  digitalWrite(green2, HIGH); 
  //--------------------------------------
  
   //--------------------------------------
  digitalWrite(strobe1, HIGH);  
  delay(70);                      
  digitalWrite(strobe1, LOW);    
  delay(70);                       
    digitalWrite(strobe1, HIGH);   
  delay(70);                      
  digitalWrite(strobe1, LOW);   
  delay(200);                       
  //--------------------------------------
  
 
  for(int fading = 1 ; fading <= 10; fading+=1) { 
       analogWrite(red, fading);         
        delay(50);                            
  } 
  
  analogWrite(red, 255);  
  delay (50);

    for(int fading = 10 ; fading >=1;fading -=1) { 
   analogWrite(red, fading);         
        delay(100);
  }
   delay(100);
  }

Credits

gaiboten

gaiboten

0 projects • 0 followers

Comments