<< return to Pixycam.com

Connecting, interfacing and using Pixy with my Arduino Due

Hi! Please do help me I have some few questions

I have an arduino due and my pixy finally arrived awhile ago YAY. so now i want to use it with the arduino.

(disclaimer, im not pro in arduino, just a beginner in that area too, this is clearly not my expertise but im willing to learn alot in this field)

so its been said that in other arduino like uno, i connect the cable included int the icsp headers, but in DUE its said that the old icsp headers are the SPI headers here. i tried connecting it in the icsp of the due and it wont light up or work, i tried connecting it to the spi and it lit up so i think its working now?

so my question now is, i tried the hello world example in http://www.cmucam.org/projects/cmucam5/wiki/Hooking_up_Pixy_to_a_Microcontroller_like_an_Arduino
after uploading the code and connecting the pixy, i brought up the serial monitor and the only thing written there is “starting…” and nothing happens :))

did i do anything wrong?

then my next question after that, how do i view what the camera sees from pixy > arduino > pc ? is that possible? i dont mind using uuthe pixymon desktop program to view it but i want to learn how to open it when pixy is interfaced in arduino. :slight_smile: please do help me haha

thank youuu

Hi Jerome,

As for viewing the image Pixy sees, you must connect the USB cable from your desktop computer to Pixy and use Pixymon. Pixy can’t send the image to Arduino, so you’ll need to connect directly to the desktop via USB.

As for your Due connection, you must connect it to the SPI headers and enable SPI communication in Pixymon. This is important since the Pixy Arduino software currently supports SPI as its primary communication on the Due. This is because the Due is ARM-based, and works much different than the other Arduino boards.

Have you been able to connect Pixy to any other types of Arduino boards to verify you can get the communication to work?

Scott

Hi Thank you sir for your swift reply.

May i ask how do i enable the SPI communication in Pixymon? :slight_smile:

As of the moment i havent tried other arduinos coz i only have the due, but ill be borrowing from my classmates UNO or MEGA to try it out soon.

Hi, I have checked the communications in Pixymon and Data out port is already set in 0. yet i still get the “starting” only in the serial monitor. please do help me :frowning:

Hi Jerome,

When you connected Pixy to your Due, had you first trained Pixy on an object? If you haven’t trained on anything then nothing will show up.

Also, does everything seem to be working when Pixy is connected t your desktop? For example, you can see video and bounding boxes of detected blocks?

Scott

Hi!
I am using an arduino Uno and facing the same challenge. The serial monitor only outputs Starting and nothing else. I put serial prints at various points in the code and it stops just at the pixy.getBlocks command.

Hello,
Please follow this troubleshooting guide:

https://docs.pixycam.com/wiki/doku.php?id=wiki:v2:my_arduino_isn-27t_receiving_data_from_pixy

If you haven’t done so already, please install Pixymon. This page provides details:

https://docs.pixycam.com/wiki/doku.php?id=wiki:v2:pixy_regular_quick_start

Let me know what you find.

Edward