My brother and I are making a robot that can stop at the edge when the sensors don't detect a surface and go back to follow a different side until it finds a new edge and repeat the process, but we are beginners and don't know how to use Arduino. We built the car with two motors for the rear wheels and a small wheel at the front between two obstacle sensors, I'll put the command we made for it to stop here and a photo of it


[/FONT]
We need help with this urgently as the activity has to be completed by this Tuesday. pls


[/FONT]- input 2 and 3 are the right and left detectors respectively.
- 4 and 5 are IN1.1 and IN1.2 respectively which are connected to the right motor.
- 6 and 7 are IN2.1 and IN2.2 respectively which are connected to the left motor
We need help with this urgently as the activity has to be completed by this Tuesday. pls