Differentiate between UART and USB in Arduino UNO

Hi,
I use an Arduino UNO in between a Host PC and an LED driver chip. A host utility on the PC is used to send commands to the Arduino (through the USB port), based on which the Arduino send commands to the LED driver chip (through UART). Whenever I am trying to read data from UART using Serial.read(), the same data is also being sent to USB and host utility is not behaving as expected. Is there a way to differentiate data between the UART and the USB on an Arduino UNO.

Regards,
AliAsgar

No, they are the same. The UART IO is connected to the TTL-to-USB converter as well as exposed on pins 0 and 1. See schematic:

Your options are to use another board with a UART that is free or to use SoftwareSerial (or one of the better alternatives like NeoSWSerial).

Your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is for problems with the IDE, not with your project.

Check if the following diagram (Fig-1) does answer to your queries:


Figure-1:

If you enter A in the InputBox of Serial Monitor at the PC side, it is converted into an 10-bit asynchronous UART Frame which is then transformed into USB Format for onward transmission over the USB Port of the PC. The signal is transformed back to asynchronous UART Format at the UNO side in order to be compatible with ATmega328P MCU of the UNO Board,

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.