Dear All..
Please welcome me.. I need to know can Arduino UNO connects to 2 serial devices / ports ?
Thank you.
Best Regards,
Hartono
Dear All..
Please welcome me.. I need to know can Arduino UNO connects to 2 serial devices / ports ?
Thank you.
Best Regards,
Hartono
Yes.
One hardware, one software serial.
Example: fast hardware port to a PC using the USB/Serial adapter, and slower software serial with a 4800 data rate connection to a GPS.
the micro-controller on the arduino only has one serial port, but that doesnt stop you from using software serial to fake one more, its in the included libraries
Thank you CrossRoads and Osgeld for you quick respond.
I need to read data from a device and do some process on board then send data to PC for archiving. The board will be installed nearby the device and PC-device distance is about 25m.
Sorry if my question make you confuse.
Thank you.
What are the serial data rate speeds you need?
The speeds will determine which port uses the hardware serial port and which uses the software serial port.
For 25m, you may have to use an RS232 driver to send to the PC.
Thanks CrossRoads,
I am using 9600,8,n,1 device setting.
May I describe more detail of my project to your privately message ? It's may be too simple for you..
Thank you.
Best Regards,
Harooney
No, keep it here please, I'm not always available.
That's pretty slow speed. I would do this:
Connect to the local device using software serial, assuming its at TTL levels.
For the PC, get a collection of adapters:
PC end, USB-A to RS232:
http://electronics.macbook-covers.net/wholesaler/USB-TO-RS232-DB9-9-PIN-RS-232-SERIAL-PORT-Adapter-Converter-CABLE-p4988.html
Then an RS232 to RS232 cable
On the arduino end, same part for RS232 to USB-A
Then USB-A to USB-B mini to plug into the board.
http://www.overstock.com/Electronics/BasAcc-USB-2.0-Type-A-to-Mini-USB-5-pin-Type-B-Adapter/6560487/product.html?cid=202290&kid=9553000357392&track=pspla&kw={keyword}&adtype=pla