loading

Pmods™ are small I/O interface boards that offer an ideal way to extend the capabilities of our FPGA/CPLD and embedded control boards. Pmods communicate with system boards using 6 or 12-pin connectors. Pmods include sensors, I/O, data acquisition & conversion, connectors, external memory, and more.

All of the Pmods that Digilent sells can be found here.

For this demo, the PmodACL (accelerometer), PmodALS (ambient light sensor), PmodCMPS (compass), PmodGYRO (gyroscope), PmodJSTK (joystick), PmodMIC3 (microphone), PmodTC1 (thermocouple), and PmodTMP3 (ambient temperature sensor) are supported.

This demo uses LabVIEW, LabVIEW MakerHub LINX, chipKIT WF32, 2x 4.7k resistors (pull-up resistors) and the Pmods mentioned above. The pull-up resistors are used to pull up the data lines SCL and SDA for I2C communication. If you're not sure how to connect these resistors, check out this Instructable that contains a description on how to connect the pull-up resistors.

Digilent sells the LabVIEW Physical Computing Kit, which contains the chipKIT WF32 and LabVIEW Home Bundle.

Step 1: Basic Idea

The idea for this program is to allow users to plug in a Pmod to either the I2C or SPI cable, select the Pmod they are using on the front panel, change any settings they wish for that specific Pmod, and click run and see the readings from the sensor.

The above picture is the front panel for the LabVIEW VI. All you need to do for the LINX setup is choose the COM port the chipKIT WF32 is connected to and then select the Pmod you're using the first time you open the program. In the picture above, the SPI PmodALS is selected and ready to be read.

About This Instructable

1,650views

8favorites

License:

Bio: Software Engineer at Digilent Inc.
More by Sudharsan Sukumar:Raspberry Pi Rainbow Ruler Getting Started With the Raspberry Pi 2 (LabVIEW) LabVIEW Tutorial: Game Discounts 
Add instructable to: