Credits for the initial version go to s-kim-mcg
- I had Arduino Nano V3 (diecimilaatmega328) in stock and needed some changes for the pinouts.
- VScode and PlatformIO instead of Ardunio IDE => I am lazy and also have a bad memory, so method completion and so on just catched me.
- To get a better understanding of the stabilizer functions I refactored the code but you will find most of it intact or at least similar.
- I wanted CPPM instead of PWM as input to use only one cable instead of 4 with smaller receivers having only CPPM output.
- libraries for MPU and Servo instead of direct coding => easier to migrate to other platforms
- Install VSCode and PlatformIO (as a plugin)
- Clone the repository in PlatformIO
- Wait a bit until the plaform is automatically installed and configured
- Compile and upload to your Arduino Nano (most likely you find diecimilaatmega328 version, that is a clone of the initial Arduino Nano)
- PIN D4-D7 are the PWM out for standard servos
- PIN D8 for CPPM input
- PIN A4 (SDA) and A5 (SCL) to MPU6050
- Connect the Arduino Nano V3 to 5 volt of your ESC (make sure about the voltage, the diecimila can convert 7-12 volt from vin, but it wan't be ok for your servos! )
This file is a fixed-wing aircraft horizontal posture control program using Arduino.
It is based on Arduino Uno, GY-86 (MPU 6050).
Arduino Uno: For Main Controller
GY-86(MPU6050): To collect posture information
[Freewing] 690mm F-22 Raptor high Performance EDF PNP: Main frame of plane
DXe DSMX transmitter: Controller
AR620 Receiver: Receiver
Breadboard and connector
Convert .c file to .ino and apply it.
Flight.Controller.Test.mp4
MIT