<< return to Pixycam.com

Full camera image via SPI, I2C, Uart?

Would it be possible to incorporate a “Take a snap” command into the FW, so that an SPI, I2C, Uart connected µC could acquire a photo via these connections? (not USB)
It would take some time to transfer that snap, but under some circumstances this might be acceptable (e. g. collision detection --> take a snap [BMP, JPG, PNG] of collision).

Its definitely possible, but like you said, it would be pretty slow. I’ll add it to the todo list. I kind of doubt this feature will make it for the initial release with all of the other things we still want to get done, but we’ll try to get to it eventually.

Keep in mind that everything is open source and we hope to have active contributors to the project. So if you or someone else wants to tackle something like this then we’d be more than happy to integrate the code with our firmware or include it as an optional library.

Scott

I’m keen to make this work as well, and I’m happy to contribute.

Scott, I’m a newbie to this codebase. Can you give me a hint for where’s a good place to grab the image?

Hi Daryl,

You could look at “this”:https://github.com/charmedlabs/pixy/blob/5d8be7253c5c9ccb2a5f9bd32d828ba6bad9d2f5/device/libpixy/camera.cpp file, which uses Chirp to send the frame over USB to the host and should give some clues as to how you’d access the image. You’ll see that the frame is located at the memory location SRAM1_LOC. It is placed there by the M0 core, which handles acquiring and storing the image from the image sensor.

Hope this helps.

Scott

Hi Daryl, Scott!

Were you able to do this modification? I would really need this feature now and would like to make the change. However, I don’t have any license for uVision so it’s difficult for me to contribute.

I’ve read about the GCC version but as far as a I understood, it’s still not working.

Hello,

The LPCXpresso (GCC) version of the firmware is available. You can sign up for the discussion group here:

https://groups.google.com/forum/#!forum/pixy_firmware_sdk

Edward

Hi,

Was this feature ever integrated?

-Jake