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

5 Ansichten (letzte 30 Tage)
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.

Antworten (1)

Vishnu Vardhan
Vishnu Vardhan am 8 Jun. 2019
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.

Kategorien

Mehr zu MATLAB Support Package for 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