SparkFun WiFly Shield

This new version breaks out the PI09, FORCE WAKE, and the hardware reset lines. It also has a different crystal and uses the RN-131C.

The WiFly Shield equips your Arduino the ability to connect to 802.11b/g wireless networks. The featured components of the shield are a Roving Network's RN-131C wireless module and an SC16IS750 SPI-to-UART chip. The SPI-to-UART bridge is used to allow for faster transmission speed and to free up the Arduino's UART.

Power is taken from the Vin pin of your Arduino, regulated to 3.3V, and provided to both the RN-131C and the SC16IS750. You'll communicate with the WiFly Shield over SPI using Arduino digital pins 10-13 (CS, MOSI, MISO, SCLK respectively).

The shield includes the RN-131C, SC16IS750 and their supporting components. The shield also provides a small prototyping area, with 0.1" spaced holes. Headers are not soldered on, we recommend the 6 and 8-pin stackable headers.

SparkFun WiFly Shield Product Help and Resources

Core Skill: Soldering

This skill defines how difficult the soldering is on a particular product. It might be a couple simple solder joints, or require special reflow tools.

2 Soldering

Skill Level: Rookie - The number of pins increases, and you will have to determine polarity of components and some of the components might be a bit trickier or close together. You might need solder wick or flux.
See all skill levels


Core Skill: Programming

If a board needs code or communicates somehow, you're going to need to know how to program or interface with it. The programming skill is all about communication and code.

3 Programming

Skill Level: Competent - The toolchain for programming is a bit more complex and will examples may not be explicitly provided for you. You will be required to have a fundamental knowledge of programming and be required to provide your own code. You may need to modify existing libraries or code to work with your specific hardware. Sensor and hardware interfaces will be SPI or I2C.
See all skill levels


Core Skill: Electrical Prototyping

If it requires power, you need to know how much, what all the pins do, and how to hook it up. You may need to reference datasheets, schematics, and know the ins and outs of electronics.

2 Electrical Prototyping

Skill Level: Rookie - You may be required to know a bit more about the component, such as orientation, or how to hook it up, in addition to power requirements. You will need to understand polarized components.
See all skill levels


Comments

Looking for answers to technical questions?

