Project tutorial
Rocket Tracker

Rocket Tracker

A funny LCD.

  • 90 views
  • 0 comments
  • 1 respect

Components and supplies

Apps and online services

About this project

#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
int timeToLift = 50;
int timeToLand = 50;
String countDown = "";
String countDown1 = "";
void setup() {
 lcd.begin(16, 2);
 lcd.print("Welcome To:");
 lcd.setCursor(0, 1);
 lcd.print("Rocket Tracker");
 lcd.setCursor(0, 0);
 pinMode(7, INPUT);
 pinMode(8, INPUT);
 delay(10000);
}
void loop() {
 if(digitalRead(7) == HIGH) {
   while(timeToLift > -1) {
   lcd.clear();
   lcd.setCursor(0, 0);
   countDown = "T- " + String(timeToLift);
   lcd.print(countDown);
   timeToLift += -1;
   delay(999);
   }
   lcd.clear();
   lcd.print("LIFTOFF!!");
   delay(2000);
   lcd.clear();
 } else {timeToLift = 50;}
 if(digitalRead(8) == HIGH) {
   while(timeToLand > random(-44, -24)) {
   lcd.clear();
   lcd.setCursor(0, 0);
   countDown1 = "T- " + String(timeToLand);
   lcd.print(countDown1);
   timeToLand += -1;
   delay(999);
 }
 lcd.clear();
 lcd.print("LANDING!!");
 delay(2000);
 lcd.clear();
 lcd.print("Arduino 11");
 lcd.setCursor(0, 1);
 lcd.print("Has LANDED!!");
 delay(2000);
 lcd.setCursor(0, 0);
 lcd.clear();
 lcd.print("Sucsessfully:");
 lcd.setCursor(0, 1);
 lcd.print("LATE!!");
 delay(2000);
 lcd.setCursor(0, 0);
 } else {
     timeToLand = 50;
     if(digitalRead(7) == LOW && digitalRead(8) == LOW) {
       lcd.clear();
       lcd.print("Rocket:");
       lcd.setCursor(0, 1);
       lcd.print("Arduino 11");
       lcd.setCursor(0, 0);
     }
 }
 delay(100);
//  lcd.clear();
}

Code

Untitled fileArduino
#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
int timeToLift = 50;
int timeToLand = 50;
String countDown = "";
String countDown1 = "";

void setup() {
  lcd.begin(16, 2);
  
  lcd.print("Welcome To:");
  lcd.setCursor(0, 1);
  lcd.print("Rocket Tracker");
  lcd.setCursor(0, 0);
  
  pinMode(7, INPUT);
  pinMode(8, INPUT);
  
  delay(1000);
}

void loop() {
  if(digitalRead(7) == HIGH) {
    while(timeToLift > -1) {
    lcd.clear();
    lcd.setCursor(0, 0);
    countDown = "T- " + String(timeToLift);
    lcd.print(countDown);
    
    timeToLift += -1;
    delay(999);
    }
    
    lcd.clear();
    lcd.print("LIFTOFF!!");

    delay(2000);
    lcd.clear();
    
  } else {timeToLift = 50;}
    
  if(digitalRead(8) == HIGH) {
    while(timeToLand > random(-44, -24)) {
    lcd.clear();
    lcd.setCursor(0, 0);
    countDown1 = "T- " + String(timeToLand);
    lcd.print(countDown1);
    
    timeToLand += -1;
    delay(999);
    
  }
  
  lcd.clear();
  lcd.print("LANDING!!");
  delay(2000);
  lcd.clear();
  lcd.print("Arduino 11");
  lcd.setCursor(0, 1);
  lcd.print("Has LANDED!!");
  delay(2000);
  lcd.setCursor(0, 0);
  
  lcd.clear();
  lcd.print("Sucsessfully:");
  lcd.setCursor(0, 1);
  lcd.print("LATE!!");
  delay(2000);
  lcd.setCursor(0, 0);
  
  } else {
      timeToLand = 50;
      
      if(digitalRead(7) == LOW && digitalRead(8) == LOW) {
      
        lcd.clear();
        lcd.print("Rocket:");
        lcd.setCursor(0, 1);
        lcd.print("Arduino 11");
        lcd.setCursor(0, 0);
  
      }
  }
  
  delay(100);
  
//  lcd.clear();
  
}

Schematics

tracker_scetch_Eoimk9UEJn.png
Tracker scetch eoimk9uejn

Comments

Similar projects you might like

Dual Axis Solar Tracker Panel with Auto and Manual Mode

Project tutorial by Giannis Arvanitakis

  • 7,142 views
  • 6 comments
  • 37 respects

Hiking Tracker

Project tutorial by Shahariar

  • 9,750 views
  • 17 comments
  • 56 respects

Servo Control Panel

Project tutorial by dancili

  • 1,349 views
  • 2 comments
  • 6 respects

Simple Arduino Digital Clock Without RTC

Project in progress by Annlee Fores

  • 99,593 views
  • 24 comments
  • 90 respects

The Magnetic Field and RGB Tester

Project tutorial by Kutluhan Aktar

  • 3,530 views
  • 0 comments
  • 14 respects

Doggo Water Bowl Refill Monitor/Indicator - Part 2

Project tutorial by Heathen_Hacks-v2

  • 1,565 views
  • 0 comments
  • 3 respects
Add projectSign up / Login