WiLDFiRE

WildFire-v2-e13849668125191Overview

WildFire is an Arduino compatible board based on the Atmel ATMega1284P microcontroller and a Texas Instruments CC3000 WiFi module. Also included is an SD card slot and MAC/EEPROM chip.

Configuring Wi-Fi networking with your mobile phone or PC

The WildFire comes with a preinstalled RESTDuino webserver sketch you can use to read and toggle the pins. To access it, you need to configure your network settings – easy with a phone app.

iOS: Download the “TI WiFi SmartConfig” app from the App Store. You can then run the app. Once it has executed, go to local.wildfire (That’s a Bonjour/Zeroconf address – which comes pre-installed on iPhones).

Android: The app is not in the play store for some reason, and TI wrap it up in an installer. Easiest option is to download this zip file. You can extract the apk file directly from the /bin directory, and mail it to yourself. If you pick up the mail on your smartphone  you can install it with one click. Make sure you allow installing of apps not from the play store.

PC: If you don’t have ready access to a phone, you can install a java app from Texas Instruments available for download here. This has the advantage that you can also take a look with the serial monitor.

To view the device you either need Bonjour/Zeroconf – obtained by installing iTunes – or you can access it directly via IP address. You’ll need a serial monitor connected at 115200 to see the IP configuration.

Testing out the pre-installed sketch

The Wildfire ships with a pre-installed sketch based on the RESTduino project. Once you have setup WildFire networking you can directly read and set WildFire pins from a web browser. Try the following commands from a browser:

To set a digital pin

http://WILDFIRE_IP/6/HIGH      (* note, not a good idea to use hardware allocated pins)

To read a digital pin

http://WILDFIRE_IP/5  

This returns JSON similar to
{“5″:”LOW”}

To read an analog pin

http://WILDFIRE_IP/a1
This returns JSON similar to

{“a1″:”361″}

Resources

Important Notes

Certain WildFire pins are dedicated to on-board peripherals. It’s a good idea to create an instance of a WildFire object using  the provided WildFire library, creating an instance initializes the dedicated pins to safe states. See Sample code below for an example of creating an instance of a WildFire object.

WildFire pins dedicated to on-board  functions:

  • DIG4 = SD card slot chip select [supported by SD library]
  • DIG7 = MAC/EEPROM data [supported by NanodeMAC and NanodeUNIO libraries]
  • DIG8 = CC3000 IRQ (*NEVER CONFIGURE AS OUTPUT)
  • DIG9 = CC3000 enable
  • DIG10 = CC3000 chip select [supported by our modified version of the Adafruit_CC3000_Library]
  • DIG11-13 = SPI Bus (DIG12 is ok for general use as long as neither DIG4 nor DIG10 is driven low, and/or you aren’t using the SPI bus for anything, e.g. the CC3000 or SD card)

DIG4 is allocated to the SD-card slot and DIG10 is committed to the WiFi module. They are chip select pins for the SPI bus, and both should not be set to LOW (0) at the same time to prevent contention on the MISO line (DIG12).

JP1 jumper (directly below CC3000 module) must be set to “func” (Functional), other setting, “test” is for factory testing.

Finally, be gentle with the micro USB connector. Careless treatment can result in ripping the connector off the board, severely compromising its utility. We advise holding the connector in place during insertion and removal and not forcing it.

Arduino IDE Setup

  • First figure out where your “sketchbook” directory is by launching the Arduino IDE and going to:
    • On a PC & Linux:  File => Preferences => Sketchbook Location
    • On a Mac: Arduino => Preferences
  • Download the Combined Arduino Support Package and extract it into your Sketchbook Location folder. That should be equivalent to the following:
    • In the sketchbook directory, and create a sub-directory named “hardware” if it doesn’t already exist.
    • In the sketchbook directory, also create a sub-directory called “libraries” if it doesn’t already exist.
    • Copy the contents of the of the zip file hardware folder to the sketchbook/hardware folder – the path should end up looking like …/hardware/WickedDevice/
    • Copy the contents of the zip file libraries into the sketchbook/libraries folder – you should end up with the following sub-directories under sketchbook/libraries: WildFire, Adafruit_CC3000_Library, and CC3000_MDNS.
  • Your Arduino sketchbook directory should look something like the following listing (you may have previously installed libraries and/or hardware definitions)
  • (Re-)Launch the Arduino IDE, and under the Tools => Boards menu, select WildFire v2
  • Check to make sure that the WildFire and Adafruit_CC3000_Library libraries show up under File => Examples (look carefully, it may not be alphabetically listed)
  • At this point you should be able to write sketches and program the WildFire board directly using the Arduino IDE
  • Make sure you select the correct COM port from the Tools => Serial Port menu  when you plug the board in through the micro USB connector

Arduino Directory Structure After Install

    YOUR_ARDUINO_ROOT/hardware/WickedDevice/...
    YOUR_ARDUINO_ROOT/libraries/WildFire/...
    YOUR_ARDUINO_ROOT/libraries/Adafruit_CC3000_Library/...
    YOUR_ARDUINO_ROOT/libraries/CC3000_MDNS/...

Sample Code Block

#include <WildFire.h>
WildFire wildfire;

void setup(){
    wildfire.begin();
    // Your code
}

void loop(){
    // Your code
}
Comments are closed.