Shop OBEX P1 Docs P2 Docs Learn Events
Pixy (CMUCam5) is out in the wild - now on journy with it and the Propeller — Parallax Forums

Pixy (CMUCam5) is out in the wild - now on journy with it and the Propeller

StempileStempile Posts: 82
edited 2014-04-08 23:25 in Propeller 1
If you attended a Parallax 2013 Summer hang out session last year, you may remember Kevin and I talking about this Pixy Vision sensor on Kickstarter. The project started shipping mid-March 2014, I was an early backer and received 'award' last week.

Out of the box it comes with work in progress documentation with a enough basics to start playing with it. Given this is a Kickstarter effort and not a full commercial product, I don't expect it to be flawless or perfectly documented. However the group did really a nice job with packaging and providing the quick start info!

I was able to get the hello_world with pan & title rig running immediately with no microcontroller. Next I hooked up an Arduino to demo the microcontroller SPI interface option. I am rusty on C/C++ so there were a few things that I was easily confused on. However, I am now running on the SimpleIDE though... I did try some of the Arduino propeller C libraries, no go. Need to speed a lot more time on Prop C first!

Not having much experience writing an interface to sensor from scratch I struggled on basic stuff here. However using Spin and Propeller tool I was able to generate similar Pixy SPI data output on the Propeller as in the Hello_World.ino example.

My attempt was a learning exercise on a couple different levels... I couldn't get the SPI_Spin object to work correctly. I ended up using parts of the Parallax Semiconductor 'Application Note AN012' to make this work. Leveraged a USBee LA also to measure and replicate the Arduino communication. Again, because of my rusty C/C++ skills getting through classes, template classes, etc. This time I ended up reinventing the wheel... Success is in what I learned along the way.

In the picture: TV running tv_text.spin. PixyMon - PC based monitor/configuration tool for Pixy. USBee suite running the LA. The data on the tv represents SPI data output from the Pixy. The green box is the object Pixy is 'trained' to report on.

NEXT STEPS: Do something with the data besides look at it. I have a Zumo or Sting Ray that will likely be the target.



Kickstarter: https://www.kickstarter.com/projects/254449872/pixy-cmucam5-a-fast-easy-to-use-vision-sensor

Pixy Wiki: http://cmucam.org/projects/cmucam5/wiki
1024 x 522 - 92K

Comments

  • KyeKye Posts: 2,200
    edited 2014-04-07 08:32
    Good for you Stempile, please share any starter code on the CMUcam5 forums if you can for others.

    (I'm the guy who made the CMUcam4 and runs the CMUcam4's forums for now - sharing starter code is very helpful to newbies for the CMUcam5)

    Thanks,
  • Duane DegnDuane Degn Posts: 10,588
    edited 2014-04-07 08:50
    I also have a PIxy (and a CMUcam4), I've just been too busy with my day job (which is now programming the Propeller) to do anything useful with it.

    I also look forward to seeing what you do.
  • HoangTran83HoangTran83 Posts: 52
    edited 2014-04-08 23:25
    Matt,

    I will be getting a pixy soon too, would it be possible for you to share your code? Thanks
Sign In or Register to comment.