i am sending one 8 bit binary number from matlab to serial port,how i read this data using arduino

4 ビュー (過去 30 日間)
i am sending one 8 bit binary number from matlab to serial port.
for example
i am sending 00000000 ,and then 00000001 from matlab i need a code of aRduino that how i read this serial data on arduino.

回答 (1 件)

Vishnu Vardhan
Vishnu Vardhan 2019 年 6 月 8 日
Serial monitor of Arduino is a very useful feature.Serial monitor is used to see receive data, send data,print data and so on.Serial monitor is connected to the Arduino through serial communication. This serial communication occurs using RX (pin 0) and TX (pin 1) terminal of Arduino. Any kind of data can send through this serial monitor. To read incoming data in Arduino "Serial.reads ()" And "Serial. readString ()" are two very useful functions. This to function reads the data which are come to Arduino serial port.

カテゴリ

Help Center および File ExchangeMATLAB Support Package for Arduino Hardware についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by