This is the first Arduino demo with Simulink that you should try (if you're a beginner) before you attempt the rest in this list. It shows how you can blink an LED using a Digital output pin with signals coming from a pulse block in Simulink.
Try using Arduino MEGA 2560 in external mode if you want to change the parameter in real time.
Techsource Technical Team (2020). Flashing LED (https://www.mathworks.com/matlabcentral/fileexchange/51708-flashing-led), MATLAB Central File Exchange. Retrieved .