Thoughts, ideas, ramblings. Covering a wide range of topics from Windows to Linux, Azure, hardware, software & more.
Search

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

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);
...

Comments

2 Responses

  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!

Leave a Reply

Your email address will not be published. Required fields are marked *