Integration of Arduino With MATLAB Simulink
Integration of Arduino With MATLAB Simulink
INTRODUCTION:
● MATLAB Simulink has come up with the features of Integrating arduino with it , which
make easier for viewing the outputs in microcontroller board
● This avoids manual coding and developer can directly simulate the model and then
build, deploy and start the logic directly in the arduino board whereas the application
software is developed as model from the simulink
PREREQUISITE:
● Simulink support package for Arduino Hardware
● Hardware board supportability verification in configuration parameters in MATLAB
● Supportable arduino board with necessary hardwares
STEPS:
● Model development
● Configuring the output pins(Digital output) and assigning the pin details for output loads
● Configuration parameters settings (hardware board selection)
● COM Port number verification for verified communication between model and arduino
board
● Output verification(Build,Deploy and Start)
Model Development:
● Here the brake logic model is developed as per the requirement which includes three
signals front brake signal, Rear brake signal and US pin to enable the trafficator signal
output as part of output signal.
● Brake lamp will glow when Front brake signal or Rear brake signal is enabled and
trafficator signal will glow when US pin enabled along with any one brake signal enabled.
● Here output signals are assigned to the port pins 9 and 10.
Output verification:
● To verify the output in arduino hardware after all the above process, click on
Build,Deploy and Start in the hardware tab.
Results and Discussion:
● Following are the results obtained from the arduino board for the model developed in
simulink.