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

6 views (last 30 days)
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.

Answers (1)

Vishnu Vardhan
Vishnu Vardhan on 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.

Categories

Find more on MATLAB Support Package for Arduino Hardware in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!