Go Down

Topic: color folowing rc car (Read 288 times) previous topic - next topic

burle1mw

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.

TheMemberFormerlyKnownAsAWOL

You didn't post either code or Fritzing (ugh!) diagram.
Please don't PM technical questions - post them on the forum, then everyone benefits/suffers equally

burle1mw

I dont have either. I am a newbie to this.

TheMemberFormerlyKnownAsAWOL

But you have details.
Details are useful.
Please don't PM technical questions - post them on the forum, then everyone benefits/suffers equally

vinceherman

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.

jremington

#5
Jan 17, 2020, 08:15 pm Last Edit: Jan 17, 2020, 08:15 pm by jremington
Build the vehicle and learn how to control it with Arduino, then come back and post the details.

Go Up