Pages: [1]   Go Down
Author Topic: Using RX0 TX1  (Read 1284 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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! smiley


Thank you so much!
Logged

nr Bundaberg, Australia
Offline Offline
Tesla Member
***
Karma: 126
Posts: 8472
Scattered showers my arse -- Noah, 2348BC.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Rob Gray aka the GRAYnomad www.robgray.com

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 601
Posts: 48543
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Gosport, UK
Offline Offline
Faraday Member
**
Karma: 21
Posts: 3113
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?

Logged

Gosport, UK
Offline Offline
Faraday Member
**
Karma: 21
Posts: 3113
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Thanks!
Logged

Gosport, UK
Offline Offline
Faraday Member
**
Karma: 21
Posts: 3113
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes, they should be the TX and RX pins.
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 601
Posts: 48543
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Pages: [1]   Go Up
Jump to: