<< return to Pixycam.com

ARDUINO und PIXY setup Pixy with ARDUINO

Hello
Is there a way to adjust the Pixy with Arduino SPI
to provide, for example, the AEC on 1

cam_setAEC 1

Please have an example

Greeting Patrick

Hi Patrick,

turning AEC on or off isn’t possible with the Pixy Arduino API unfortunately. Here is a list of commands for future reference: http://cmucam.org/projects/cmucam5/wiki/Arduino_API

You can accomplish this using libpixyusb - depends on your system though. More info: http://cmucam.org/projects/cmucam5/wiki/Building_the_libpixyusb_example_on_Linux and http://charmedlabs.github.io/pixy/pixy_8h.html

Hope this helps!

Cheers,
Jesse

Hello Jesse
thank you for your information
Is there someone in the forum could make me a change to the API
My knowledge of C are not as good. I would be very grateful
Greeting Patrick

Hi Patrick, I’ve logged this as a feature request. No telling if or when it will make it thru the pipeline though.

Cheers,
Jesse

Hello Jesse
i think the seting from PIXY paramter with ARDUINO are important
Thank you

Patrick

Hello Patrick,
Just curious – you want to dynamically turn the AEC on and off, correct? Can you describe your application? There might be some other ways we can help in the meantime.

Edward

Hello Edward
with the AEC was just an example. I thought that’s easier said if there must have only 0 or. 1

I just think to myself. Why can PIXYmon UART adjust the camera and ARDUINO can not adjust
the Firmware must have the Funktion, is that not correct?

Greeting Patrick

Hello Patrick,
All of the serial interfaces (SPI, UART, I2C) have some limitations in that they don’t support all possible commands. We made this decision so that the serial interface was simple to port to any platform and not require much code overhead.

The reason I asked why you want to modify AEC dynamically is because this is uncommon. Most of the things you want to do with Pixy – get info regarding detected objects, set the pan/tilt position, set the LED color, and a few others are supported through the serial interfaces (SPI, UART, I2C). But not setting AEC. This link describes the available commands:

http://cmucam.org/projects/cmucam5/wiki/Arduino_API

If you have a specific thing you want to do, please describe it to us. If it’s something that’s not supported through the serial interfaces, we’ll make a note of it, and possibly add it later releases.

Hope this helps!

Hello
thanks, I think that’s enough
greeting Patrick