Cole Purtzer
Published © GPL3+

Advanced Rocket Launch Pad

This launch pad helps your rocket go high and far!

IntermediateWork in progress5,973
Advanced Rocket Launch Pad

Things used in this project

Hardware components

Relay (generic)
×1
RGB Diffused Common Cathode
RGB Diffused Common Cathode
×4
Arduino Mega 2560
Arduino Mega 2560
×1
Jumper wires (generic)
Jumper wires (generic)
×1
HC-05 Bluetooth Module
HC-05 Bluetooth Module
×1

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)

Story

Read more

Schematics

screen_shot_2019-05-03_at_6_VbfArrSBXj.png

Code

Code

C/C++
int bluePin = 10;
int greenPin = 9;
int redPin = 11;
int relay = 31;
int inPin = 41; // number of the input pin
int status = false;
void setup()
{
  pinMode(redPin, OUTPUT);
  pinMode(greenPin, OUTPUT);
  pinMode(bluePin, OUTPUT);
pinMode(inPin, INPUT_PULLUP);
pinMode(relay, OUTPUT);
}
void loop()

{
  
  digitalWrite(greenPin,HIGH);//Startup Green
  delay(250);
  digitalWrite(greenPin,LOW);
  delay(250);
  
  digitalWrite(bluePin,HIGH);//Startup Blue
  delay(250);
  digitalWrite(bluePin,LOW);
  delay(250);
  
  digitalWrite(redPin,HIGH);//Startup Red
  delay(250);
  digitalWrite(redPin,LOW);
  delay(250);

  digitalWrite(greenPin,HIGH);//Final Startup
  digitalWrite(bluePin,HIGH);
  digitalWrite(redPin,HIGH);
  delay(5000);
  digitalWrite(greenPin,LOW);
  digitalWrite(bluePin,LOW);
  digitalWrite(redPin,LOW);
  delay(1000);

  digitalWrite(bluePin,HIGH); //on and sit blue until switch

if (digitalRead(inPin) ==true){
while(digitalRead(inPin) ==true);
for (int j=1; j<=10; j=j+1){
  digitalWrite(bluePin,HIGH);
  delay(500);
  digitalWrite(bluePin,LOW);
  delay(500);
}
while(digitalRead(inPin) ==true);
for (int j=1; j<=10; j=j+1){
  digitalWrite(redPin,HIGH);
  delay(1000);
  digitalWrite(redPin,LOW);
  delay(500);
  digitalWrite(greenPin,HIGH);
  delay(1000);
  digitalWrite(greenPin,LOW);
  delay(1);
  digitalWrite(relay,HIGH);
  delay(2000);
  digitalWrite(relay,LOW);
  delay(2000);
}
  
  digitalWrite(bluePin,HIGH);
  digitalWrite(greenPin,HIGH);
  digitalWrite(redPin,HIGH);
  delay(10000);
}
  
}
  
  

Credits

Cole Purtzer

Cole Purtzer

16 projects • 212 followers
Hey I am Cole, the lead engineer at Delta Space Systems! Youtube Channel: https://www.youtube.com/channel/UC7Nhgj_PVCtroPXHMhdku-g

Comments