How I can run my Simulink project in a ESP 32 board, as it is done with Arduino?

231 views (last 30 days)
David Martínez Cabrera
David Martínez Cabrera on 26 Oct 2018
I have to run a Simulink project in a ESP-32 and I don't know how to do it. There is any support package for it o something like that? Or perhaps there is any way to obtain a C++ or Python code of the project, to transfer it to the board with a external software (like Platformio).
Thanks in advance.

Answers (2)

dzid_ on 16 Nov 2019
You would generate code for the model. You can use Simulink Function block to help you with packaging. Generated c code file will be a fucntion that you can include and call from Platformio main.c

Krisada Sangpetchsong
Krisada Sangpetchsong on 7 Oct 2020
We just released (October 2020) Waijung 2 blockset, which supports Simulink code generation for ESP32. Waijung 2 can be used to develop programs for ESP32 using Matlab / Simulink environment.
Waijung 2 was developed as a model-based design platform for IoT development. There are many useful features such as advanced algorithm development, hardware in the loop test, and more.




Community Treasure Hunt

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

Start Hunting!