<< return to Pixycam.com

Arduino programmming

Hi people, I am kind of new using Arduino and Pixy, so sorry in advance if the questions are really dumb. I am in a project of programming Arduino but I have no idea about how I have to read the data coming from Pixy and using it. The simple task of receiving the data ‘orange ball’ and say to the servos ‘move to the right’ is driving me mad!. So the question is: Is there any file or something where this kind of ‘Programming basics between Arduino and Pixy’ appear?

And another question. PixyMon gets stuck very frequently (each 10 minutes) Is that happening also someone else?

Thanks!

Hi Robert,

“Here”:https://github.com/charmedlabs/pixy/blob/master/src/host/arduino/libraries/Pixy/examples/hello_world/hello_world.ino is a very simple “Hello, World” program that shows you how to interface Pixy with Arduino. It should be a good starting point for your project.

How are you using Pixy when it gets stuck? Is it connected to Arduino, Pixymon, etc?

Scott

Thanks, Scott. I didnt even see the “Hello world” program (the excitement of having Pixy in my Hands I guess). But now I would like to know how to read the data coming from colorcodes. I am using also the “hello world” program but when I configure PixyMon in Color code mode (and with PixyMon closed) i dont see anything in Serial Monitor. Probably i need to use another function or modify it, but as I said, I am not an expert. Any clue?

Respecting the problems with PixyMon, I tried to plug everything in another computer (same device, same cable) and it works perfectly, so maybe is just that my USB connector in the PC is sometimes doesnt work

And here an extra question: I have to do a Project in the automotive industry (I dont know yet exactly what) with Pixy and I have read in the wiki that Pixy is focused in this field. When you developed Pixy, did you have any specials ideas in mind? Or this reference to the automotive field is just because of the long longevity?

Thanks in advance

Robert

Hi Robert,

Assuming your configurations are correct, you should be able to get the signature number and angle from the returned data. Have you tried this?

The image sensor was chosen because of its longer lifetime, which means we don’t need to make expensive updates to the design too often.

Scott