Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.rst

Pixy for Raspberry Pi

Included here are some C++ and Python code that can be used to read data from the Pixy camera over SPI.

The C++ code requires Wiring Pi. Compile it using the Makefile after installing Wiring Pi. Test using the echo program.

The Python code requires a modified version of the Python wrappers to Wiring Pi known as WiringPi2-Python. I had to fix the SPI read/write function in it so I could get data from the bus. After installing the Python wrappers you should be able to run echo.py to read what the Pixy is sending.

You can use the Arduino cable included with your Pixy and some jumpers to connect to the Raspberry Pi. Connect MISO, MOSI, SCK and Ground. The table below is what I used.

Name Cable Raspberry Pi
MISO 1 21
SCK 3 23
MOSI 4 19
Gnd 6 Various

For more information check the eLinux.org GPIO page and the Arduino SPI page. The Arduino SPI page will help you figure out what the pins are on the Pixy included Arduino cable.

You can also get the PixyMon software compiled on the Raspberry Pi by following the instructions in the host/linux/README.linux file. You may need to remove -mno-ms-bitfields from the flags in the Makefile that is generated before succesfully compiling.

About

Pixy Camera Raspberry Pi Interface

Resources

Releases

No releases published
You can’t perform that action at this time.