BLDC speed control with simulink using an ESC and Arduino.

50 vues (au cours des 30 derniers jours)
Haseeb Mahmood
Haseeb Mahmood le 18 Juil 2019
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 commentaires
Mehmet
Mehmet le 5 Mar 2023
what is blog diagram figure?
KARTHIKEYA REDDY B S
KARTHIKEYA REDDY B S le 7 Sep 2024
bro did u found the answer

Connectez-vous pour commenter.

Réponses (1)

Kothuri
Kothuri le 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!

Catégories

En savoir plus sur Arduino Hardware dans Help Center et File Exchange

Produits


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by