18.4. Touch screen control of BLDC (BLDC LVGL)

18.4.1. Overview

bldc_littlevgl_foc control of DC brushless motor by operating the touch screen.

  • Use the FOC control algorithm

  • Use the littlevgl motor drive library

  • Touch screen operation to control motor position and speed

  • Real-time display of motor speed and position

18.4.2. Configurations

  • This program uses the BLM57050-1000 brushless motor of “Leisai Intelligence”, please refer to the Leisai Intelligence website for the specific parameters of the motor.

  • Board settings refer to the development board documentation Motor Pin related content

18.4.3. Running the demo

After the initialization operation, the screen will display the interface, click on the screen for speed and position control, and the screen will show the speed and position information.

Warning

  • After the motor is powered on, it will first perform the “alignment” action. If the motor is disturbed at this time, it will produce a jitter.

  • Pay attention to the current size, when abnormalities occur, please cut off the power at any time

Note

  • Dependency on lvgl version 8.3.5