We welcome your comments and suggestions below. However, if you are looking for solutions to technical questions please see our Technical Assistance page.

  • Aristarco / about 9 years ago / 1

    Is there any explanation as to why this product was retired? Or it was just because? I have one and it works great. I came here to get another one and it's retired. Any comments?

  • KingArt / about 9 years ago / 1

    I am new to arduino wifi. I bought this module and planned to integrate it with the weather shield. However, I realized it has the original non R3 layout! I cannot put the weather shield on top of the wifely shield! Unless I cut the legs of the additional two legs on the weather shield R3 layout. But doesn't that defeat the purpose of shields if I want to put something more in between?

    Why is the wifi shield esp8266 only $14 dollars while it has R3 layout and can connect to wireless n? While this $69 wifly shield does not? I am new to wireless connectivity so please correct me as logic tells me I may not be correct here.

  • Member #310550 / about 12 years ago * / 4

    Three things required to make the library work in Arduino 1.01 IDE. I am using arduino uno r3 stacked with this wifly shield...

    1) Understand the program carefully. Library is good but has few flaws, might need to re program for added functionality.. Im adding UDP packets looking at other libraries. should not be too hard.... Id advise to follow the speaker jet tutorial and look at water sensor project...

    2) Change the struct for SPI configuration as stated in tutorial comments. So will require to change the header file conf... struct SPI_UART_cfg SPI_Uart_config = {0x50,0x00,0x03,0x10};

    to...

    struct SPI_UART_cfg SPI_Uart_config = {0x60,0x00,0x03,0x10}; if doing the tutorial for speak jet...

    In the library the struct changes in SpiUart.cpp and only has two bytes and need to config other bits in the header file

    change it to from something else to

    struct SPI_UART_cfg SPI_Uart_config = { 0x03, 0x10 };

    3) Try to run all the library examples.. The problem I got stuck with was with the server example. So I developed my own server using the tutorial and that seemed to work however the example server did not . Found that it was just a delay of 200 ms required in void loop() function at start... there should be delay just before server is checked again..

    delay(200); WiFlyClient client = server.available();

    That should make the library run ..

    hope it helps and there is my weekend...

    • Member #466627 / about 11 years ago / 1

      Good day Member #320550, I'm Yannick, third year student at the faculty of electrical engineering at TUT (www.tut.ac.za) here in South Africa. I'm working on a project based on creating a wireless network using arduino uno-R3 and the breakout board WiFly-Shield 2.21 RN-131C from sparkfun... I'm using arduino 1.0.5 skecth, and still testing my shield to see if it responds as expected: like receiving "CMD" after sending "$$$". But I do not receive such response from it, I'm busy working on it hoping to figure it out soon; meantime I'd like you to please check the following code of mine I used to do it, hoping you would give me a hint to solve it.... Thanks, Kind regards.

      " /* This code tests my Sparkfun WiFly-Shield */

      // headers files or librairies #include

      // Declare/Initialize Vars. int rx_in = 0, tx_out = 1, cnt = 0; char wif_dat[5];

      // Functions prototypes

      // set up function, run once when program starts void setup() { //set i/o pinMode(rx_in,INPUT); pinMode(tx_out,OUTPUT); //Initialize serial com. port at 9600 bps Serial.begin(9600); // Serial.print("set uart baudrate 9600"); }

      //loop function, run infinitely after program starts void loop() { //Set shield in command mode //Serial.println("$$$"); delay(200); //wait till data arrive while( Serial.available() > 0 ) { wif_dat[cnt] = Serial.read(); cnt++; }

      wif_dat[cnt] = '\0'; Serial.println(wif_dat); }

      //Functions "

    • Member #398488 / about 12 years ago / 1

      Thank you, your tip for the delay(200) changed my WiFly shield from a non-responsive piece of expensive junk back into a valuable piece of kit. I am very grateful.

  • 42$ for a shield (2$ for headers), I can buy 2x Arduino Pro's for that.

  • HugoM / about 14 years ago / 3

    I made a small robot with the WiFly.
    Check my video!
    http://www.youtube.com/watch?v=tjR969Vp0Cw

  • WB4JFI / about 10 years ago / 2

    I am using the Wifly shield with an Arduino Uno R3, using the latest Roving firmware in the WiFly module. The sketch works fine as long as I'm connected to the computer via USB, but not if I run the Uno from a wall-wart using the barrel power connector. Note that the Uno/WiFly does not send any data to the host computer, it's only getting power from the USB connection.

    In monitoring the SPI pins, I see that at least the SCLK and SS signals disappears as soon as the first character is received over the WiFly connection. However, if I reset the Uno (hit the reset pushbutton) without pulling power, then everything works fine after that. The SPI signals are correct, and dont' go away.

    I've tried slowing down the reset pins on both the Arduino and WiFly SPI UART with caps, using Spi_Serial.begin() more than once, various delays in setup (in case the power is coming on too fast), etc, but can't find the problem. I've tried various wall-warts and power supplies to make sure that the voltage to the Arduino is fine.

    Has anyone else run into this? Where the Arduino/WiFly works fine from USB, but not from external power?

  • joh / about 14 years ago / 2

    Please update the link to the Experimental WiFly Arduino Library to the latest alpha 2 release. The currently linked library is the old version won't work with the latest revision of the shield.

    • joh / about 14 years ago / 1

      Or maybe also to the github repository.

      • Nathalie / about 13 years ago / 1

        Does anyone succeeded in modifying the library for use with the Maple?

        • Moggie100 / about 13 years ago / 1

          Alas not - despite the claims on the LeafLabs site.

          I've been trying to do this for a while, have you had any luck?

          • Nathalie / about 13 years ago * / 1

            (sorry for the formatting, don't know how to post properly on this forum) Yep, i finally sorted it out ... Note that the following is for the SPI1 port, but can be easily modified to match the SPI2 or SPI3 port if available ...

            • In "_spi.h", include the "stdint.h" and remove the "pins_arduino.h"

            • In "_spi.c", include headers "_Spi.h", "libmaple.h", "spi.h", "wirish.h"

            • In "_spi.c", declare the pins as follow: void SpiDevice::_initPins() { pinMode(BOARD_SPI1_MOSI_PIN, OUTPUT_AF_PP); pinMode(BOARD_SPI1_MISO_PIN, INPUT); pinMode(BOARD_SPI1_SCK_PIN, OUTPUT_AF_PP); pinMode(_selectPin, OUTPUT);
              deselect(); }
            • You have to create the "OUTPUT_AF_PP" case in "wirish_digital.cpp" and "io.h" like this: case OUTPUT_AF_PP: outputMode = GPIO_AF_OUTPUT_PP; pwm = false; break;
            • In "_spi.c", to initialize (based on spi_init and spi_reconfigure taken from spi.c): void SpiDevice::_initSpi() { rcc_clk_enable(SPI1->clk_id); rcc_reset_dev(SPI1->clk_id); //Disable spi_irq_disable(SPI1, SPI_INTERRUPTS_ALL); spi_peripheral_disable(SPI1); //Mode hardware (to manually drive the NSS pin with the select/deselect functions) //SC16IS750 supports 4 Mbit/s maximum SPI clock speed means this can theorically handle the SPI_BAUD_PCLK_DIV_32 (2.25 MHz) divider ... //speed = SPI_BAUD_PCLK_DIV_64 = 1.125 MHz //speed = SPI_BAUD_PCLK_DIV_32 = 2.25 MHz //speed = SPI_BAUD_PCLK_DIV_16 = 4.5 MHz SPI1->regs->CR1 = SPI_CR1_SPE | SPI_BAUD_PCLK_DIV_32 | SPI_FRAME_MSB | SPI_DFF_8_BIT | SPI_CR1_MSTR | SPI_MODE_0; SPI1->regs->CR2 = SPI_CR2_SSOE; //enable spi_peripheral_enable(SPI1); //clear registers by reading them int clr = 0; clr = SPI1->regs->SR; clr = SPI1->regs->DR; clr = SPI1->regs->CR1; clr = SPI1->regs->CR2; //flush select(); while((SPI1->regs->SR & SPI_SR_BSY) == SPI_SR_BSY); deselect(); }
            • In "_spi.c", the transfer function became: byte SpiDevice::transfer(volatile byte data) { // Start the transmission SPI1->regs->DR = data; // Wait for the end of the transmission while((SPI1->regs->SR & SPI_SR_TXE) != SPI_SR_TXE); // Wait for the end of the reception while((SPI1->regs->SR & SPI_SR_RXNE) != SPI_SR_RXNE); // Return the received byte return (SPI1->regs->DR); }
            • i also had to rename the "ring_buffer" variable in parsedstream because it conflict with a maple variable.
            • if debugging is activated (i.e ERROR_LEVEL > 0 in debug.h), think about replacing "serial.print" by "SerialUSB.print")

  • JamesWinster / about 14 years ago / 2

    Can it use as sniffer? Can it recive all the packets in the network?

  • bdodds / about 14 years ago / 2

    Is it possible to use this with an SD card shield? I'm getting the impression they use mostly the same pins... Is there some other solution where I can add an SD card for storage and WiFi to the same Arduino?

    • Yes, it's possible to use this shield with the MicroSD shield. I know because I've done it. :)
      The pins the two shields can and do share are used for SPI communication but they still have separate "chip select" pins which means the two shields can co-exist.

    • Please contact techsupport@sparkfun.com, they can help you with technical questions.

  • Member #655523 / about 10 years ago / 1

    I'm having a lot of trouble setting this up. When following the hookup instructions I get to the CMD prompt in the SpiUART Terminal. When I try to scan or join I get the following response:

    wifly-GSX Ver 4.00.1, Apr 19 2013 11:48:28 on RN-131MAC Addr=00:06:66:31:d9:90READY

    I tried entering my wlan auth, wlan phrase through he terminal but when I try to join through the terminal I get the same response.

    Any ideas?

  • Member #655523 / about 10 years ago / 1

    I cant get this thing to work. When going through the hook-up guide, I get to the CMD prompt in the SpiUART Terminal. When I scan for net works I got the following response:

    wifly-GSX Ver 4.00.1, Apr 19 2013 11:48:28 on RN-131 MAC Addr=00:06:66:34:5c:18 READY I try to set the wlan auth and wlan phrase and get the appropriate response (AOK) but when I try to join SSID I get the same response:

    wifly-GSX Ver 4.00.1, Apr 19 2013 11:48:28 on RN-131 MAC Addr=00:06:66:34:5c:18 READY

    Any ideas?

  • Member #45641 / about 10 years ago / 1

    Now that I've bought one of these, I see a lot of the comments are quite old and there isn't much activity in the development area. It's not awful so far (I pinged google!) but is there a real advantage of this product over the much cheaper alternatives? I have a sinking feeling that development is sorta dead on this product, and other cheaper and more popular products are getting the love and attention these days. I'm worried about getting a few basic features implemented and then hitting a brick wall or two.

  • ptorelli / about 10 years ago / 1

    Is this more reliable than the CC3000 shield? With the CC3000 I have to run a timeout loop and do a hard reboot with an NFET about every 6-8 hours of continuous operation as it drops the connection and goes belly-up. I'd like a wireless module that can stay connect to the access point for more than a few hours without having to be power cycled... like maybe a month or two?

  • jtreacy / about 10 years ago / 1

    So far, I'm not impressed. Firmware version 4.00.1. Running the latest library from github. For any but the most simple examples, this will not hold a connection long enough to respond to a client. The LED example in the tutorial disconnects before it can finish parsing a single POST. The very simple example, WiFlyWebserver works.

    • jtreacy / about 10 years ago / 1

      I should add, as reported in some of the other posts, when it locks up, the green led goes solid. Any clues?

  • Member #183601 / about 10 years ago / 1

    How do i wake the wifly shield with my arduino uno? i have been looking for examples so far i can only find them the other way around with the uno being woke by the shield. all help appreciated.

  • Member #549897 / about 11 years ago / 1

    Could anyone provide a circuit diagram of connecting an Arduino Uno, Arduino Motorshield and the Sparkfun WiFly Shield?

  • jjinno / about 11 years ago / 1

    What version of the firmware does this ship with nowadays?

  • Member #535453 / about 11 years ago / 1

    Hi, can I attach this module to a Arduino Pro Mini?

  • Member #521582 / about 11 years ago / 1

    welcome everyone how can connect wifly RN-131C to android via arduino UNO because my android device can't find wifly network signal to make connect and I tried to connect many devices to wifly but i can't ? Is wifly RN-131C can made connect to android device or not ? please help

  • Member #490820 / about 11 years ago / 1

    To anyone wondering about the voltage regulator on the board, I inquired with SparkFun and received the following information:

    The shield uses a MIC5205 which can handle up to 150mA with an operating range up to 16V. http://www.micrel.com/_PDF/mic5205.pdf

  • wsanders / about 11 years ago / 1

    I am using the RN-171 on the Seeed Wifly shield but this device looks very similar. I have not used AdHoc mode - the easiest way (on the RN-171, but this one looks identical) is to set up the unit via the UART to associate with your access point and get an IP address via DHCP, then just telnet to port 2000 on the module. When not in command mode, the device will just stream serial IO back and forth between a client TCP connection (like telnet, but any TCPIP client will work) and the UART. You don't need a special library, just Serial or SoftwareSerial.

    Since the device has a full-TCPIP stack, you can do things like read the module's time, which can be set via NTP, and use it accurately sync your Arduino to network time. The RN-171 also broadcasts a UDP packet periodically that has the time, RSSI, GPIO/sensor pin status, etc, you can read this from any computer on your network.

    So it's pricey but has a lot of capabilities. For cheap peer to peer communications, I'd spec a 433MHz or similar module and user VirtualWire instead, or Xbee, etc.

  • Camac / about 11 years ago / 1

    OK this thing is making me crazy. It doesn't seem to matter what library I use the end result is the same. WiFly gets an address, that I can ping, but no response from the web server in a browser. Green light goes from flashing to steady. I read this problem in earlier versions and the recommended fix is in server.cpp but this happens every time even with the most recent library that I can find. The Ethernet sketch works fine but not the WiFly sketch.

    Some details; Using Arduino 1.5.2, Uno R3, WiFly shield Rev3, WiFly_Shield_Master library from GitHub (modified 20 days ago) and trying to run the Webserver example. I have tried five different libraries and modified the Ethernet sketch to get the same result. HELP!

  • Member #459330 / about 11 years ago / 1

    I bought this shield and connected it to my Arduino R3. I tried almost all the libraries. However, the SPIuart cannot not work correctly . Even I enter the command mode, and run the "scan" the output is mess. Then I soldered two wires to connect the UART port of RN-131C to the digital pin 2 and 3 of Arduino and use the softwareSerial to talk to the shield. The output is good. I am wondering whether anybody else have ever got this kind of problem. If so, would you please tell me the solution? I really want to use the library for the shield, or I have to struggle with the SoftwareSerial.

    • Member #459330 / about 11 years ago / 1

      Anybody here?

      • Sorry about that delay. Please contact techsupport@ with your questions. They will be able to assist you better than we can in the comments.

  • Member #63087 / about 11 years ago / 1

    can someone explain why the update doesn't work for me? I am connecting RN171 to my router (BTW how to be sure it is connected?) When doing all the FTP UPDATE stuff I get at the end 2.32> FTP connecting to 0.0.0.0 FTP timeout=2 IF=UP DHCP=ON IP=169.254.187.231:2000 NM=255.255.0.0 GW=0.0.0.0 Listen on 2000

    And it doesn't seems to update anything, tried reboot, factory R nothing works? Why? Thanks, Roee

  • Member #458302 / about 11 years ago / 1

    is this compatible with Arduino UNO/Duemilanove?

  • Member #443524 / about 11 years ago / 1

    I am trying to use the WiFly shield and the TLC5940 shield. The issue is that the LEDs that are connected to the the TLC5940 channels turn on with the LEDs of the WiFly blink. Any help is appreciated.

  • Ed Sammy / about 12 years ago * / 1

    DELETE

  • Member #262140 / about 12 years ago / 1

    The link to Experimental WiFly Library (Arduino 1.0) does not work. Anyone know where I can download the most up to date library from?

    The ones I get are for older versions and keep giving byte errors.

  • Member #365662 / about 12 years ago / 1

    Is this compatible with Arduino DUE in terms of voltage levels (SPI)??

    • vga / about 12 years ago / 1

      I tested this shield with the Due and it worked fine. What you will need to do is to make a few fixes here and there in the library code as it won't work as is in the Due.

      • mattmoss / about 12 years ago / 1

        Do you have any additional information you can provide? I'm trying to use this WiFly shield (with RN-131C) with the Due (R3). I'm still a newb, but as far as I can tell, three of the SPI pins have moved to where ICSP pins were on the Uno. That is, the WiFly is expecting SPI on pins 10-13, and can still use 10 as CS, but MOSI, MISO and SCLK have moved. I assumed this means I need to jump some wires over there (and solder them directly, or at least get some additional connectors to be nicer), but can the SPI be reconfigured in the WiFly library to use pins 10-13 again? Or is it something else?

  • vga / about 12 years ago / 1

    Is this shield compatible with the Arduino Due? Thanks.

  • Member #191562 / about 12 years ago / 1

    Anyone know what regulator is on the board, or at least its input voltage range. I'd like to stack this with the CAN shield and power it off the car's 12-14V. I powered it with 15V on my bench, and it got very warm in just a moment, so we can pretty much rule out it being powered off the vehicle battery. I guess I could pop the regulator off and run 3.3V from the arduino due's regulator, which is supposed to be happy up to 12V (and probably OK higher). It did not get warm with 15V input (at least not appreciably).

  • Member #390841 / about 12 years ago / 1

    For anyone thinking of buying this I would suggest not to. Very temperamental, pretty impossible to get working, generally just a pain in the arse.

  • RalfieRoo / about 12 years ago / 1

    I have a very detailed step-by-step tutorial for creating a remote wifi sensor with this board here: http://www.oneassetplace.com/pages/BuildWifiSensorArduino I hope it helps someone!

  • asfarley / about 12 years ago / 1

    Does anybody know of a currently verified working WebClient example + IDE configuration? I'm trying to use the WiFly shield with an Uno R3. I've tried Arduino 1.003, 1.0 and 0023. It hangs at WiFly.begin();

    This is using WPA2.

  • Member #86519 / about 12 years ago / 1

    Does any one know why the WiFly would halt on "client.println("? I tried to tweet via wifi and it will establish a connection to my network, it will connect to the client and then halt on "client.println". So I tried the example provided by the WiFly Library (Arduino 1.0), "WiFly_WebClient_Faster" and found the exact same result.

    Do I need to change firmware update on the WiFly or something? I'm not sure why its doing this.

    PLEASE HELP

  • Member #407409 / about 12 years ago / 1

    Is this compatible with the arduino romeo? If so, is it just a case of mounting it right on top or is there additional things to consider like jumper pins or anything. I cant seem to get mine to work. I assumed that i would get one of the power led s to light as soon as i plugged it in but nothing is lighting. I also cannot communicate with the device via teraterm. I borrowed this device off a friend so it could possibly have malfunctioned.

  • Alfredomova / about 12 years ago / 1

    Why I can not have white space in the SSID nor in the password? :( does anybody have a work around for this?

  • Member #251172 / about 12 years ago / 1

    iArd connect arduino to iPhone via ethernet, WiFi and WiFly shield! Available on app store! Visit http://nkcorporation.altervista.org

  • liger / about 12 years ago / 1

    So is this 20 dollars price drop permanent or what?

    • M-Short / about 12 years ago / 1

      Yes, we don't do temporary sales, but sometimes we do have to adjust our prices to stay competitive.

  • denbo68 / about 12 years ago / 1

    Just a comment... if the internal function reboot() which is called from WiFly.begin() fails the library authors decided to just loop infinitely with a while (1);

    Might I suggest returning an error condition to the user instead?

  • Member #340821 / about 12 years ago / 1

    Hello! I would like to use AC adapter with Arduino Uno + Wifly Shield. When I connect AC adapter to Arduino Uno, Vin gives 8V output. Wifly shield requires 3.3V. Does that shield regulate voltage to 3.3V? That's what is in description, but I want to be 100% sure. Thanks...

  • Member #357193 / about 12 years ago / 1

    is this comptible with Microchip PIC18F4550??? sorry to ask but I’m new to electronics ;P

    • Member #310550 / about 12 years ago / 1

      http://www.microchip.com/forums/m534585.aspx

      hope this answers.. the concept is the same if u use arduino or other microcontroller using SPI... wikipedia spi and i2c to get basic info. and look at library and try to figure out the way from there

  • rrod182 / about 12 years ago / 1

    Anyone still using this board. I am noticing weird character corruption coming off uart. Sometimes an 'á' will show up randomly, or the uppercase version. anyone else seeing this?

    • Member #310550 / about 12 years ago / 1

      nah it works fine. update firmware and try. likewise also do hardware reset

  • Member #341533 / about 12 years ago / 1

    What does it mean when the PIO4 led is solid green? It seems to be happening somewhat randomly (during activity) and renders the unit unresponsive until rebooting. Something I can code in to prevent it?

    • becuz / about 11 years ago / 1

      Hi, I'm experiencing the same behavior. Did you figure out the solution?

  • Naksu112 / about 12 years ago * / 1

    Arduino ide 1.0.1 terminal tool which works for my uno r3, just because I was unable to find one easily.

  • sudopeople / about 12 years ago / 1

    Does Sparkfun really only sell a $90 WiFi shield? Honestly, there should be a sub $20 option available. For crying out loud, cellular shields are cheaper than this. I don't even.

    • M-Short / about 12 years ago / 2

      Find us a sub $5 Wifi module and we'll consider it. Don't forget, we still have to pay our engineers to design the board, our production guys to build it, our shippers to pack it, not to mention the actual board and all the other components. Wifi modules unfortunately are not cheap! But cheer up, we did lower the price from $90 to $70.

      • sudopeople / about 12 years ago / 1

        I must not understand what's involved. I see USB dongles with WiFi for like $5 retail, pocket routers for ~$15 on eBay...I take it those modules are wildly different?

        • MikeGrusin / about 12 years ago * / 2

          Those computer peripherals are $5 because they're not a whole lot more than radios; the complex network processing is handled in the operating system of the host computer. The WiFi devices we carry are meant to connect to small processors with limited resources; the modules handle all the layers of network processing internally, and present only the final data via simple serial interface to the microcontroller. That's a lot of hardware and firmware, and because the larger market is for those $5 modules that do require a full computer, we don't see quite the economies of scale that those parts enjoy.

  • Lokefar / about 13 years ago / 1

    I have a problem. It seems my code/wifly shield simply stops reacting. It sends to a Google Spreadsheet but after a few sends it totally freezes and no more sends are made.

    The code can be seen here: http://arduino.cc/forum/index.php/topic,108646.0.html

    Any ideas?

  • Member #327627 / about 13 years ago / 1

    Is that card is compatible with all Arduino cards including the Arduino Duemilanove? Arduino's UART means that? Sorry i'm a french novice ;)

  • Member #311130 / about 13 years ago / 1

    how can i use it with arduino Uno and is there any changes in wifly library ??? thaaaanks in advance

  • Member #270412 / about 13 years ago / 1

    What is the host name of this devie? I thought its WiFly-GSX but when I try pinging using its name i get this error below.

    C:\Users\User>ping WiFly-GSX Ping request could not find host WiFly-GSX. Please check the name and try again.

    I found a way of getting its host name but am not getting any result. This is shown below.

    C:\Users\User>tracert 172.16.96.186

    Tracing route to 172.16.96.186 over a maximum of 30 hops

    1 2 ms 2 ms 1 ms 172.16.96.186

    Trace complete.

    Please help!!!...

  • Member #308615 / about 13 years ago / 1

    this tutorial is for beginners to the wifly shield , it have a complete guide and easy http://mgisolutions.blogspot.com/2012/05/arduino-wifly-shield-tutorial.html

  • I've been looking for a WiShield replacement since I can't seem to find them online anymore. It took me a long time to figure the WiShield 2.0 out... how similar is this to the WiShield 2.0? My code if you need it can be found here: http://goo.gl/yHuLp

  • Member #300480 / about 13 years ago / 1

    Hey all,

    Concerning UDP communication using the Wifly shield: I just finished putting together the first phase of a project I've been working on (Arduino Wifly Mini, controlled by G27 steering wheel with force feedback.) It relies on two-way UDP communication between Processing and the Wifly. A couple people have told me they found the write-up useful, so if you're not afraid of beastly raw code... here's the link:

    http://www.blairkelly.ca/2012/04/20/arduino-wifly-mini/

    Hope it helps if you need it.

    Best regards,

    BK

    • neumeka / about 13 years ago / 1

      Wow, great write up! I enjoyed your video. I'm a novice, but it was understandable.

  • insultcomicdog / about 13 years ago * / 1

    Sharing SPI (WAV Shield + MEGA +WiFly) - WiFly/WAV cable select pins

    I'm having issues using this shield w the Adafruit WAV shield which also uses SPI for the SD card reader.

    Using separate cable select pins for the WAV shield (pin 33) and WiFly (53)...I can toggle from WAV shield to WiFly shield but I can't toggle back to the WAV shield...If I initialize the WiFly shield first, I can't toggle to the WAV shield.

    #define SSWAV 33 //cable select pin for WAV shield
    #define SSWIFLY 53 //cable select pin for WIFLY shield
    

    //this enables the cable selection pin for WiFly shield void enableWiFlyShield() { digitalWrite(SSWIFLY, LOW); digitalWrite(SSWAV, HIGH); }

    //this enables the cable selection pin for WAV shield void enableWAVShield() { digitalWrite(SSWIFLY, HIGH); digitalWrite(SSWAV, LOW); }

    See my thread with specs and setup here: http://arduino.cc/forum/index.php/topic,101660.0.html

    Has anyone successfully deselected the WiFly in order to talk to another SPI device?

    • Member #155433 / about 13 years ago / 1

      I think it is best to keep the cs high (for both devices) and only drive low when you need to access the device. At least for the wifly shield, each register read or write on the uart should have a toggle of the cs.

      • insultcomicdog / about 13 years ago / 1

        This is my setup for the two shields.

        void setupWAVANDWIFLY()
        {
          pinMode(SSWAV, OUTPUT);
          pinMode(SSWIFLY, OUTPUT);
        
          digitalWrite(SSWAV, HIGH);
          digitalWrite(SSWIFLY, HIGH);
        }
        

        And I toggle them with the code above, setting the active devices cable select pin to low and non active cable select pin to high.

        Has anyone had success using this shield with multiple SPI devices?

        I wonder if this my issue is related to similar SPI issues with the ethernet shield:

        http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1248045864

        • insultcomicdog / about 13 years ago / 1

          I have a feeling this shield isn't gracefully disconnecting from the SPI bus. If anyone has successfully used this shield with another SPI device, let me know!

  • Member #155433 / about 13 years ago / 1

    This works great with my maple, would like to see pins brought out for status of association, connection, and command mode, as well as a pin to put it into command mode. Using the interrupt was difficult because you don't know much about the state of the device. I am using it at spi of 4.5Mhz and uart at 921600 with hardware flow control, that seems pretty solid. Programming the uart seemed a bit tricky because of the way you need to access some of the registers, but it is nice to have the interface so you can burst out the incoming characters.

  • aman / about 13 years ago / 1

    can anyone please provide me the complete code, library and instructions for configuring the wifly.

    • RalfieRoo / about 12 years ago / 1

      I have posted a three-part blog series here that should help: http://www.cc-logic.com/blog/posts/physical-computing-part-1-of-3-getting-wifi-working Best of luck!

  • MaxRathbone / about 13 years ago / 1

    It appears there is no provided code that will fetch the RTC Real Time Clock's time to synchronize with the system clock. I decided to write one. You can find my code at the following forum thread:

    http://forum.sparkfun.com/viewtopic.php?f=8&t=31765

    I use the wifly shield with an Uno R3 and with Arduino 1.0

  • MaxRathbone / about 13 years ago / 1

    I just got this sensor in and saw mention elsewhere that the wifly only supports one simultaneous connection?! The ethernet shield supports 4.. is it true this product only supports one connection at a time????

    • MaxRathbone / about 13 years ago / 1

      It does appear that there is a one connection limit. I'm disappointed this wasn't made more clear in the product description. I may have purchased differently had I known this in advance.

  • Astronomer / about 13 years ago / 1

    Here is my second question since my previous comment was cut short. Why doesn't the newest Wifly library, WiFly-20101217-alpha-2 compile immediately "straight out of the box"? I tried to compile Wifly_WebServer.pde but get various errors such as 'SpiUartDevice' does not name a type.

    • muldowe / about 13 years ago / 1

      I think the issue here might be that you are working off a newer version of the IDE. What version are you working on? I know 1.0 fails to compile it completely, and I revised back to 021

  • Astronomer / about 13 years ago * / 1

    I have just bought the WiFly shield and got it working (more or less) with my Arduino Uno using some of the software provided by Chris Taylor. Now I have two questions that I would be grateful for help with: 1) In the definitions of the addresses of the SC161S750 uart bridge, why are they left-shifted in the #define section e.g. #define LSR 0x05 ?

  • Member #208999 / about 13 years ago / 1

    So I just got this thing.. software is horrid.. Alpha 1, Alpha 2? OK... Stacked it on my UNO and hooked it up to win/mac serial programs but nothing I do/follow can get this thing into CMD mode. I've spent HOURS trying to do this.. So very disappointed!

    • What terminal program are you using? I use CoolTerm and it works. The Arduino Serial Monitor does not work. Try the WiFly Autoconnect Example first and see if that works - it starts in CMD mode.

    • NorthStar / about 13 years ago / 1

      Dear all I have some problem with this shield. I made a server based on example from the wifly library and it works fine, but if one press refresh several times, then it stop responding. What can help - it is not good that any user can hang this application.

  • samjones3 / about 13 years ago / 1

    Is there any success track record using this with netduino or fez panda?

    TIA!

  • Member #268432 / about 13 years ago / 1

    Any chance of getting this shield with the RN-131G (for the industrial temperature range)? I'm using this in an outdoor enclosure where it gets below 0C in the winter often. So far it seems to work, but the RN-131G is actually rated for it (and the same price I think). I like the convenience of the shield and already wrote code to the SPI interface...kind of reluctant to re-write to the UART and deal with soldering the other part. (See www.poolremote.com for what I'm doing with it and the Arduino...controlling hot tub and pool equipment from an iPhone or iPad)

  • tommytwoeyes / about 13 years ago / 1

    Is that the antenna connector there on the module? Which SparkFun antenna(s) are compatible with it?

    • windrago / about 13 years ago / 1

      it has the stick up antenna kind (the firmware allows to set the antenna chip or the external, I used both)

  • windrago / about 13 years ago * / 1

    Hello there. I just got the Wi-Fly (RN-XV) and it is driving me bonkers!

    I try open and mixed security on the AP and no matter what I keep getting AUTH-ERR when I try to join.

    AP Side: - no mac address enforcing, WPAv1, b/g, channel 8 WiFLY side: firmware 2.30 SSID=TEST Chan=8 ExtAnt=0 Join=1 Auth=MIXED Mask=0x1fff Rate=3, 11 Mb Linkmon=5 Passphrase=LetMeIn1 TxPower=0

    It's hooked on a XBEE Explorer Regulated and connected via USB to the PC/Mac.

    From Putty I join and I get this: Auto-Assoc TEST chan=8 mode=WPA1 SCAN OK Joining TEST now.. Disconn from TEST,AUTH-ERR

    Any help is a great Christmas gift at this point!

    Thanks - me

  • contractorwolf / about 13 years ago / 1

    are the tx and rx pins not accessable on the breakout board? is this because they are 3.3v and not 5v? it seems for me a lot cleaner to use simple serial instead of dealing with SPI.

    i would have assumed that they would be connected correctly for wiring right into the D0 and D1 pins for RX and TX on the arduino. to me that would make for super simple sending of commands and receiving data, is that not how its setup?

    I am connecting it to my fez domino. SPI seems to work as expected. The code for a serial port is much cleaner. however the diagram makes it look like they are only connected to the bridge, is that possible?

  • Finally something i can buy that is not out of stock!

    • Member #118937 / about 13 years ago / 1

      The WiFly library is not compatible with Arduino 1.0.

      There are some update instructions at http://blog.makezine.com/archive/2011/12/arduino-1-0-is-out-heres-what-you-need-to-know.html

      It does, however, look like quite a bit of work....

  • Member #100410 / about 13 years ago * / 1

    Just a quick update on the wireless water sensor project linked to above; I've solved what was (for me) an issue with reliability of the comms.

    Implementing a combination of the Arduino watchdog and using a small relay to control power to the shield has made it rock solid and very tolerant of any network or remote server issues.

    I've updated my original blog post with more detail and the code.

    http://lifeboat.co.nz/the-finished-wireless-water-sensor/

    Happy making!

  • Member #229896 / about 13 years ago * / 1

    i erased my comment. love the shield...now if only there was an easy way to convert sketches written for the ethernet shield...

  • cottsay / about 13 years ago / 1

    Can someone confirm that this shield is NOT compatible with 5V Arduinos? I have trouble believing this. Even a 5V Arduino has a 3.3V header...

    • fornax / about 13 years ago / 1

      I've got one of these plugged into a standard Arduino Uno (DIP version), and it's working just fine with no apparent ill effects. As near as I can tell from the board, it pulls power from the Vin pin and runs it through a regulator to get its 3.3V.

  • b0153n / about 13 years ago / 1

    The RN-131C Datasheet, page 5, says pin 22 (DMA-TX) should have a 100K pull down if ultra low sleep power is required. Page 9, item 8, clearly spells out that pin 22 must be pulled low with 100K to achieve 4uA in sleep mode.
    There appears to be no way to do this as there is no access to the pin and the pcb does not track it out to a blind solder pad or anything.
    In my battery powered device this low power mode is essential.
    I looked at the Eagle board file, and with considerable risk I could try to route/mill/scratch a hole through the pcb to get to pin 22... The chance of damaging a $90 device is pretty high!
    Have I missed something...???
    Sparkfun - please comment...

    • Member #100410 / about 13 years ago / 1

      I'm using mine with a small solar-charged battery and have gone with a zero-power mode for the WiFly shield. I cut the VIN pin and control power to the shield via a small relay, controlled by a digital pin on the Arduino.

      I just power up the WiFly when transmitting and power it off afterwards. Hopefully that option might work for your application.

  • trandi / about 13 years ago / 1

    Here's an example use of the same module used by this shield ( I'm actually using the the RN-134 board, which is simply Roving Networks' board around the very same RN-131 module) to connect a vacuum tube to the Internet and display tweets:
    https://trandi.wordpress.com/2011/09/26/vfd-clock-connects-to-the-internet/
    Dan

  • c47334 / about 13 years ago / 1

    A few words of warning: The WiFly Shield is a 3V device. MANY Arduino boards are 5V devices. 5V Arduino boards are even listed as 'related products' for the 3V WiFly Shield. DO NOT PLUG A 3V WiFly SHIELD INTO A 5V MAIN BOARD UNLESS YOU HATE MONEY.
    Last year I bought an "Arduino Main Board" and an "Arduino WiFly Shield." I foolishly plugged them together and started programming — because of course they're designed to work together, right? There goes $90 down the toilet! The 5V main board signals seem to have killed the NXP SC16IS750 SPI-UART bridge on the 3V WiFly Shield: the bridge does not respond to SPI commands.
    I should have double checked the data sheets before plugging these 'related products' together. The boards should have been designed so that 5V and 3V devices could not be connected accidentally. The website should have overtly warned that the WiFly Shield is not compatible with most Arduino boards. Shoulda, shoulda, shoulda... Buyer beware!

    • I don't think you are right! The datasheet looks good and I have my shield plugged into a standard (5V) Arduino right now and it works just fine...

    • Ozz / about 13 years ago / 1

      well, according to the SC161S750 datasheet, Vih = 5.5V max, so it should be able to support arduino's 5V logic. Hopefuly thats not the reason it stops working. :)

  • cloverstreet / about 13 years ago / 1

    All I want to do is send a udp stream which consists of 8 numbers. Ideally at around 30 times a second. Is that possible with this or must it just serve pages? Sorry if this is a dumb question, I'm not a network guy.

  • Member #41392 / about 13 years ago * / 1

    My WiFly is working great except for one thing: As long as my Arduino (UNO) is powered via USB, the WiFly powers up fine. However, if I use a DC power adapter, only the UNO powers up.
    I've checked the power pins at the WiFly under both situations with a voltmeter, and they read as follows:
    Powered vía USB:
    +5: 4.98
    +3.3: 3.34
    vin: 4.25
    Powered via 9v 1000ma DC power supply:
    +5: 4.3
    +3.3: 3.14
    vin: 8
    I've also tried this with two different Arduinos with the same result. Is this normal? I'd really like to be able to power my device with something other than a USB cable.
    Otherwise, everything is working great.
    Update: Oddly enough, I can also run the whole thing off of a 9v battery connected to the vin and gnd pins of the WiFly, so I suppose to can add a power jack straight to those. Seems odd that it doesn't work through the built-in jack of the Arduino, however.

  • david2009 / about 13 years ago / 1

    Without the pinout hole on the breakout board (as provided on the WRL-10050) what's the best way to connect the 3.3Vdc to the PIO9 to start up the Wifly in ad hoc mode?

  • JayCollett2 / about 13 years ago / 1

    Guys, since I'm having issues with the latest firmware and the WiFly library alpha 2, I forked genetikayos's alpha 2 library and added new functions and will have support for firmware versions 2.26 and above.
    https://github.com/jaycollett/WiFly-Shield

  • JohnP / about 13 years ago / 1

    Many SPI based shields hardwire the /CS pin to Arduino D10, making it difficult to use different shields or even more than one in a stack. Could you make it easier to rewire /CS (and /INT, D7) to different pins? Maybe not a full up set of jumpers, but cutable/jumperable pads would be appreciated...

  • Pegasus / about 13 years ago * / 1

    I'm using this with a new Arduino UNO and can get into command mode with $$$ and enter commands and receive text back from the WiFly.
    When I attempt to associate with my WPA-PSK protected NetGear WNDR3700v2 router I get AUTH-ERR even though every other device on my network can connect with the router just fine.
    (and yes, I did set the SSID and PassPhrase)
    It was mentioned elsewhere that the shield may need to be moved away from the Arduino because of a "bad ground on the Sparkfun Shields" before being able to connect. I'm not sure how much there is to that but can anyone else here offer up any suggestions on why I'm not able to connect?
    Update 7/17/2011:
    MY BAD! Turns out I had the wrong WLAN AUTH method set. Unit now connects extremely fast to the WNDR3700 (N600) router using AES encryption. Powered it up with a battery and walked two blocks down the street and still didn't lose the connection. Awesome!

  • Member #157077 / about 14 years ago / 1

    The readme.txt file in the WiFly library says:
    If the network you want to connect to has no passphrase you can use this form:
    if (!WiFly.join("ssid")) {
    // Handle the failure

    }

    After a number of hours of banging on this, I seem to have determined that it should say "you MUST use this form". I was always unable to join an open network when making the WiFLy.join call with 2 args; I have been able to connect when I call it with only 1 arg (the ssid).
    In addition, once I made a 2-arg call even once, it would never join again (even with a 1-arg call) until I had issued a "factory RESET" command.
    I changed the code in the sample WiFly_WebClient program FROM:
    WiFly.begin();
    if (!WiFly.join(ssid, passphrase)) {
    Serial.print("Association failed.");
    while (1) {
    // Hang on failure.
    }
    TO:
    int joined;
    WiFly.begin();
    // apparently, it's necessary to omit the second (passphrase) argument, if joining an open network!
    if (strcmp(passphrase, "") == 0) {
    joined = WiFly.join(ssid);
    }
    else {
    joined = WiFly.join(ssid, passphrase);
    }
    if (!joined) {
    Serial.print("Association failed.");
    while (1) {
    // Hang on failure.
    }
    This has not been extensively tested yet, but appears to solve the problem.

  • JayCollett2 / about 14 years ago * / 1

    Ok, so it appears the digital pin 7 is just an external interrupt on the SC16IS750. I ended up having to cut the trace as my other shield uses digital pin 7. I would make one suggestions for the next rev of this board.
    1. Make the D7 pin a solder jumper so folks can choose to use it or not.

    • Member #277037 / about 13 years ago / 1

      I have a similar problem. Could you tell me how did you cut that trace? Thanks!

  • JayCollett2 / about 14 years ago / 1

    What is the digital pin 7 used for? It wasn't mentioned as being used by this shield in the description.

  • Member #221763 / about 14 years ago / 1

    I keep getting this "locking up" message as well. Feel like I've tried everything and can't get this shield to work. Anybody have any sage advice?

  • Member #223218 / about 14 years ago / 1

    Could I create AP on Arduino using this WiFi shield? I want to have options to connect to internet directly or to host access point and connect to Arduino with smartphone/laptop.

  • peapodamus / about 14 years ago / 1

    Any idea as to the lead time of this?

  • Kurt4 / about 14 years ago / 1

    this shield does not break out the hardware reset lines as stated in the description!

  • Demus00 / about 14 years ago / 1

    I hope there will be some more (and easier) project tutorials.
    I'm trying to make my iPhone talk directly to my arduino with WiFly shield using an OSC handler without using processing on my PC (goal: light up 3 LED's with 3 buttons and 3 faders).
    Anyone succeeded in creating a similar project?

  • Shifted / about 14 years ago / 1

    Can I suggest for the next revision of this board that you add a row of solder pads on the inside of the existing through holes so we can solder wires from there to the proto area? I'm using this on a mobile-ish device and I don't want loose wires in prototype headers to be yanked out while walking around.

  • dafoink / about 14 years ago / 1

    I am trying to get this to work on a Fez Panda. The lights dont light up when I connect it to the panda. They are fine with an arduino. Is there some type of power issue that I might need ot deal with?

  • dafoink / about 14 years ago / 1

    anyone use this on the fez panda?

  • Member #206583 / about 14 years ago / 1

    New to the Arduino and Netduino, just bought the WiFly shield but it comes with no pins. I'm sure this is a real newbie question, but what's the normal way to solve this? I'm guessing put "pin blocks" (I think also referred to as extenders) through the top of the WiFly shield, and solder the bottoms?? Really don't want to break this thing before I've even tried it!
    Can anyone point me to connecting up the WiFly with a netduino?

  • Boichu87 / about 14 years ago / 1

    How can i use this wifly shield with
    Arduino Mega 2560? Is it possible to use this with mega 2560?
    I want to adquire a mega 2560 (if there´s stock soon xD) with this shield.

  • WKUadam / about 14 years ago / 1

    I was wondering why do you convert the uart from the wifly to SPI when the wifly has SPI built into it?

  • AdamW / about 14 years ago / 1

    Contacted support, but in the meantime...From the different placement of the UART pins on the MEGA 2560 from the Demuilenove, will I be prevented from using this shield? Thanks

  • qoda / about 13 years ago * / 0

    I've been battling the entire weekend with the WiFly shield (Connected to a Arduino UNO). I know think I've exhausted all possible steps in debugging this issue. I have also tried this with all versions and some forks of the code and version 0022 and version 1.0 of the IDE.

    After uploading and running SpiUartTerminal.pde or the HardwareFactoryReset.pde, the serial monitor just hangs after outputting "Waiting for input:" and doesn't allow me to enter the command line application ($$$). I've tried unix screen, coolterm and the standard IDE serial monitor. I've also tested the pins to ensure everything is connected correctly (I finally soldered them to the header pins) and I'm sure it is.

    I would really appreciate some help if possible. I'm now suspecting that it is in fact a hardware issue.

    • qoda / about 13 years ago / 1

      It worked again this morning for about 2 minutes. Seems it only responds once its been left for a while (overnight)... Could it be overheating?

      • Member #270412 / about 13 years ago / 1

        heey qoda...i had the same problem where i cannot pass any commands to the wifly through teraterm terminal...i solved it by sending factory RESET command on the same terminal even though you cannot see it being displayed but the rx/tx led on wifly blinks implying that its receiving the command....then i reuploaded the wifly transparent terminal sketch...opened the terminal and there it was displaying the commands... let me know if you get to be able to ping it or telnet coz am stuck there...thanks!!!....

        • qoda / about 13 years ago * / 1

          Hi, I tried factory hardware and software resets but wasn't able to get anywhere, I sent mine shield back to the distributor eventually and they have sent me a new one that they've tested themselves. Looks like mine over-heated and was damaged from the start.

          • Member #270412 / about 13 years ago / 1

            hope the new one works just fine...but are u able to telnet and ping the wifly from PC??...it seems there is something stopping mine form being pinged or "telneted" which haven't figured out yet...

            • qoda / about 13 years ago / 1

              Thanks, yes it worked immediately with the following code: https://github.com/qoda/Arduino/tree/master/WiFiSwitch. Can you ping the IP and do you see it as a connected device on your router? One other thing I noticed that now that I'm connected only the green led flashes when I'm connected, is this the case on your side?

              • Member #270412 / about 13 years ago / 1

                Another thing happened after i did the factory reset on the wifly...it keeps on going on and off after a while...everything completely goes off no LED blinking nothing...strange isnt it...

              • Member #270412 / about 13 years ago / 1

                I will check ua code to see if it will work with mine...i can ping the router from the pc but not the wifly... i tried pinging from the wifly but no response...i also checked from the router's online configuration page and the wifly is listed as one of the wireless clients....its the same on ma side if u mean the P104 LED but how is it blinking on ua side??...mine is blinking slowly meaning ip is ok...

Customer Reviews

No reviews yet.