GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - RCmags/HeliFlightController: :helicopter: Flight controller for a 4ch RC helicopter.

BranchesTags
Open more actions menu

Latest commit

 

History

23 Commits
23 Commits

Folders and files

NameName
Last commit message
Last commit date
controller
controller
 
 
images
images
 
 
README.md
README.md
 
 

Repository files navigation

Flight controller for an RC helicopter 🚁

This arduino sketch is a flight controller for a 4ch radio-controlled helicopter. It uses an MPU6050 IMU to stabilize the aircraft.

How it works

The pitch, roll and yaw axes are stabilized with a respective PID controller using the angular velocity as a proportional term. The yaw axis includes a counter-torque term that increases with throttle.

In general, the program only improves stability in the short-term and a pilot (or other control algorithm) is needed to stabilize the helicopter in the long-term. Despite this, the aircraft can maintain a steady hover without pilot input if the PIDs are tuned correctly (in the order of 5 seconds).

Receiver Inputs

The program is designed to receive 4 PWM inputs from an RC receiver and generates 3 PWM outputs. Two signals go to the cyclic servos and the third goes to the tail-servo or speed controller. Since it assumes that only two servos are used for the cyclic, only a 90-degree swashplate is supported. The code assumes the transmitter uses MODE 2, but MODE 1 can be used by swapping the arduino connections to the receiver.

Schematic

The sketch was written for an Arduino Nano but it should be compatible with other boards.

Note: replace the tail motor and speed controller with a servo if you're using a variable pitch rotor.

Dependencies

These libraries are needed to compile the code:

  • basicMPU6050
  • imuFilter

Example

This is the helicopter the code was initially writen for:

See: Flight video

About

🚁 Flight controller for a 4ch RC helicopter.

Topics

aircraftarduinodroneflight-controllerflight-stabilizationgyrogyroscopehelicoptermpu-6050mpu6050radio-controlrcstabilizer

Resources

Readme
Activity

Stars

12 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.