<< return to Pixycam.com

My Arduino Mega 2560 stopped printing things on pixy Hello_world code..!

i’m testing my pixy with Arduino Mega 2560 a while ago and found out something…

I Teach pixy Yellow Color and hook it up to my Arduino Mega 2560…
then i Programmed Arduino with Pixy Hello_world code…
Then again… i use the serial monitor on Arduino IDE to look how stuff goes on pixy…

At First… Arduino Responded to Pixy and print some blocks Pixy detected…
but a few data later… It stop printing stuff and the TX led indicator on my Arduino is not turning off…
My Pixy is detecting stuff as usual because the led indicator on pixy is blinking like it should be…

Could anyone help me…?
Thanks beforehand

-Firdanto Prasydani

Hello Firdanto,
Are you getting the “Starting…” message in the hello_world program? Have you tried another program with your Mega2560 just to verify it’s working?

Edward

Yes… i’ve tried bunch of program before using pixy… and they work just fine…
And as i said…
The hello_world program is working normally on the beginning…
It prints some blocks that pixy detect… but after a few blocks… it stop printing things…
But the pixy led indicator still blink normally when it detect object.

I’ve tried some stuff too since i posted my questions…
When pixy run and print stuff on arduino mega…
I try to disturb the 10-6 cable that connect to Arduino’s ICSP
By shaking and flipping the end of the cable… And then the Arduino stop printing things… the TX led indicator on Arduino still turned on while the pixy still detecting the object… Is that what made my arduino stuck…?

I’ve tried steps on this link http://cmucam.org/projects/cmucam5/wiki/My_Arduino_isn’t_receiving_data_from_Pixy too and the pixy and arduino is working fine… so should i use another supply to power pixy and connect pixy to arduino with arduino cable…?

Hello Firdanto,

Hmm, I suppose it might be a power issue. Are you connecting any RC-servos to your Pixy? If not, there shouldn’t be a power issue powering Pixy from your Arduino. As a test, you might try hooking both your Pixy and your Arduino to your PC via a USB cable (and connect your Arduino and Pixy together via the Arduino-pixy cable.) So use two usb cables. This way the Pixy is powered by USB power. Let me know if this affects your issue.

Edward

No… i’m not connecting any servos to my pixy… it’s only Pixy and Arduino

And yes… i’ve tried that… it’s like on this link http://cmucam.org/projects/cmucam5/wiki/My_Arduino_isn’t_receiving_data_from_Pixy
and the result is arduino is working normally…

But i got another problem here… (yay…?)

Whenever i run my arduino, supplied with a 12V battery… my arduino is facing the same problem…
Even though there’s nothing connected to my arduino pins except pixy and the battery…
There’s nothing else connected to my pixy except the arduino through arduino cable…
Should i supply pixy from battery while it get supply from arduino?

Firdanto P wrote:

Whenever i run my arduino, supplied with a 12V battery… my arduino is facing the same problem…
Even though there’s nothing connected to my arduino pins except pixy and the battery…
There’s nothing else connected to my pixy except the arduino through arduino cable…
Should i supply pixy from battery while it get supply from arduino?

My apologies. I’m having trouble understanding what you mean by “same problem”. But I’m assuming your problem is that Pixy isn’t sending data to your Arduino (or your Arduino isn’t receiving), even though Pixy’s LED is indicating that it’s detecting objects. Is this correct? If so, there may be a hardware issue with Pixy that needs to be addressed.

Edward

It’s been a while but…
Pardon my english then…
well i’ve found the real problem about a month ago…
my arduino Mega’s current is getting low when pixy detects an object…
But i found the solution…
i cut pixy’s 5v cable on arduino cable and connected pixy’s 5V pin directly to a 5v regulator and things work just fine…

well thanks for your help Edward…! appreciate it…!

Sometime because of the communication problem between Pixy and Arduino it happened. We really don’t care about the small thing but it does matter. so could you please check your SPI connector on pIXY board. some time it slightly break or some of the pin did not connected well with its soldering point and loose the connection because of frequent connecting and disconnecting of the SPI cable. So to make sure the soldering is not displace, please pressed on the Connector and see how it goes when running Pixy, if still not getting any communication then the problem might be something else like you said.

Hello Biswas,
If your Arduino cable is having problems, you might consider making one. There is some information here:

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

Edward

hello Edward,

thanks for your suggestion but actually my problem was not in the cable it was on the SPI connector on board so i have sent back to the distributor from where i bought it for the replacement.
their service was awesome. me and our team is very happy with their response.Anyway all good.

Hello Biswas,
That’s good to hear! Let us know if you have any additional problems.

Edward