For a school project I am trying to get a RC car to follow someone wearing a certain color. I have a pixy2 cam and I can get it to "see" colors. I need help with the coding it the Arduino and the frizting diagram to wire it up.
You didn’t post either code or Fritzing (ugh!) diagram.
I dont have either. I am a newbie to this.
But you have details.
Details are useful.
burle1mw: I have a pixy2 cam and I can get it to "see" colors.
In order to use the camera for a follow-me exercise, you will need to be able to determine if the colored object is centered in the camera's field of view, to the left or to the right. Can you do that?
What chassis, motors and motor drivers are you intending to use?
Is it good enough for your car to move forward at a constant speed, or do you need it to speed up and slow down in response to the speed of the moving person? If you need it to speed up and slow down in response to how close it is to the person, you will need some way to determine the distance to the colored object. Can you measure how many pixels wide the colored objects is with our camera? That might give you enough information for distance calculations.
Build the vehicle and learn how to control it with Arduino, then come back and post the details.