Go Down

Topic: Using RX0 TX1 (Read 1 time) previous topic - next topic

dfelix

Hello everyone,


I'm currently using a arduino nano.
It has the usb port, which think it uses RX1 TX0 as default TTL output.

Board has also RX0 TX1 pins.
And I'm trying to send data to a PNA through them...but sometimes it works. Sometimes don't.
What is confusing!

Do I need to define on code which pins Serial.print() will send data?

I've searching for information, but everything looks too complex.
I only need to send a data string through that pins! :)


Thank you so much!

Graynomad

Quote
Board has also RX0 TX1 pins.

As far as I can see the Nano has the same serial connections as a standard Arduino, that is a single Tx and Rx. Where do you see the extra pins?

______
Rob
Rob Gray aka the GRAYnomad www.robgray.com

PaulS

Quote
It has the usb port, which think it uses RX1 TX0 as default TTL output.

I'm almost certain that the USB to serial converter KNOWS which pins to use.

dfelix

OK...
So... what do i need to Serial.print() send data through RX0 TX1 pins?

dxw00d

If you actually have one of these - http://arduino.cc/en/Main/ArduinoBoardNano - please explain where the RX0/TX1 pins are. The Nano, being 168/328 based, only has a single hardware serial port, connected to the pins marked D0RX and D1TX. You could use SoftwareSerial if you wanted additional serial IO.

dfelix


If you actually have one of these - http://arduino.cc/en/Main/ArduinoBoardNano - please explain where the RX0/TX1 pins are. The Nano, being 168/328 based, only has a single hardware serial port, connected to the pins marked D0RX and D1TX. You could use SoftwareSerial if you wanted additional serial IO.


I thought that RX0 is D0RX and TX1 is D1TX...



So... Serial.print() is using this pins by default?
The Tx LED shouldn't  blink?


dxw00d

Ok. It's not an official Nano, so the pins are labelled slightly differently. RX0 and TX1 are the hardware serial pins, so Serial.print() will use those pins.

dfelix

So... should this be real RX0 and TX1 pins?
Or the labels are wrong, as it's not a official nano?

Thanks!

dxw00d

Yes, they should be the TX and RX pins.

PaulS

Quote
So... Serial.print() is using this pins by default?
The Tx LED shouldn't  blink?

Yes, Serial.print() uses those pins. No, the Tx LED should not blink. The TX LED is controlled by the USB to Serial converter, which you are not using if you are not using a USB cable.

Go Up