SPI with chipKIT WF32 and LabVIEW

I have recently been working on SPI and I2C with the chipKIT WF32, LabVIEW Home Bundle, and various Pmods. Using LabVIEW MakerHub LINX, I was able to have the WF32 interface with the different Pmods and LabVIEW. I wrote an Instructable here about how I got the PmodALS (ambient light sensor) to interface with the WF32 which also includes a section on how to read the data sheet to find what you’re looking for. This Instructable was made as a guide so that others can understand how to read the data sheet in order to find the information required to use SPI for various sensors themselves.

Read More

Pmod Communication: Serial Peripheral Interface

A while ago, we learned that one of the ways that Pmods are able to communicate with their host board is through SPI. We learned then that serial peripheral interface is a type of communication protocol where the “master” board and the “slave” device (in this case, a Pmod) are able to send bits of data to each other at the same time with the host board controlling the timing of the communication. Although this is a nice overview, it is my personal experience that theoretical overviews are not the most helpful in actually implementing what we are learning. This begs the question: how do you use SPI? Lets find out!

Read More

Digilent Pmods: Communication Is Key

We are going to continue with our Pmod series and talk about how you get the Pmod (peripheral module) to do what you want it to do. After all, it is not the best plan (especially in electronics) to just plug something in to a random spot and hope the device works correctly. The vast majority of the peripheral modules in the Pmod line collect or receive data (or both) and need to communicate this data with the host board. A GPS module that doesn’t send its coordinates to the host or an audio amplifier that does not receive data from the host are not terribly useful. Successful communication is key in any relationship, electronic or otherwise.

Read More