BLDC speed control with simulink using an ESC and Arduino.

58 Ansichten (letzte 30 Tage)
Haseeb Mahmood
Haseeb Mahmood am 18 Jul. 2019
Beantwortet: Kothuri am 13 Sep. 2024
Has anyone modelled a BLDC speed controller using an Arduino board and simulink? i am using an Arduino Uno board and a generic 12v bldc motor with a 30A hobbyking ESC. I can confirm all the components are working after testing the components with Arduino software. But am struggling to get it to work with the simulink Arduino package
  3 Kommentare
Mehmet
Mehmet am 5 Mär. 2023
what is blog diagram figure?

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Kothuri
Kothuri am 13 Sep. 2024
I understand that you are trying the perform BLDC speed control with Simulink using an ESC and Arduino Uno board but are facing issue with the Simulink support package for Arduino.
Here are certain approaches which can fix the error:
  • Ensure you have the Simulink Support Package for Arduino installed. You can install it from the MATLAB Add-Ons Explorer.
You can refer the below link for installation of Simulink support package for Arduino https://www.mathworks.com/help/simulink/supportpkg/arduino_ug/install-support-for-arduino-hardware.html
  • Check that MATLAB can communicate with your Arduino Uno. Use the arduino command in MATLAB to verify the connection: a = arduino();
  • While building the model in Simulink, use the Arduino blocks from the Simulink Support Package to interface with the hardware. For example, use the PWM block to control the ESC and the Analog Input block to read sensor data.
  • Configure the PWM block to generate the appropriate control signals for your ESC. Ensure the PWM frequency and duty cycle are set correctly.
  • Use the "Deploy to Hardware" feature in Simulink to upload the model to the Arduino. Ensure that the correct board and port settings are configured in the Simulink model's configuration parameters.
  • Use the Serial Monitor in Arduino IDE to debug and monitor the signals being sent to and from the Arduino.
  • Ensure the ESC is calibrated to recognize the full range of PWM signals from the Arduino.
You can refer the below article on Motor Control using Arduino for more info:
I hope this helps!

Kategorien

Mehr zu Arduino Hardware finden Sie in Help Center und File Exchange

Produkte


Version

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by