WiFire Wifi Setup

This tutorial will guide you through the steps of setting up WiFi on your chipKIT WiFire.

Hardware

Software


Firmware IDE Used
Device FamilyIDE
chipKIT Arduino IDE

Procedure


Step 1: Arduino IDE Setup
  1. Make sure the Arduino IDE is installed.
  2. Add the chipKIT boards from Digilent to the Arduino IDE using the board manager. If the Arduino IDE version is 1.6.7, it is possible to auto install the chipKIT boards via URL. This is the easiest method available!
  3. Open the Arduino IDE and go to File→Preferences. A dialog box will show up and in the “Additional Boards Manager URLS:” you can add the URL: https://github.com/chipKIT32/chipKIT-core/raw/master/package_chipkit_index.json
  4. Click OK to close the dialog box.
  5. Check out the picture below of the dialog box to make sure the fields are filled out correctly.

  1. Go to Tools→Board→Board Manager in the Arduino IDE which will open a menu with all the packages you have.
  2. Scroll down to the chipKIT section and click on it. Click the install button to install the chipKIT boards.
  3. Once the install is finished, close the window. All of the chipKIT boards are available under Tools→Boards!
  4. Close the Arduino IDE.
Step 2: Generate LINX Firmware
  1. Open LabVIEW and go to Tools→MakerHub→LINX→Generate Firmware Libraries…

  1. When the VI opens, browse to the Arduino Libraries folder usually located in <Documents>\Arduino\libraries.
  2. Click generate and the LINX libraries will be pasted into the Arduino libraries folder.

  1. Open the Arduino IDE and go to File→Examples→LINX→ChipKIT_WiFire_Wifi_Static_Configuration. This will open the WiFire static WiFi firmware.
  2. Click the Tools drop down and make sure to select the correct board and the correct COM port.

Step 3: Enter WiFi Settings into Firmware
  1. Scroll down to void setup() and find the WiFi settings pictured below.

  1. Enter the network settings. Pictured below is an example network with an SSID “The coolest network” and a password of “mypassword”. The IP address was left the same (192.168.1.128). Enter any IP address that fits the default gateway.

  1. Make sure the WiFire is connected on the correct COM port you selected and click upload. The firmware will then compile in the Arduino IDE and upload to the board.
  2. Once the firmware is uploaded, close the Arduino IDE.
Step 4: Test the Firmware
  1. Open LabVIEW and go to Help→Find Examples.
  2. Click search and search for “LINX”.
  3. On the LINX search results, find: LINX - Blink (Simple) (TCP).vi.

  1. Double click the VI to open it.
  2. Once it's open, enter your WiFi information (pictured below) and click the run button.
  3. Blink the on-board LED by clicking the boolean control!

Summary


This tutorial goes over how to set up WiFi on the chipKIT WiFire. If you have any questions please post on the LINX forums. If you've created a cool project, consider sharing your work with the community in the forums.