Using a Raspberry Pi to Control a WF32 with LabVIEW

Hardware components:
R8326274 01
Raspberry Pi 2 Model B
× 1
Digilent chipKIT WF32: WiFi Enabled Microntroller
× 1
Wi-Pi USB WiFI Module
× 1
Digilent interaction parts kit
× 1
Software apps and online services:
Labview home package neidctwb5w
Digilent LabVIEW Home Bundle
Linx mxuvez0wwn
Digilent LINX

Using a Raspberry Pi to Control a WF32 with LabVIEW

STORY

This tutorial takes a project from my last tutorial (Thermistor – Fan control using LabVIEW) and adds in the use of a Raspberry Pi 3 for wireless control of the WF32. This means that you can now set up the fans and servo with your WF32 in your entertainment center and then control them over WiFi. In this tutorial I go over how to set up the Raspberry Pi but if you run into any trouble please refer to the Getting Started With the Raspberry Pi 2 (LabVIEW) tutorial.

 Story Using a Raspberry Pi to Control a WF32 with LabVIEW

Step 1: Materials

 

  • Temperature sensor [TMP36] (250 mV output at 25°C)
  • Two Slide switches
  • Three 240Ω resistors
  • 100 uF electrolytic capacitor
  • Tactile button switch
  • Two PWM controlled fans(I use two different sizes in my demo)
  • Small servo motor
  • Raspberry Pi 2 (I use the Raspberry Pi 3, but the process is the same)

Everything but the fans, LabVIEW, Raspberry Pi, WiFi dongle, and WF32 is included in the LabVIEW Interaction Parts Kit.

Step 2: Connecting WF32 to WiFi

Configure the network settings: Specify the WiFi security type and passphrase.

  • Note: It is recommended that you disable network security to start and then re-enable it after you confirm the LINX connection is working.
  • SSID is the name of your network.
  • Assign the chipKIT WF32 an available IP Address. You will need to specify this IP address again later as an input to the LINXInit VI.
  • Select the Port to use, unless you have reason to use another you should select 44300.
  • You will need to specify this IP address again later as an input to the LINX Init VI.
  • Launch the LINX Firmware Wizard.
  • Choose the chipKIT WF32.
  • Go to Device Manager.
  • Click on “Ports(COM & LPT)” to find the WF32's COM port.
  • Select that COM port.
  • Click Launch Example.

A video going over these instructions can be found here.

Read More: Using a Raspberry Pi to Control a WF32 with LabVIEW

 

 


About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top