Code or wiring mistake

With the rc car, arduino uno, l9110 motor driver module,and the ultrasonic HC-SRO4 sensor, I made the autonomous car which would avoid obstacle and run freely but the front motor is not working and the rear motor is only moving forward when I move my hand infront of the sensor, instead of moving backwards. I also have problem in wiring the driver module. Please help me in both coding and wiring.

s-l300.jpg

FPYWXUBHZI8QHTY.ino (5.06 KB)

Please help me in both coding and wiring.

Well it is hard to help you with the wiring because all you post is a bit of a useless picture of some unknown board with components on it.

As to the code I assume you did not write it so you have no idea what it will do and if it is in fact doing it.

In order to test that the hardware is working you need to test it. That means writing a short program based on the blink LED sketch that will simply turn things on and off. Once you are sure that all the hardware is working and responding to commands then start writing the code.

I had tested it by the battery and find all the things are working. I don't know how to code and I had found it from this site:

I don't know how to code

There are lots of on line tutorials, and the Arduino system includes many simple learning examples. Start there.

I had found it from this site:
https://www.instructables.com

We share your pain

shayan100:
I had tested it by the battery and find all the things are working.

That is just testing the components not the wiring of the components to the Arduino.