• Latest
  • Trending
Automatic Retractable landing Gear – DiY

Automatic Retractable landing Gear – DiY

July 7, 2016
ADVERTISEMENT
local fish store in philippines

Trusted Local Fish Store in Philippines

October 6, 2020
Philippines Travel: COVID-19 Advisory

Philippines Travel: COVID-19 Advisory

September 30, 2020
What are the Restrictions and Requirements for Domestic Travel in the Philippines?

What are the Restrictions and Requirements for Domestic Travel in the Philippines?

September 30, 2020
COVID-19 job and income loss leading to more financial hardship

COVID-19 job and income loss leading to more financial hardship

September 30, 2020
PLDT Default Admin Password and Username for (Fibr, DSL)

PLDT Default Admin Password and Username for (Fibr, DSL)

September 27, 2020
LTO Car Registration Process – Philippines

LTO Car Registration Process – Philippines

September 26, 2020
What is the requirements for TIN ID in the Philippines?

What is the requirements for TIN ID in the Philippines?

September 26, 2020
FAQ ON LICENSE AND PERMIT ISSUANCE IN THE PHILIPPINES

FAQ ON LICENSE AND PERMIT ISSUANCE IN THE PHILIPPINES

September 25, 2020
Customize your iPhone’s home screen in iOS 14

Customize your iPhone’s home screen in iOS 14

September 24, 2020
How Your Anxiety Is Hurting Your Health?

How Your Anxiety Is Hurting Your Health?

September 23, 2020
Handling Stress – Kids

Handling Stress – Kids

September 5, 2020
Israeli first flight to United Arab Emirates

Israeli first flight to United Arab Emirates

September 2, 2020
Saturday, February 27, 2021
  • Login
Pencil Written Logo

Pencil Written

News, Trending, Travel, Health, latest current events, and Technology

ADVERTISEMENT
  • Home
    • Cookie Policy
    • Cookies
    • General Terms & Conditions
    • Contact Us
    • Front Page
  • Latest
    • News
    • Politics and Economy
  • Technology
    • Science and Technology
    • Electronics
  • Health & Fitness
  • Travellers
    • Travellers Guide
    • Travel
    • Philippines
  • More on Pencil
    • Top List
    • Thoughts
    • Do It Yourself
    • Did You Know?
  • Earth Clock
  • COVID-19
No Result
View All Result
  • Home
    • Cookie Policy
    • Cookies
    • General Terms & Conditions
    • Contact Us
    • Front Page
  • Latest
    • News
    • Politics and Economy
  • Technology
    • Science and Technology
    • Electronics
  • Health & Fitness
  • Travellers
    • Travellers Guide
    • Travel
    • Philippines
  • More on Pencil
    • Top List
    • Thoughts
    • Do It Yourself
    • Did You Know?
  • Earth Clock
  • COVID-19
No Result
View All Result
Pencil Written Logo
No Result
View All Result

Automatic Retractable landing Gear – DiY

July 7, 2016
in News
1 min read
0
Automatic Retractable landing Gear – DiY

 

 

RelatedPosts

Handling Stress – Kids

An Air India Express plane with 191 people on board has crashed

New swine flu in China could cause human pandemic

 

Below is the code:

/*
Automatic Landing Gear Version: 5
by:BarbePramis

ECHO and TRIGGER = PIN7
SERVO = PIN9
SERVO1 = PIN6
*/

#include
#define led 13
int led1 = A0;

Servo myservo;

const int pos1 = 15;
const int pos2 = 176; //Adjust SERVO position HERE

const int pingPin = 7;
int trigger_altitude = 120; // Change Altitude HERE

void setup() {
Serial.begin (9600);
myservo.attach(9);

pinMode(led1, OUTPUT);
}

