Hi,
hasan_uckun, what is your electronics, programming, arduino, hardware experience?
Just using someone else's sketch is looking for trouble as you do not know how it works.
Can you please post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png or pdf?
And how are you powering the robot?
Thanks..Tom......