Basic logic analyzer on raspberry pi using PICKit2
January 10, 2013 6 Comments
I discovered this little trick for all of you out there that uses the rpi for the electronics projects like I do.
First, go to this link and download the pk2-la zip file, and extract it somewhere like a Downloads folder on the rpi.
Then go “sudo apt-get install python-usb”, which will install the USB stuff for python, and just run the pk2-la executable through root command line, or “sudo pk2-la”. Make sure your pickit2 is plugged in before you run it tho otherwise it will not run.
I copied the pk2-la file, LA-Format file, and IO-Format file to /usr/bin so I could just call it from anywhere in the command line by using “sudo pk2-la”.
You should see a window pop up after a few seconds looking like this:
You need to hook 5v from your circuit to pin 2 and gnd to pin 3/middle pin, then the other three inputs are shown in this diagram:
And there you go, a 3 channel logic analyzer for your Raspberry Pi 😛
All credit for pictures go to Josejx at http://sourceforge.net/projects/pk2-la/ and Microchip.