I'm using the following circuit: Applied to the motor is 12V, and either high (5V) or low (0V) to each transistor through a 1kΩ resistor. The transistors are TIP 142 and TIP 147. The diodes are 1N5817.
When I apply 0V to R2, R1, and 5V to R3, the motor runs fine; voltage across it is 8-10V. However, whenever I connect 5V OR 0V to R4, the voltage across the motor is 1-2V, and the transistor at R3, starts getting really hot and smoking.
Why does applying anything to R4 cause this?