Simulink model to Arduino code?

2 Ansichten (letzte 30 Tage)
aly abidali
aly abidali am 15 Mär. 2017
Beantwortet: vahid usefi am 19 Jun. 2020
Hello everyone,
I have built a quadcopter and am trying to design a control algorithm to stabilise it in flight. I have done a simulink model of the quadcopter that uses PID control and stabilises fine. I would like to somehow convert this simulink model into arduino code so that i can fly it without it connected to my computer using an arduino board. Is this possible?
The aim is to design my own flight stabilisation algorithm for a quadcopter after simulating it on simulink and then testing it experimentally.

Akzeptierte Antwort

Tohru Kikawada
Tohru Kikawada am 15 Mär. 2017
Yes, you can generate C code for Arduino through Simulink Support Package for Arduino Hardware.
  1 Kommentar
Taimur Zaman
Taimur Zaman am 14 Mai 2018
Hi, Same problem with me. I have generated a Controlled Phase Shifted PWM in arduino through code, now i want to transform same code to simulink blocks. so, is it possible, i mean if yes; how can i access from simulink arduino timers and interupts. I am new to simulink arduino interface

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

vahid usefi
vahid usefi am 19 Jun. 2020
woooooooooooooow

Kategorien

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

Community Treasure Hunt

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

Start Hunting!

Translated by