HELP! SUMOBOT

Can Someone help me in my project im using
arduino uno
motor driver shield v1.1
ultrasonic hc-sr04
3 channel line sensor

please help me to code my robotics thank you

sumobot that follow line and push opponent

3channel-500x500.jpg

111.jpg

You haven't said what you want help with. What does your code do? What do you want it to do that's different? Why do you have a function Turn() that is never called?

Steve

I want to have new code that can follow line and detect opponent and push the opponent using
Ultrasonic
3 channel line sensor
Motor driver shield v1.1
Arduino uno

So post the code you already have.

You have two inputs - the relative position of the line and the distance to an opponent. You must consider BOTH of them when deciding what to do, not consider them independently.

How what will i do? Please help me to modify my code. My mind is so overload. Because all my subjects have a projects so many things to do. That's why i can think clearly.

You are the ONLY one that can decide whether following the line is more, or less, important that pushing your opponent around, and for how long.