Getting the pixy CMUcam5 from charmed labs working on a spark core rover
Other C++
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
Pixy-color-codes-spark.ino
Pixy-spark-color-codesOLD.ino
Pixy.h
PixyOLD.h
README.md
TPixy.h
TPixyOLD.h
pixy-D7.ino
pixy-rover.ino
pixy-roverOLD.ino
pixy-roverOLD2.ino
pixy-serial-spark-core.png
pololu-big-single-1451.png
pololu-small-double-2135.png
spark-core-pins.png

README.md

pixy-spark-core-rover

Getting the pixy CMUcam5 from Charmed labs http://charmedlabs.com/default/products/ working on a spark core rover

April 23, 2015

This rover has two motor drivers, one cheap and one expensive, so you may have to change the code a little bit to work with your motor driver.

Copy the pixy-rover.ino file to your spark IDE. Save. click + in the top right corner and copy Pixy.h to the IDE. Save click + again and copy TPixy.h to the IDE. Save

Flash the code to your core.

Really important to train the Pixy with the color you want the rover to follow and then check on Pixymon that the reading is a good one. I had all kinds of issues since I thought the color was preperly trained but it wasn't.

Sorry. I only just learnt how to make a proper Spark.io library file and I have not done that yet.

May 5, 2015 Having some trouble with the Pixy having false positives, makes my rover go racing down the street searching for the wrong color. Had a better look using PixyMon and found out the inperfections in the backpack I was using was allowing several false readings. Will have to get an object with a really consistent color.

Entered the file pixy-d7.ino, for people who do not have the motor drivers but want to test Pixy with the Spark Core. Includes a cool bit of coding to allow the code to work when connected to Wifi and also when not connected to Wifi.

I have included the images to help setup things. Have a look at all the images they should make some sense

Just a reminder image of the Spark Cores PINS

The Pixy to Spark Core Serial Connections

The Pololu Small Double motor driver (For low amps motors under 1 AMP at https://www.pololu.com/product/2135 about $8.00

The Pololu big single motor driver for up to 30 AMP and like 41 Volts at https://www.pololu.com/product/1451 about $25.00