<< return to Pixycam.com

Libraries for Arduino

Hello, are there libraries/classes (and documentation) to program the cam to use it with an Arduino microcontroller, like the CMUcam4?
Thanks!

Hi Piero,
We’re working on finalizing the Arduino API (and then documenting it.) These will be ready before Pixy ships (at the latest!)

thanks!
–rich

Thanks!

I see it up on github, porting it to micropython.

although its defined to return a group of blobs - code only seems to detect a single blob and never loops.

Is protocol this:
sync marker, loop of (checksum, model, x,y,w,h), until end marker
or
sync marker, loop of (checksum, model, x,y,w,h, end marker) and then nothing…

or is it really only 1 blob returned each time get_blobs is called and must be called with get_blobs(model_number)

Thanks…

Hi Mark,

You are correct in that the getBlobs routine only returns a single blob (currently). This is because the message format did not indicate when the frame ended, so there was no way of knowing which blobs were associated with which frames (getBlobs was supposed to return all the blobs for a given frame). So I defaulted to just returning one blob for each call of getBlobs.

Rich just updated the message format to indicate the end of the frame, so the next update to the Arduino library will cause getBlobs to return all blobs for the last frame.

Scott

Hi,
Just trying to clear this up as im having trouble finding a list of all the classes to call when using a Pixy in Arduino. I’ve read through your library and got an idea from there but was looking for something similar to the following if it exists?

http://www.airspayce.com/mikem/arduino/AccelStepper/classAccelStepper.html
or

Thanks

Hi Zed,

Currently, we don’t have that kind of code support for the servos. What you saw in the library on Github is what we have, although we are working on improving it right now, and should have some useful updates for you in the near future.

Thanks!

Scott