Deploy MATLAB/Simulink to ESP32 using MBD, IoT and Waijung 2
Tutorials demonstrating how to use Model-Based Design with Waijung 2 to build real devices using low-cost, powerful hardware (ESP32)
Updated
30 Sep 2022
Model-Based Design (MBD) tutorials
You'll learn about how to use a ESP32, Software in the Loop - SIL simulation, Hardware in the Loop - HIL simulation, and a Stand-Alone (SA) system
You'll learn about how to use Stateflow and Simulink together to create a basic control system
You'll learn about how to use Stateflow to model an event-driven system
You'll learn what a DIP switch is and how to interface with it
You'll learn about what I2C protocol is and how to interface with a distance sensor using I2C
Internet of Things (IoT) tutorials:
You'll learn how to model reading a LDR sensor and use that to drive a LED in Simulink
You'll learn how to read a LDR using Waijung 2 Analog to Digital Converter (ADC) block, and use that to drive a LED using Waijung 2 Digital to Analog Converter (DAC) block. You will also be tuning and monitoring signals in real-time using HIL
You'll learn how to configure ESP32 as a web server for controlling on-chip peripherals such as LEDs
You'll learn how to configure ESP32 as a web server for acquiring data from on-chip peripherals such as LDRs
You'll learn how to combine all your previous knowledge to create a complete web-based control system using Waijung 2 and Simulink. You'll also learn how to store data to non-volatile storage to allow the system to start up with the same settings as during power-off
MATLAB Release Compatibility
Created with
R2020a
Compatible with R2020a and later releases
Platform Compatibility
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.