Coder Social home page Coder Social logo

pixy_rpi's Introduction

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.

pixy_rpi's People

Contributors

omwah avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.