This is Arduino mega based code to run a 4 wheel driven robot. This code uses ESP8266 as wifi chip. The robot is controlled by mobile phone.
This robot uses Adafruit motor shield. It uses two ultrasonic sensors at front only which are used to stop robot automatically in case if it detects a collision at given distance.