Photo 186794956 © Arnabsaha285 | Dreamstime.com
666a00ca6a967711a9983464 Dreamstime L 186794956

WiFi For Arduino

Sept. 4, 2012
Technology Editor Bill Wong takes a look at one way to add WiFi support to Arduino boards with Digilent's WiFi Shield.

The Arduino form factor was based on Atmel's 8-bit AVR ATmega microcontroller. It has since progressed to a range of more powerful micros including Microchip's PIC32 based on the MIPS architecture and found on Digilent's Max32 board (see PIC32 Arduino Modules). I've been using the Digilent Max32 with the Ethernet Network Shield but this tends to be a bit difficult for robotics. That is why I was happy to check out Digilent's WiFi Shield (Fig. 1).

The WiFi Shield includes Microchip MRF24WB0MA WiFi module along with a microSD socket. More on the latter later.The WiFi module supports 802.11b 1 and 2 Mbit/s data rates. The software drivers supports WEP security as well as the more advanced WPA.

This feature list is more than adequate for Arduino platforms. 802.11g or 802.11n would simply be overkill although the faster 32-bit platforms might be able to take advantage of the added bandwidth. It can securely connect to any 802.11b/g/n router or access point. It work fine with the Belkin and Linksys routers I have in the lab. Communication with the module is via SPI. It has an integrated PCB antenna with a range up to 400m.

The shield comes in a box by itself. I had to download the software from Digilent's website. These include the DNETcK and DWIFIcK network libraries, DNETcK and DWIFIcK. These are based on Microchip Applications Library software. Connecting to the network was a trivial software excercise. Mostly it is a matter of getting the device fuction arguments correct.

As noted, the WiFi Shield also has a microSD card connector. Most Arduino motherboards lack removable storage and this addition fills in the missing piece. It uses the same SPI interface with a different chip select. There are also four LEDs on the shield that can be used to provide status information. These are controlled by I/O pins.

Digilent's WiFi Shield can work with other Arduino motherboards but it may take a little work to get the software to work with another IDE. I have not tried that approach since I do not have another Arduino motherboard handy.

12675825 © Dennis Tokarzewski | Dreamstime.com
About the Author

William G. Wong | Senior Content Director - Electronic Design and Microwaves & RF

I am Editor of Electronic Design focusing on embedded, software, and systems. As Senior Content Director, I also manage Microwaves & RF and I work with a great team of editors to provide engineers, programmers, developers and technical managers with interesting and useful articles and videos on a regular basis. Check out our free newsletters to see the latest content.

You can send press releases for new products for possible coverage on the website. I am also interested in receiving contributed articles for publishing on our website. Use our template and send to me along with a signed release form. 

Check out my blog, AltEmbedded on Electronic Design, as well as his latest articles on this site that are listed below. 

You can visit my social media via these links:

I earned a Bachelor of Electrical Engineering at the Georgia Institute of Technology and a Masters in Computer Science from Rutgers University. I still do a bit of programming using everything from C and C++ to Rust and Ada/SPARK. I do a bit of PHP programming for Drupal websites. I have posted a few Drupal modules.  

I still get a hand on software and electronic hardware. Some of this can be found on our Kit Close-Up video series. You can also see me on many of our TechXchange Talk videos. I am interested in a range of projects from robotics to artificial intelligence. 

Sponsored Recommendations

Comments

To join the conversation, and become an exclusive member of Electronic Design, create an account today!