[STM32 Drone programming from scratch] 4-1. Flysky FS-i6 / iA6B setup and i-Bus data reception

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 พ.ย. 2022
  • This video explains how to set up Flysky's FS-i6 transmitter and bind it to the FS-iA6B receiver to receive digital i-Bus data.
    M-HIVE "STM32 Drone programming from scratch"
    This is the only course about the drone embedded system development from sensor interface, the most basic feature, to PID control for the flight control.
    ☆★ Buy an MH-FC V2.2 and drone parts ☆★
    www.m-hive.net/
    ☆★ Download source code ☆★
    github.com/ChrisWonyeobPark/M...
    ☆★ Overview of the "STM32 Drone programming from scratch" course ☆★
    • [STM32 Drone programmi...
    ☆★ Contents of the course ☆★
    • [STM32 Drone programmi...
    ☆★ Introduction to the drone parts ☆★
    • [STM32 Drone programmi...
    This video includes
    - Data flow from FS-i6 transmitter → FS-iA6B receiver → MH-FC
    - Flysky FS-i6 / iA6B overview
    - FS-i6 Factory reset
    - FS-iA6B and FS-i6 binding
    - FS-i6 Sticks Mode setting
    - FS-i6 Aux channel setting (SwA, SwC)
    - What is Fail-safe?
    - FS-iA6B UART parameters
    - CubeMX UART5 configurations
    - Write code to pass i-Bus data to PC
    - Receive i-Bus data
    - Conditions for fail-safe to trigger
    Enjoy the course.
    Thank you!
    The lecture consists of 3 parts and 12 chapters. (51 videos)
    In Part 1. Flight control system development fundamentals
    CH1. Setting up the development environment for STM32 embedded systems
    CH2. Sensor interface - BNO080 9-axis sensor, ICM-20602 6-axis sensor, LPS22HH barometric pressure sensor (SPI)
    CH3. GPS data receiving and parsing - NEO M8N (UART)
    CH4. Transmitter and receiver, data receiving and parsing - FS-i6 transmitter, FS-iA6B receiver using i-Bus serial protocol (UART)
    CH5. Drone assembly (QAV210 frame)
    CH6. BLDC motor drive - Oneshot125 PWM protocol (TIM-PWM)
    In Part2. Communication and add-on functions
    CH7. Add-on functions - EEPROM interface(I2C), battery voltage checker(ADC), BNO080 calibration, gyro offset removal
    CH8. Radio data transmission (FC↔GCS) (Transmitting drone status information and receiving control parameters, how to use Ground Control Station for this course)
    CH9. Safety functions - Fail-safe motor force stop and low battery alarm for safety
    In Part3. Flight Control using PID Control
    CH10. Preparation for PID control
    CH11. Roll, pitch control (Cascade PID)
    CH12. Heading control (Single PID)
    ※ What will students learn in this course?
    - STM32F4 based high performance drone flight control system firmware development
    - How to setup peripherals, generate and build source code for STM32 with STM32CubeIDE
    - Sensor interface, motor driving, radio data transmission, flight control and its all source code
    - How to use STM32F4 HAL and LL driver (mainly LL used)
    - Embedded system firmware development process
    - Self-made drone FC software development
    - Various sensors (9DoF, 6DoF, Barometer) interface
    - GNSS(GPS) interface and data parsing
    - FlySky FS-iA6B receiver interface and data parsing (iBus message protocol)
    - How to setup a quadcoptor drone
    - PWM generation using TIM peripheral of STM32
    - ESC calibration and various ESC protocol types
    - BLDC motor driving using oneshot125 protocol
    - Radio data communication
    - EEPROM, battery voltage checker and low battery alarm
    - Safety functions - sensor connection check, Fail-safe, etc.
    - Drone flight control technique - PID control in self-leveling mode
    - Single loop and Double loop PID (Cascade PID) control theory and experiment
    ※ What are the requirements or prerequisites for taking your course?
    - MH-FC V2.2 flight controller is required!!
    - You must purchase the drone parts yourself. Check the attached on my github
    - Windows PC and STM32CubeIDE. (Not supported MAC or linux, etc.)
    - C programming language novice or intermediate level required.
    - STM32F4 or any type of microcontroller (MCU) development experience required.
    - Basic circuit knowledge required. (But not essential)
    ※ Who is this course for?
    - Those who want to build the entire drone control system step by step, from sensor interface to the flight control
    - Those who want to develop embedded application programs using STM32
    - Anyone who want to build your own unique drone flight controller
    - Students majoring in electronics, communication, control, mechanics, and dynamics
    - Those who want to experience the embedded system development process
    - Those who want to jump up from Arduino or 8bit to 32bit MCU
    - Those who want to learn the basic principles of PID control and implement their own operation
    - Those who want to practice high-level embedded projects
    - Drone-related research institutes and educational institutions
    - Those who are working on projects related to unmanned vehicles
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 6

  • @user-ue7hu1nq9w
    @user-ue7hu1nq9w ปีที่แล้ว +1

    36:00 의도 하지 않은 명령이 들어 갈 수 있다는 생각되네요...Fail Safe기능까지 있다니 좋네요...

    • @ChrisWonyeobPark
      @ChrisWonyeobPark  ปีที่แล้ว

      네 fail-safe 기능이 없으면 매우 위험한 상황이 발생할 수 있기 때문에 반드시 사용해야 하는 기능입니다. 본 챕터4에서는 fail-safe가 발동되었는지 확인하는 기능을 구현하고, 향후 챕터9에서 fail-safe 등 위험한 상황이 발생했을때 모터를 강제 정지 하는 등의 안전장치를 구현합니다.

  • @user-ff5ty7hw2u
    @user-ff5ty7hw2u ปีที่แล้ว +1

    강의 감사합니다
    영상에 나온 Fs ia6b을 Pwm으로 사용 할려면
    Fc에 연결을 어떤 포트로 해야할까요?
    Fc는 f4 v3s plus입니다

    • @ChrisWonyeobPark
      @ChrisWonyeobPark  ปีที่แล้ว

      FC가 PWM입력을 지원한다면 해당 핀에 연결하시고 설정프로그램을 통해 PWM 입력을 활성화 시키시면 될 것 같습니다. 사용하시는 FC의 매뉴얼을 참조해보세요.

  • @jonm9154
    @jonm9154 ปีที่แล้ว +1

    안녕하세요, 강의 감사합니다! 데이터가 0x20, 0x40부터 들어오지 않는 경우는 무엇이 문제일까요?? 감사합니다!

    • @ChrisWonyeobPark
      @ChrisWonyeobPark  ปีที่แล้ว +1

      안녕하세요! 혹시 어떤 데이터가 들어오는지 확인해보시겠어요? 헤더만 문제인건지 다른 데이터까지 다 다른 값들이 들어오는지 확인해보셔야 할 것 같습니다.
      혹시 모르니 보레이트가 일치하는지도 확인해보시고요~