I'm not expert in elc.electrical circuits, maybe I am making a very simple mistake or missing some basic points with my circuit.
What I'm trying to achiveachieve is simple, to run 2 dcDC motors with an ultrasonic sensor to detect obstacles and change direction. When I plugged offunplug the ultrasonic sensor everything is working fine as expected without obstacle detection but when I connect the ultrasonic sensor, sensor always responds with 0 cm distance. Then I removed 9v9 V battery from the circuit and plug ArduioArduino to computer via usbUSB, sensor works fine but motors are not working properly, it looks like the power from usbUSB is not enough to drive motors at the same time. I've added my circuit scheme below.
Any help or advice appraciated, Regards,:
