12/30/2024

Making Retractable Landing Gear for RC Model Airplanes. DIY Electric Retract

How to make electric retracts  for RC model airplanes.
It is suitable for model airplanes with a flight weight of up to 700-750 gr.

Necessary materials:

300 – 600 RPM N20 gear motor 2 or 3 pcs: https://bit.ly/3etOAl4
Seeeduino XIA0 or Arduino Pro Micro: https://www.banggood.com/custlink/v3Ky4DrfMP or https://www.banggood.com/custlink/mvDRLVMN8q
L293D or L293B motor driver IC  1pcs : https://www.banggood.com/custlink/mGKh4GW1wJ
Micro switch (13x13x7mm) 4 or 6 pcs: https://www.banggood.com/custlink/mmvh4Krw1l
10K resistor 2 pcs: https://www.banggood.com/custlink/3K3Y6vWTfB
PLA filament: https://www.banggood.com/custlink/mD3d6Gpf1q

Mini Electric Screwdriver (SEQURE SQ-ES126): https://www.banggood.com/custlink/vGmdeKnEsY


STL Files for 3D printers: https://drive.google.com/file/d/1QeXpUmfisJYEUICr0XrkzYWBBeHyjizQ/view?usp=sharing


Seeediuno XIAO Version:

Code for Seediuno XIAO:

//For Seeeduino XIAO | Seeediuno XIAO için

int RCSIGNAL; 
#define ButonA 5
#define ButonB 6

void setup(){
pinMode(ButonA, INPUT);
pinMode(ButonB, INPUT);

pinMode(7, INPUT);      // > Receiver Aux Channel | Alıcı Aux Kanal
pinMode(9, OUTPUT);     // > LM293
pinMode(10, OUTPUT);    // > LM293

}
void loop(){

RCSIGNAL=pulseIn(10,HIGH); 

if  (digitalRead(ButonA) != 1 and RCSIGNAL <1400)
 {
  digitalWrite(9, LOW);
  }
  else
  {
  digitalWrite(9, HIGH);
  }

   if (digitalRead(ButonB) != 1 and RCSIGNAL > 1700)
{
digitalWrite(10, LOW);
  }
  else
  {
  digitalWrite(10, HIGH);
  }

delay(10); 

}

 

Arduino Pro Micro Version:

Code for Arduino Pro Micro:

//For Arduino Pro Micro | Arduino Pro Mikro için

int rcsignal; 
#define ButonA 5
#define ButonB 6

void setup(){
pinMode(ButonA, INPUT);
pinMode(ButonB, INPUT);

pinMode(10, INPUT);      // > Receiver Aux Channel | Alıcı Aux Kanal
pinMode(7, OUTPUT);      // > LM293
pinMode(8, OUTPUT);      // > LM293

}
void loop(){

rcsignal=pulseIn(10,HIGH); 

if  (digitalRead(ButonA) != 1 and rcsignal <1400)
 {
  digitalWrite(8, LOW);
  }
  else
  {
  digitalWrite(8, HIGH);
  }

   if (digitalRead(ButonB) != 1 and rcsignal > 1700)
{
digitalWrite(7, LOW);
  }
  else
  {
  digitalWrite(7, HIGH);
  }

delay(10); 

}

 

How To Add Seeediuno XIAO to ARDUINO IDE:

STEP 1:

Open Arudino IDE, click on File / Preferences, and copy below url to “Additional Boards Manager URLs”

https://files.seeedstudio.com/arduino/package_seeeduino_boards_index.json

STEP 2:

Click on Tools > Board > Board Manager.

Search the “Seeeduino”. And then install. İt is ok.