Anti collision car

Hello,
I would like to program an anti collision car for my little cousin's birthday I took the ZK-2 Arduino car with L298N motors and GP2Y0A1SK0F sensors and I am a real beginner on Arduino and I would like information by port to the program that I have to program
thank you very much in advance

double posting is not authorised.

please decide if you want to keep the French or English version. and do yourself a favour and please read How to get the best out of this forum


there is a tutorial and code readily available here

This is a pretty advanced project for a beginner .
You can’t expect to find code ready to go for every application - you need to be able to write the code .
Start by looking at motor control examples , then collision avoidance sensors .
Write some code and people here will help .

But as I said , if you are a beginner you will struggle and need to do a few simple things first - sorry