i am trying to run 2 bo motors with l293d motor driver shield. but the motors are not running even the code was working fine and arduino was good. (by the way to check motor driver shield working or not, i used ultrasonic sensors, those are working fine with the motor shield) but the motors are not working.
i attached the battery to the arduino and the arduino is connected to the laptop with the usb cable.
in that post i mentioned the battery i used. i connected that one to the arduino board, and i didnt used any 9v battery, i just posted that image for the idea of connections.
you mean connect another battery to the motor driver, then can i use the 12v battery for motor driver and connect the arduino to the laptop via usb cable??
Please get a valid data sheet for these motors. The advertisement varies between 3V recommended to 6V or 12V supply, and 150W @ 5V is incredible and never fits L293D drivers.
The L293D, although ancient and extremely inefficient, should be able to handle at least one of those little motors.
If the motor does not move, then most likely either your wiring is incorrect, the shield is defective, the motor power supply (battery) is defective (dead) or the code is wrong (e.g. wrong digital pins used).