Serial communication Problem using arduino MEGA 2560

조회 수: 1 (최근 30일)
Swanand Pisat
Swanand Pisat 2016년 4월 14일
댓글: Swanand Pisat 2016년 4월 15일
I am using Arduino MEGA 2560 for serial communication. I am using MATLAB for the coding for the same.
After configuring and downloading the code in the board, I am trying to receive data using Real term software. The problem is, sometimes I am receiving the correct data and sometimes I am not even if I am sending the same data.
I don't understand what is the problem. I am attaching screenshot of data i am receiving in both the cases. Serial Communication details: baud rate: 115200 datatype: uint16 Board to PC interface: UART to USB converter
  댓글 수: 1
Swanand Pisat
Swanand Pisat 2016년 4월 15일
I solved the problem by breaking my uint16 data into 2 byte and sending successfully through serial port.

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

답변 (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