For Newbies: Making RN-XV Work with Uno

All things pertaining to wireless and RF links

Moderator: phalanx

For Newbies: Making RN-XV Work with Uno

Postby tom_in_az » Thu Oct 24, 2013 7:45 pm

Well, I am new to this stuff.... It took me days to just get a serial connection going. For you other newbies, if you are looking to just start off with a simple serial connection to your Uno, use this code.

The intended connection points on a Uno board is using Analog 4 & 5 (A4 & A5), otherwise known as Digital 18 & 19 (D18 & D19). Feel free to change these up, but try not to use D0 & D1 as those pins also share how the Uno is programed via USB.

Code: Select all
 * Here is your code needed to make the RN-XV work with an Uno.
 * Take this code and use it to make your own sketches.
 * I am using Arduino IDE 1.0.5
#include <SoftwareSerial.h>

SoftwareSerial mySerial(18, 19); // RX, TX

void setup() 
  // Open serial communications and wait for port to open:
  while (!Serial) {
    ; // wait for serial port to connect. Needed for Leonardo only

  Serial.println("Serial Connection is go!");

  // set the data rate for the SoftwareSerial port

void loop() // run over and over
  if (mySerial.available())
  if (Serial.available())
Posts: 9
Joined: Sat Jun 18, 2011 1:19 am

Re: For Newbies: Making RN-XV Work with Uno

Postby stevech » Sat Oct 26, 2013 12:03 am

er, What's an RN-XV?
Support Volunteer
Posts: 2762
Joined: Sat Jun 05, 2004 8:51 pm
Location: USA, California

Re: For Newbies: Making RN-XV Work with Uno

Postby uChip » Sun Oct 27, 2013 9:07 pm

The RN-XV is the XBee-shaped board containing the Roving Networks WiFly module (RN-171). The naming between the board and the module is somewhat confusing. See SparkFun WRL-10822.
Posts: 157
Joined: Sat Jan 19, 2013 11:30 am

Re: For Newbies: Making RN-XV Work with Uno

Postby gcriniti » Sun Jan 19, 2014 8:58 am

Thanks for posting this! I'm connected! I've been looking for quite some time for a way to get started with serial communication between my Uno and WiFly board. If you can offer any more assistance, it would be greatly appreciated. I want to write a Windows application to talk to another serial device connected to the Uno. -Greg
Posts: 3
Joined: Sun Jan 19, 2014 8:49 am
Location: Maryland

Return to Wireless/RF

Who is online

Users browsing this forum: No registered users and 2 guests