Hello, all.
First of all, I'm not sure if this the appropriate section to post this thread. If it's not, let me know where I should post it and I'll move it.
I made a very simple line follower robot using only a couple of TCRT5000 (optical sensor with transistor output), two D880 power transistors, two 6V 30RPM DC motors, and a few resistors. The following is the schematics diagram. Everything is duplicated except the 7805 voltage regulator, which there is only one:

The first problem I have is that if I power the circuit with a 9V battery and make it 5V through the 7805, the DC motors go too fast and the robot gets out of track instantaneously. The only way for the robot to work is that I remove the 7805 and power it with my power supply set to 5V. Surely, I'm missing something here, because this is the second time I make this robot, and I'm following my own schematics diagram that I made at the time...
The second problem, is that I added two LEDs per motor that indicate if the motor is on (green LED turns on) or if the motor is off (red LED turns on). The output of the TCRT5000 goes to a 7404 (hex NOT gate) in addition to going to the D880 transistor, and then, using the NOT gates in the 7404, I make each LED turn on when the other one is off and vice versa. The following is a schematics diagram of the circuit, and, again, everything is duplicated except the 7805. The problem with adding this part to the circuit, is that the motors won't stop when they are supposed to. They always go, no matter what the two TCRT5000 say. I added resistor R4, and the situation improved a little bit, they stop when they are supposed to, but it takes them a while, they won't stop immediately. This causes the robot to go out of track frequently. If I remove the 7404, the robot works just fine.

What am I doing wrong? Thanks for your help!
First of all, I'm not sure if this the appropriate section to post this thread. If it's not, let me know where I should post it and I'll move it.
I made a very simple line follower robot using only a couple of TCRT5000 (optical sensor with transistor output), two D880 power transistors, two 6V 30RPM DC motors, and a few resistors. The following is the schematics diagram. Everything is duplicated except the 7805 voltage regulator, which there is only one:

The first problem I have is that if I power the circuit with a 9V battery and make it 5V through the 7805, the DC motors go too fast and the robot gets out of track instantaneously. The only way for the robot to work is that I remove the 7805 and power it with my power supply set to 5V. Surely, I'm missing something here, because this is the second time I make this robot, and I'm following my own schematics diagram that I made at the time...
The second problem, is that I added two LEDs per motor that indicate if the motor is on (green LED turns on) or if the motor is off (red LED turns on). The output of the TCRT5000 goes to a 7404 (hex NOT gate) in addition to going to the D880 transistor, and then, using the NOT gates in the 7404, I make each LED turn on when the other one is off and vice versa. The following is a schematics diagram of the circuit, and, again, everything is duplicated except the 7805. The problem with adding this part to the circuit, is that the motors won't stop when they are supposed to. They always go, no matter what the two TCRT5000 say. I added resistor R4, and the situation improved a little bit, they stop when they are supposed to, but it takes them a while, they won't stop immediately. This causes the robot to go out of track frequently. If I remove the 7404, the robot works just fine.

What am I doing wrong? Thanks for your help!