void loop() {

digitalWrite(led1, HIGH); // turn the LED on (HIGH is the voltage level)
delay(500); // wait for a second
digitalWrite(led1, LOW); // turn the LED off by making the voltage LOW
delay(500); // wait for a second

long duration, cm;

pinMode(pingPin, OUTPUT);
digitalWrite(pingPin, LOW);
delayMicroseconds(2);
digitalWrite(pingPin, HIGH);
delayMicroseconds(5);
digitalWrite(pingPin, LOW);

pinMode(pingPin, INPUT);
duration = pulseIn(pingPin, HIGH);

cm = microsecondsToCentimeters(duration);
Serial.print(cm);
Serial.print("cm");
Serial.println();

if (cm < trigger_altitude) { myservo.write(pos1); delay(15); digitalWrite(led, LOW); // turn the LED delay(100); } else if (cm > trigger_altitude)
{
myservo.write(pos2);
delay(15);
digitalWrite(led, HIGH); // turn the LED
delay(100);
}

delay(100);

}
long microsecondsToInches(long microseconds)
{
return microseconds / 74 /2;
}
long microsecondsToCentimeters(long microseconds)
{
return microseconds / 29 / 2;

}

Parts required

2 Nos. Digital Servo (MG995 for big Copter)/ – Alternative

1 No. Ping Sensor

1 set. Tarot landing Gear or Tarot Retractable landing gear

1 No. Arduino Nano

Let me know you have difficulty in making this project.

231
Tags: ArducopterAutomaticDji F550Landing Gear
Share6Tweet4Share1Pin1Share1Share
Previous Post

3D Printer Design

Next Post

Sonar Telescope

Next Post
Sonar Telescope

Sonar Telescope

Transform 3D Printer to CNC Milling Machine

Transform 3D Printer to CNC Milling Machine

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

I agree to the Terms & Conditions and Privacy Policy.

Recent Posts

  • Trusted Local Fish Store in Philippines
  • Philippines Travel: COVID-19 Advisory
  • What are the Restrictions and Requirements for Domestic Travel in the Philippines?
  • COVID-19 job and income loss leading to more financial hardship
  • PLDT Default Admin Password and Username for (Fibr, DSL)
ADVERTISEMENT
DMCA.com Protection Status

Tags

3D Printer (2) Android (5) Anti Drugs (2) Apple (7) Arduino (2) Armenia (2) Beautiful (2) Bitcoin (2) blackberry (2) Children (2) Corona Virus (2) coronavirus (3) covid-19 (13) Cure for Disease (2) dark-side of facebook (2) Depression (5) diy (3) Donald Trump (3) Drone (3) Drugs (2) Dubai (3) Earth (3) Genius (2) Gold (2) Google (7) Health Tips (2) Healthy Marriage (2) how to (2) Iphone (4) iphone x (3) Partner (2) Philippines (6) Playstation (2) Processor (3) robotics (8) S8 (2) Samsung (2) Sars-CoV-2 (4) Science (2) Sex (2) Shapeoko (2) Technology (4) Travel (3) Travel Guide (4) Trump (3)

Advertisement

Recent Posts

  • Trusted Local Fish Store in Philippines October 6, 2020
  • Philippines Travel: COVID-19 Advisory September 30, 2020
  • What are the Restrictions and Requirements for Domestic Travel in the Philippines? September 30, 2020
  • COVID-19 job and income loss leading to more financial hardship September 30, 2020
  • PLDT Default Admin Password and Username for (Fibr, DSL) September 27, 2020
  • LTO Car Registration Process – Philippines September 26, 2020
  • What is the requirements for TIN ID in the Philippines? September 26, 2020
  • FAQ ON LICENSE AND PERMIT ISSUANCE IN THE PHILIPPINES September 25, 2020
  • Customize your iPhone’s home screen in iOS 14 September 24, 2020
  • How Your Anxiety Is Hurting Your Health? September 23, 2020
  • Handling Stress – Kids September 5, 2020
  • Israeli first flight to United Arab Emirates September 2, 2020

© 2020 Pencilwritten.Com

No Result
View All Result
  • Home
    • Cookie Policy
    • Cookies
    • General Terms & Conditions
    • Contact Us
    • Front Page
  • Latest
    • News
    • Politics and Economy
  • Technology
    • Science and Technology
    • Electronics
  • Health & Fitness
  • Travellers
    • Travellers Guide
    • Travel
    • Philippines
  • More on Pencil
    • Top List
    • Thoughts
    • Do It Yourself
    • Did You Know?
  • Earth Clock
  • COVID-19

© 2020 Pencilwritten.Com

Welcome Back!

Login to your account below

Forgotten Password?

Create New Account!

Fill the forms bellow to register

*By registering into our website, you agree to the Terms & Conditions and Privacy Policy.
All fields are required. Log In

Retrieve your password

Please enter your username or email address to reset your password.

Log In

Add New Playlist

This website uses cookies. By continuing to use this website you are giving consent to cookies being used. Visit our Privacy and Cookie Policy.