I'm trying to power two motors using an l293d for a line follower project. My robot consists of an SRF05 ultrasonic obstacle sensor, two IR R/T and two motors.
Simply put, whenever i power my arduino using a 9V battery, it keeps on restarting or if doesn't restart, it dies after a few seconds resulting in BUILTIN_LED to blink at very high speeds and low light.
I tried using the l293d with the same configuration as in the robot on a breadboard using a 9V battery an 5V as the logic from arduino of which the power for the arduino is supplied by the 9V battery through the Vin pin. Say at pwm speed 100 it turn the motor on but doesn't turn it, it makes a feq sound which need my help to turn. When i set pwm speed to 255, the arduino just keeps on restarting when it tries to power the motor.
Is the problem from the battery or is there too much current being drawn from the circuit.
The circuit I'm using : Imgur: The magic of the Internet
Battery I'm using: Camelion Super Heavy Duty 9V 6F22