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

6 visualizaciones (últimos 30 días)
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.

Respuestas (1)

Vishnu Vardhan
Vishnu Vardhan el 8 de Jun. de 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.

Categorías

Más información sobre MATLAB Support Package for Arduino Hardware en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by