Serial communication Problem using arduino MEGA 2560

1 Ansicht (letzte 30 Tage)
Swanand Pisat
Swanand Pisat am 14 Apr. 2016
Kommentiert: Swanand Pisat am 15 Apr. 2016
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 Kommentar
Swanand Pisat
Swanand Pisat am 15 Apr. 2016
I solved the problem by breaking my uint16 data into 2 byte and sending successfully through serial port.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Arduino Hardware finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by