Femtoduino USB + WiFi using the Adafruit CC3000 WiFi board

Femtoduino and Adafruit CC3000 WiFi

Introduction

The folks at Adafruit provide a wonderful, Arduino compatible WiFi board that enables your project to access the internet over your local WiFi.

The smallest arduino clone, femtoduino, is capable of using this nifty WiFi board to get you online, fast. Let's try it out.

Parts list

You will likely need the following parts before starting:

  • One (1) Femtoduino with USB, since we want to free up the VCC and GND pins while powering everything from the USB connection. You can still do this with an original Femtoduino, but will need to power everthing off of a breadboard instead.
  • One (1) Adafruit CC300 WiFi board
  • Breadboard
  • Jumper wires
  • Wireless Network credentials

Steps

Follow these steps to get the GeoLocation example sketch working

  1. Download the Adafruit_CC3000_Library, add it to your arduino 'library' folder as per the instructions there.
  2. Connect D13 (SCK) to the WiFi board pin CLK
  3. Connect D12 (MISO) to the WiFi board pin MISO
  4. Connect D11 (MOSI) to the WiFi board pin MOSI
  5. Connect D10 to the WiFi board pin CS
  6. Connect D5 to the WiFi board pin VBEN
  7. Connect D3 to the WiFi board pin IRQ
  8. Connect VCC to the WiFi board pin VIN
  9. Connect GND to the WiFi board pin GND
  10. Start up your Arduino IDE, and open the Adafruit_CC300_Library/examples/GeoLocation/Geolocation.ino sketch.
  11. Update the sketch constants WLAN_SSID and WLAN_PASS to your wireless network SSID, and password.
  12. Upload the sketch! Make sure you've selected your board in the 'Tools > Port' menu.
  13. Open the Serial Monitor ('Tools > Serial Monitor'), set the baud rate to 115200. If nothing appears in the Serial monitor, try re-connecting your USB connection, selecting the Serial port, then opening the Serial Monitor again.

Done!

Your Serial Monitor should display connection information, and finally, geo-location data.




© 2013 Femtoduino.com LLC. All rights reserved.

Femtoduino.com
3265 17th Street, STE 304, Studio 6
San Francisco, CA 94110 United States of America
PayPal Acceptance Mark