http://www.instructables.com/id/How_to_Make_an_Obstacles_Avoiding_Robot_Arduino_S/
Sorry i forgot to give the link : )