<< return to Pixycam.com

Arduino example code doesn't work with my Pixy

Hi all,

I got Pixy today. I tested it with PixyMon on my mac, it is working.
But my Pixy doesn’t work with Arduino example code.
Serial terminal shows just “Starting…” no more messages.

I tried all examples in library of Pixy, all examples have same problem.
What should I check it for working with Arduino code?

One more thing, when I compile “Uart” example, it has error messages.
It said that in PixUART.h has undefined ‘serial1.’ call…
I changed "serial1. -> serial. " and solved error message.
Is it correct solution about code error?

Please give any idea about my problem.

Thank you.

Hi Peter,
It sounds like you’re using the UART example. This example assumes you have an Arduino Mega or similar that has multiple serial ports (hence the serial1 error).

We have 3 different ways to communicate between Pixy and Arduino (including UART) but the fastest (and easiest) is to use SPI. You should be looking at the hello_world example, which uses SPI and the ICSP connector.

Detailed directions can be found here:

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

I tested with hello_world example. But the result was same. Just showed “Starting…” no more message.
Difference was that I didn’t get your Arduino cable, so I used my own cable, it seems like your cable, it is 7" length.
I checked cable signal connection, it was good. But it didn’t work with Hello_world example.
You can see the attached image.

Thank you.

You’re saying that you didn’t get an Arduino cable with your Pixy?

yes. I already asked that, I will get it soon.

Peter,

Sorry for delay, I am not sure if you still need the help. But make sure that you run the default program in your pixy.