This tutorial demonstrate how to use Waijung2 ESP32 block set to conduct testing with Deploy to Hardware Mode.
Using "deploy to hardware mode" as a manual testing method involves deploying the software model directly to the hardware and then manually testing its functionality.
This approach can be useful when the software model needs to be validated in a real-world environment, and the behavior of the system cannot be accurately captured in a simulation.
Here are some pros and cons of using "deploy to hardware mode" compared to other testing methods:
Pros of DTH testing:
•Allows for testing of the software model in a real-world environment.
•Can be useful for validating system behavior that cannot be accurately simulated.
•Provides a quick way to check if the software model works as expected on the target hardware.
Cons of DTH testing:
•Manual testing can be time-consuming and error-prone.
•May require specialized hardware and software configuration.
•It can be difficult to reproduce specific test cases, making it challenging to track down and fix bugs.
•ESP32 development board
•USB cable
•Waijung2 ESP32 blockset installed in MATLAB/Simulink
•Basic knowledge of MATLAB/Simulink
•LED Control Setup Block
•LEDC Control Block
•Test on-board LED
Test Cases
Fade in and out LED on the ESP32 with the sample time of 1 second.
•Fade in and out ESP32 On-board LED
Right click on the model space> Other Displays> Blocks> Sorted Execution Order
Right click on the block that require priority change > Properties > Type the priority number in the Priority field box. (Note: 0 is the highest priority).
Select "APPS" Tab and Select "Embedded Coder"
Select "Build" button to Build the model to hardware.