SlideShare a Scribd company logo
BASIC INTRODUCTION TO CLEANFLIGHT
V1.9.0
By: Zach Scally (zscally@gmail.com)
Presented: to FPV Race League.
What is Cleanflight?
• Cleanflight is a open source flight controller software used
by 32bit processors.
• Cleanflight can be used on multirotor aircraft and fixed-
wing aircraft, it supports a variety for shapes and motor
counts, not limited to quadcopters, hexacopters,
octocopters, tricopters and planes.
Supported 32bit Flight Controllers
• Naze32 (most popular)
• AlienWii32
• CC3D
• CJMCU
• ChebuzzF3 F3 board (new upcoming technology)
• Olimexino
• Paris Air Hero
• SPRacingF3 F3 board (new upcoming technology)
• Sparky F3 board (new upcoming technology)
• Flip32
• RMRC DODO F3 board (new upcoming technology)
The Basics (whatwe’regoingtoneed)
• Some sort of cleanflight enabled board.
• Some boards require you to solder header pins on.
• A computer with cleanflight installed. (http://tinyurl.com/mdek2lq )
• Sometimes a SMT32 driver is required (out of scope).
• A USB Cable (to plug up the flight controller)
• RC receiver and Transmitter
• Battery (optional)
Flashing
• Updates newest version of cleanflight to the flight
controller
• Improves performance and add new features
• Internet connection makes things easier but not required.
Introduction to-cleanflight
Start of Basic Setup
Cleanflight is broken up in tabs
• Setup (general overall view of what's going on)
• Ports (Ic2 and UART communication pipes)
• Configuration (General Configuration)
• PID Tuning (PID controllers and RC Rate)
• Receiver (Receiver Monitor and Configuration)
• Modes (Flight modes and other features)
• Adjustments (Custom mixes)
• Servos
• GPS
• Motors
• LED Strip
• Sensors
• Logging
• DataFlash
• CLI (Command line Interface)
Ports
• Ability to setup GPS module
• Ability to setup PPM receiver
• Ability to setup blackbox logging
• I will briefly speak about PPM receivers but I Will not go in
depth, I’ve experienced a lot of issues with certain types
of PPM receiver modules and the one’s I find to work the
best are the Lemon RX PPM satellite receivers found
here
http://tinyurl.com/n8ljzds
Configuration
PID Tuning
PID Tuning Continued
• Good resource for tuning your PIDS
• https://www.youtube.com/watch?v=30Au6sEv6-o
Receiver
Modes
Motors
CLI (CommandLineInterface)
CLI Commands
• Set looptime = 1600 (press enter) NOTE: May very from ESC to ESC.
• Set Acc_lpf_factor = 100 (press enter)
• Set emf_avoidance = 1 (press enter)
• acc_hardware (press enter) - WARNING: ONLY DO THIS IF YOU CHOOSE NOT TO
RUN AUTO LEVEL
• Save (press enter)
looptime
This is the main loop time (in us). Changing this affects PID
effect with some PID controllers (see PID section for
details). Default of 3500us/285Hz should work for
everyone. Setting it to zero does not limit loop time, so it
will go as fast as possible.
So basically the communication speed to your ESC’s
Acc_lpf_factor
This setting controls the Low Pass Filter factor for ACC.
Increasing this value reduces ACC noise (visible in GUI),
but would increase ACC lag time. Zero = no filter
Smooth's out Accelerometer noise!!
emf_avoidance
Default value is 0 for 72MHz processor speed. Setting this
to 1 increases the processor speed, to move the 6th
harmonic away from 432MHz.
Again another setting to smooth out communication speed
to your processor.
acc_hardware
WARNING:ONLYDOTHISIFYOUCHOOSENOTTORUNAUTOLEVEL
This is used to suggest which accelerometer driver should
load, or to force no accelerometer in case gyro-only flight is
needed. Default (0) will attempt to auto-detect among
enabled drivers. Otherwise, to force a particular device, set
it to 2 for ADXL345, 3 for MPU6050 integrated
accelerometer, 4 for MMA8452, 5 for BMA280, 6 for
LSM303DLHC, 7 for SPI_MPU6000, 8 for SPI_MPU6500
or 1 to disable accelerometer altogether - resulting in gyro-
only operation.
Another setting to improve performance of your 32bit
processor.
Setup
That’s a Wrap
Something's to note.
• All flight controllers are a little different but all should
function the same.
• Setting loop time is based of the speed of your ESC
• Always remember to take off your props when working in
cleanflight.
• And this picture

More Related Content

PPTX
Codecraft Dunedin, 2015-03-04, Blackbox feature for Cleanflight, Nicholas She...
PPTX
Arduino Interfacing with different sensors and motor
PDF
Network block diagram
PDF
Microcontroladores de 32 bits
PDF
Jrc gnss-testing-facilities
PPTX
IBM QRadar V7.3.0 Hardware Guide - quick overview v0.1
PDF
UART MCU
PPT
SIMH multi-system simulator
Codecraft Dunedin, 2015-03-04, Blackbox feature for Cleanflight, Nicholas She...
Arduino Interfacing with different sensors and motor
Network block diagram
Microcontroladores de 32 bits
Jrc gnss-testing-facilities
IBM QRadar V7.3.0 Hardware Guide - quick overview v0.1
UART MCU
SIMH multi-system simulator

What's hot (20)

PPTX
Arduino
PDF
Using Timers in PIC18F Microcontrollers
PPT
44CON 2013 - Controlling a PC using Arduino
PDF
TSync_Timing_Boards_revA
PPTX
Micro-processor, Micro-controller and Peripherals
PPTX
伺服馬達控制
DOC
St 5832 sw-specification-www.ttbvs.com
PDF
Using Timer2 in Microchip MCUs
PPT
Audio led bargraph equalizer
PDF
hardware_design_RAFS
PPTX
How to configure EIGRP on a Cisco router
DOC
St5832m w specification-www.ttbvs.com
PPT
Hexapod ppt
PDF
HWg-Juno 404 - Datasheet
PDF
Avr timers
PDF
8-bit Emulator Programming with Go
PDF
PWM based motor speed control using LPC 1768
PDF
Handling Asynchronous Events in MCUs
PPTX
Traffic light control
PDF
Using ARM Dev.Board in physical experimental instruments
Arduino
Using Timers in PIC18F Microcontrollers
44CON 2013 - Controlling a PC using Arduino
TSync_Timing_Boards_revA
Micro-processor, Micro-controller and Peripherals
伺服馬達控制
St 5832 sw-specification-www.ttbvs.com
Using Timer2 in Microchip MCUs
Audio led bargraph equalizer
hardware_design_RAFS
How to configure EIGRP on a Cisco router
St5832m w specification-www.ttbvs.com
Hexapod ppt
HWg-Juno 404 - Datasheet
Avr timers
8-bit Emulator Programming with Go
PWM based motor speed control using LPC 1768
Handling Asynchronous Events in MCUs
Traffic light control
Using ARM Dev.Board in physical experimental instruments
Ad

Similar to Introduction to-cleanflight (20)

PDF
Quadcopter Talk (Abstractions)
PDF
Multipilot pres-ufficiale def
ODP
Multipilot pres-ufficiale alpago 2011
PDF
Embedded Programming for Quadcopters
PPTX
Drone Building 101
PPTX
Fly By Wire
PPTX
AVIONIC CONTROL SYSTEMS FOR EDUCATION & DEVELOPMENT
ODP
Multipilot pres-ufficiale last 2
PPTX
FAR/MARS Avionics CDR
PPT
The Kodel, an RC airplane autopilot for aerial photography
PDF
Yaskawa Design of an electric servo rudder pedal system “Servo-motoren aanstu...
PPT
UAV Presentation
PDF
PX4 Seminar 02
PDF
PX4 Seminar 02
PPT
Semi Autonomous Hand Launched Rotary Wing Unmanned Air Vehicles
PDF
PX4 Setup Workshop
PPT
Uav Stability Augmentation System Usas
DOCX
bi copter Major project report ER.Abhishek upadhyay b.tech (ECE)
PDF
Program box zyx manual
PDF
B767 checklist
Quadcopter Talk (Abstractions)
Multipilot pres-ufficiale def
Multipilot pres-ufficiale alpago 2011
Embedded Programming for Quadcopters
Drone Building 101
Fly By Wire
AVIONIC CONTROL SYSTEMS FOR EDUCATION & DEVELOPMENT
Multipilot pres-ufficiale last 2
FAR/MARS Avionics CDR
The Kodel, an RC airplane autopilot for aerial photography
Yaskawa Design of an electric servo rudder pedal system “Servo-motoren aanstu...
UAV Presentation
PX4 Seminar 02
PX4 Seminar 02
Semi Autonomous Hand Launched Rotary Wing Unmanned Air Vehicles
PX4 Setup Workshop
Uav Stability Augmentation System Usas
bi copter Major project report ER.Abhishek upadhyay b.tech (ECE)
Program box zyx manual
B767 checklist
Ad

Recently uploaded (20)

PDF
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
PDF
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
PDF
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
PDF
Hindi spoken digit analysis for native and non-native speakers
PPTX
Chapter 5: Probability Theory and Statistics
PDF
Getting Started with Data Integration: FME Form 101
PDF
A comparative study of natural language inference in Swahili using monolingua...
PDF
A comparative analysis of optical character recognition models for extracting...
PPTX
A Presentation on Touch Screen Technology
PDF
Approach and Philosophy of On baking technology
PDF
Encapsulation theory and applications.pdf
PDF
Zenith AI: Advanced Artificial Intelligence
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
PPTX
1. Introduction to Computer Programming.pptx
PPTX
cloud_computing_Infrastucture_as_cloud_p
PDF
project resource management chapter-09.pdf
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
Univ-Connecticut-ChatGPT-Presentaion.pdf
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
Hindi spoken digit analysis for native and non-native speakers
Chapter 5: Probability Theory and Statistics
Getting Started with Data Integration: FME Form 101
A comparative study of natural language inference in Swahili using monolingua...
A comparative analysis of optical character recognition models for extracting...
A Presentation on Touch Screen Technology
Approach and Philosophy of On baking technology
Encapsulation theory and applications.pdf
Zenith AI: Advanced Artificial Intelligence
Programs and apps: productivity, graphics, security and other tools
Agricultural_Statistics_at_a_Glance_2022_0.pdf
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
1. Introduction to Computer Programming.pptx
cloud_computing_Infrastucture_as_cloud_p
project resource management chapter-09.pdf
NewMind AI Weekly Chronicles - August'25-Week II
Univ-Connecticut-ChatGPT-Presentaion.pdf

Introduction to-cleanflight

  • 1. BASIC INTRODUCTION TO CLEANFLIGHT V1.9.0 By: Zach Scally (zscally@gmail.com) Presented: to FPV Race League.
  • 2. What is Cleanflight? • Cleanflight is a open source flight controller software used by 32bit processors. • Cleanflight can be used on multirotor aircraft and fixed- wing aircraft, it supports a variety for shapes and motor counts, not limited to quadcopters, hexacopters, octocopters, tricopters and planes.
  • 3. Supported 32bit Flight Controllers • Naze32 (most popular) • AlienWii32 • CC3D • CJMCU • ChebuzzF3 F3 board (new upcoming technology) • Olimexino • Paris Air Hero • SPRacingF3 F3 board (new upcoming technology) • Sparky F3 board (new upcoming technology) • Flip32 • RMRC DODO F3 board (new upcoming technology)
  • 4. The Basics (whatwe’regoingtoneed) • Some sort of cleanflight enabled board. • Some boards require you to solder header pins on. • A computer with cleanflight installed. (http://tinyurl.com/mdek2lq ) • Sometimes a SMT32 driver is required (out of scope). • A USB Cable (to plug up the flight controller) • RC receiver and Transmitter • Battery (optional)
  • 5. Flashing • Updates newest version of cleanflight to the flight controller • Improves performance and add new features • Internet connection makes things easier but not required.
  • 7. Start of Basic Setup Cleanflight is broken up in tabs • Setup (general overall view of what's going on) • Ports (Ic2 and UART communication pipes) • Configuration (General Configuration) • PID Tuning (PID controllers and RC Rate) • Receiver (Receiver Monitor and Configuration) • Modes (Flight modes and other features) • Adjustments (Custom mixes) • Servos • GPS • Motors • LED Strip • Sensors • Logging • DataFlash • CLI (Command line Interface)
  • 8. Ports • Ability to setup GPS module • Ability to setup PPM receiver • Ability to setup blackbox logging • I will briefly speak about PPM receivers but I Will not go in depth, I’ve experienced a lot of issues with certain types of PPM receiver modules and the one’s I find to work the best are the Lemon RX PPM satellite receivers found here http://tinyurl.com/n8ljzds
  • 11. PID Tuning Continued • Good resource for tuning your PIDS • https://www.youtube.com/watch?v=30Au6sEv6-o
  • 13. Modes
  • 16. CLI Commands • Set looptime = 1600 (press enter) NOTE: May very from ESC to ESC. • Set Acc_lpf_factor = 100 (press enter) • Set emf_avoidance = 1 (press enter) • acc_hardware (press enter) - WARNING: ONLY DO THIS IF YOU CHOOSE NOT TO RUN AUTO LEVEL • Save (press enter)
  • 17. looptime This is the main loop time (in us). Changing this affects PID effect with some PID controllers (see PID section for details). Default of 3500us/285Hz should work for everyone. Setting it to zero does not limit loop time, so it will go as fast as possible. So basically the communication speed to your ESC’s
  • 18. Acc_lpf_factor This setting controls the Low Pass Filter factor for ACC. Increasing this value reduces ACC noise (visible in GUI), but would increase ACC lag time. Zero = no filter Smooth's out Accelerometer noise!!
  • 19. emf_avoidance Default value is 0 for 72MHz processor speed. Setting this to 1 increases the processor speed, to move the 6th harmonic away from 432MHz. Again another setting to smooth out communication speed to your processor.
  • 20. acc_hardware WARNING:ONLYDOTHISIFYOUCHOOSENOTTORUNAUTOLEVEL This is used to suggest which accelerometer driver should load, or to force no accelerometer in case gyro-only flight is needed. Default (0) will attempt to auto-detect among enabled drivers. Otherwise, to force a particular device, set it to 2 for ADXL345, 3 for MPU6050 integrated accelerometer, 4 for MMA8452, 5 for BMA280, 6 for LSM303DLHC, 7 for SPI_MPU6000, 8 for SPI_MPU6500 or 1 to disable accelerometer altogether - resulting in gyro- only operation. Another setting to improve performance of your 32bit processor.
  • 21. Setup
  • 22. That’s a Wrap Something's to note. • All flight controllers are a little different but all should function the same. • Setting loop time is based of the speed of your ESC • Always remember to take off your props when working in cleanflight. • And this picture

Editor's Notes

  • #5: ----- Meeting Notes (8/26/15 23:07) ----- battery