Arduino Mega 2560, Wireless Proto Shield and Roving Networks WiFly RN-XV

By Jake Edwards | Saturday, March 23rd, 2013 | Permalink | 2 Comments

Recently I’d been delving into some Arduino Wifi projects using the following shields/modules;

There seemed a lack of documentation for these three components so this is how I got them to work together;

Serial1

Bending pins 1 and 2 of the Proto shield inward so they don’t connect to the Arduino Board, and then connecting pins to the Serial1 bus;

  • Shield Pin 0 to Arduino Mega Pin 19
  • Shield Pin 1 to Arduino Pin 18

WiFlyHQ

Using the WiFlyHQ library, and then altering the initialization line within projects like the following;

...
  wifiSerial.begin(9600);
  if (!wifly.begin(&wifiSerial, &Serial)) {
...

to

...
  Serial1.begin(9600);
  wifly.begin(&Serial1, NULL);
...
  1. This one is gold! I’m new to this stuff and after fiddling around for an hour or two to get the module running together with the Mega 2560 … it was these little changes that brought me forward.

    Thank you!

    Comment by Nils — June 29, 2013 @ 12:15 pm

  2. Sketch Arduino WiFi for Wifly modem configuration without library and
    with front-end: https://dl.dropboxusercontent.com/u/101922388/WiflySanUSB.zip

    Comment by SanUSB Laese — February 1, 2014 @ 10:58 pm

Leave a comment