Exploring the Pixy sensor with Mathematica

Lead Image © lineartestpilot, 123RF.com

Tracking Number

We show how to track objects and plot their movement using the Pixy camera and the Mathematica package that's included with Raspbian.

The Pixy camera [1] was developed at Carnegie Mellon University and is a fairly specialized vision sensor. Does it take gorgeous 10-megapixel photographs? No. It tracks things and sends data about the objects to microcontrollers, Raspberry Pis, Beagle Bones, and notebook computers.

Mathematica [2] is a data analysis and plotting package that's bundled into the Raspbian OS [3] on the Raspberry Pi. It can crunch numbers and help you visualize all kinds of trigonometric, calculus, and mathematical functions.

I wanted to develop a basic process to get data from the Pixy into Mathematica on the Raspberry Pi in preparation for more in-depth projects. The premise was to track an object with the Pixy and then plot the coordinates of the x and y data. In the future, I might want to suspend the Pixy over a robot arena and analyze bot movements or predict the path of a ping pong ball, as captured by the Pixy. I'm sure you are already thinking up ideas of your own. Exploring new ideas and tools requires prototyping and testing to get an understanding of what you have to work with.

[...]

Use Express-Checkout link below to read the full article (PDF).

Buy this article as PDF

Express-Checkout as PDF

Pages: 6

Price $2.95
(incl. VAT)

Buy Raspberry Pi Geek

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Smells Like Maker Spirit

    The maker movement just keeps getting stronger, and open hardware and software are right in the middle, combining electronics, code, construction kits, and bits and pieces of whatever's in the spare parts bin to create something new or remake something old.

  • Mathematica and the Wolfram language on Raspberry Pi

    Wolfram Mathematica and the powerful Wolfram language are now available for the Raspberry Pi. We'll help you get started with this fascinating tool for calculation, presentation, visualization, and general programming.

  • The Pi Wire

    Things move quickly in the Raspberry Pi ecosystem. This regular column rounds up the best Raspberry Pi and open hardware news to keep you up to date on the latest projects, products, and events.

  • Math, Music, and Cat Toys

    Welcome to Raspberry Pi Geek – the first and only print magazine dedicated to the amazing Raspberry Pi mini-PC and the open hardware revolution. We ring in the new and old in this issue. (Actually, nothing is really very old with the Raspberry Pi, but we follow up on some previous themes, including a report on how it went for the wind-turbine-powered Raspberry Pi we described last time.)

  • Monitoring auto sensor data with the Raspberry Pi

    Every year, teams of students from universities around the world compete in the Formula Student auto racing competition. One team used a Raspberry Pi to monitor sensor data on the vehicle and send the results to the pit crew through a wireless connection. We'll show you how they did it.