Go Down

Topic: Doubt about pin 0,1,2 and 3 and tx/rx (Read 288 times) previous topic - next topic

pierrot10

Good evening,

I am working on a arduino UNO with the goal to switch to an arduino mini pro.

I am use to do that

Serialsoftware cell(2,3);

For the GPRS signal.

I am also getting GPS cords and until now I always saw examples which use the pin 2 and 3 pour the GPS and GPRS signal.

I would like to desperate both and use pin 2 and 3 for GPRS and pin 0 and 1 for GPS.

Serialsoftware cell(2,3);
Serialsoftware gps(0,1);

Is possible to use 0 and 1? Or should I use other pin.
I am a beginner and I heart that pin 0 and 1 are reserved.

What do you think?

Thank a lot.
Il ne suffit pas de tout savoir, la persévérance, c'est déjà presque tout!

Nick Gammon

Pins 0 and 1 are connected to hardware serial, so you don't need to use SoftwareSerial on them.
Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

PaulS

Quote
so you don't need to use SoftwareSerial on them.

And, in fact, it doesn't work if you try.

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy