I have an Ardunio Uno that I would like to connect the rxd (d0) and txd (d1) lines to a serial device to send and receive data with that device.I also want to echo data to the USB port to a PC to display the data in a Labview application.Can the Uno handle these two serial port functions with d0/d1 and the USB port?Thanks
The Leonardo might work for me if it has 2 serial ports as you say...
And it might not as the Leonardo can bring its own limitations to the table, and I understand the software serial library Lefty mentions is written with exactly this in mind, for the Uno you already have, and it is free.
Does anyone know if the Uno or the Leonardo can be used as a Serial to USB adapter?
The Leonardo can be used as this, the UNO includes an ATmega16U2 for this purpose, so theoretically it can be used too.
Does anyone know if a Uno be used as a Serial to USB converter with the use ofthe SoftwareSerial library or is this only for Leonardo & Mega arduinos?
Receives from the hardware serial, sends to software serial. Receives from software serial, sends to hardware serial.
You don't need the SoftwareSerial library just for a Serial2USB converter because the UNO has one onboard. Just connect the USB and put the serial device on pins 0 and 1 and you have a USB2Serial device.
As you have a uno your best option is to try the software serial. It is just downloading the lib and try. I have used software serial before and the quality is OK.One of the differences between UNO and leonardo is that the USB on the UNO is serviced by a chip which is actually connected to pin 0 and 1.
I will try the SoftwareSerial library which should allow me to use pins (other than 0 & 1) because I am concerned about communication issues if pin 0 & 1 are shared for both my serial device and the USB to the PC unless I can see some example code that works...