<< return to Pixycam.com

Pixy 2 school project

Hello everyone
I am in charge of a project in my school, our goal is a robot who detect grass with Pixy 2. We recup this information and we activate a pump.
So i install pixymon, libraries and all this stuff.
i do the parameter for the cam and I try the code Hello world and i2c uart.
My problem is :

  • I don’t know how to recup with arduino the center of the grass.
  • And i want to activate my pump when the distance is acceptable how can i do.
    Thank you all
    if the subject is already online i am sorry, be free to give me the link

Hello,

By “recup” do you mean receive? (I’m having trouble understanding.)

Were you able to get the ccc_hello_world example working?

https://docs.pixycam.com/wiki/doku.php?id=wiki:v2:hooking_up_pixy_to_a_microcontroller_-28like_an_arduino-29

Edward

hello thank you for you answer
I would like to be able to know the (x,y) center coordinates of the detected object (as in “recup” I meant “retrieve” the information), and to be able to activate a motor if these coordinates respect certain given conditions

I’m going to echo Edward here. Please try the ccc_hello_world example, as it should give you the data you need from Pixy2. https://docs.pixycam.com/wiki/doku.php?id=wiki:v2:hooking_up_pixy_to_a_microcontroller_-28like_an_arduino-29

Activating a motor is a simple task in Arduino, and you should be able to find a tutorial online to help with this - we are not an Arduino help forum, unfortunately.

Good luck!

Cheers,
Jesse