Pages: [1]   Go Down
Author Topic: Arduino Uno, RN-XV, Seeed Relay Shield- Not working, what am I missing?  (Read 1589 times)
0 Members and 1 Guest are viewing this topic.
South Pasadena
Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello,
I have the following setup-
- Arduino UNO (http://arduino.cc/en/Main/ArduinoBoardUno/)
- Seeed Relay Shield (http://seeedstudio.com/wiki/Relay_Shield)
- Sparkfun WiFly RN-XV (http://www.sparkfun.com/products/10822)

and I've tried each of the following libraries-
- WiFlyHQ (https://github.com/harlequin-tech/WiFlyHQ)
- WiFlySerial (http://sourceforge.net/projects/arduinowifly/)

but nothing seems to work, I continually get the flashing red light on the WiFly, which from what I've read, means its not connected to a network.

Even this simple example to create an ad-hoc network, using the WiFlyHQ library, doesn't seem to work-
Code:
#include <WiFlyHQ.h>
#include <SoftwareSerial.h>
SoftwareSerial wifiSerial(8,9);

WiFly wifly;

void setup()
{
    Serial.begin(115200);
    Serial.println(F("Starting"));
    wifiSerial.begin(9600);
    wifly.begin(&wifiSerial, &Serial));

    wifly.createAdhocNetwork("wifly", 10);

    Serial.println(F("Network ready"));
}

void loop()
{
    wifly.terminal();
}

I have tried disconnecting the Seeed shield from the Arduino first, then uploaded my sketch, then reconnecting, as I've read having it connected can interfere with uploading sketches.

So aside from asking the insanely broad question of what am I doing wrong, I'll ask- is there anything I need to do to the WiFly first, to set it up directly?
I haven't read anything about having to do such a thing, but I can't think of anything else.
I've also read a few thing about a diode on pin 3 and having to remove it (http://www.instructables.com/id/Visual-Network-Threat-Level-Indicator-v2/step5/Fix-the-XBee-Shield/), but that is in reference to SparkFun's Xbee shield, so not sure if that would be applicable for my Seeed Shield.

I'm obviously a noob. Any help would be greatly appreciated, this is driving me crazy.
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 212
Posts: 8969
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Does the relay shield hook the WiFly serial I/O pins to Arduino pin 8 and 9?  If not, your sketch won't do anything.  I don't see anything about that in the description so you may need to look at the schematics to figure it out.
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

South Pasadena
Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yep, that did it, I had the wrong pins, thank you! Told you I was a noob; now I understand softwareSerial a lot more.
Logged

Pages: [1]   Go Up
Jump to: