필터 지우기
필터 지우기

Serial Communications: Simulink and Arduino interface

조회 수: 2 (최근 30일)
Nico
Nico 2014년 8월 20일
댓글: prasad noolu 2017년 9월 23일
Hi,
I'm using an Arduino UNO (and later on, possibly a Mega) to process gyro and accel information from two IMU's. It's reading well but I'm having a tough time sending the sensor information to Simulink.
On my Arduino, I'm sending the data through the serial port via Serial.print(). It would end up looking like this:
...
21.60,-0.35,2.38,-13.92,-9.30,-79.69
21.52,-0.38,2.40,-16.48,-10.06,-78.18
21.44,-0.40,2.41,-19.00,-10.81,-76.57
21.36,-0.42,2.42,-21.47,-11.55,-74.90
21.28,-0.44,2.42,-23.86,-12.27,-73.20
...
I can read it fine through Arduino IDE but I'm kinda stuck as to how to port it to Simulink.
  댓글 수: 1
prasad noolu
prasad noolu 2017년 9월 23일
https://in.mathworks.com/matlabcentral/answers/270895-arduino-simulink-serial-communication this link might help

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Arduino Hardware에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by