OK..I will get back to you on how to test U2 functionality.
U2 provides an OR/AND combinational logic function.
Inputs A,B are two inputs of one OR gate inside U2.
Inputs E,F are two inputs of a second OR gate inside U2.
The outputs of the two OR gates are "ANDed" together inside U2.
The logic is:
If (A OR B) AND (E OR F) are at +12v, then "J" should produce +12V
If (A AND B) OR (E AND F) are at 0v, then "J" should produce 0V.
To test this function, remove the connections to pins U1-5,6,13,14,
then temporarily connect these pins to 0V (ground). Pins U1-5,6,13,14
will be called the "input pins" from here on for testing purposes.
1. Apply power to circuit.
1A. Check the voltages at pins U2-3,4,8,9,10,11,12,15. Each pin voltage should be ~0V (ground)
1B. Check the voltages at pins U2-2,7,16. Each pin voltage should be +12V.
1C. These voltage measurements should remain constant throughout this test.
2. Check the voltage at U2-1.
2A. With 0V volts at ALL input pins, the voltage at U2-1 should be 0V.
2B. When +12V volts is applied to U1-14, the voltage at U2-1 should be 0V.
2C. When +12V volts is applied
to both U1-14 AND U1-6, the voltage at U2-1 should be +12V.
3. Re-Check the voltage at U2-1.
3A. With 0V volts at all input pins, the voltage at U2-1 should be 0V.
3B. When +12V volts is applied to U1-13, the voltage at U2-1 should be 0V.
3C. When +12V volts is applied
to both U1-13 AND U1-5, the voltage at U2-1 should be +12V.
The Mosfet DRIVER test:
Mosfet M1 should be normally off. R4 ensures this by pulling up M1's gate to +12v.
Anytime M1 has +12v at its gate pin, M1 should be off, and the Brake Light should be off.
Anytime M1 has 0v at its gate pin, M1 should be on, and the Brake Light should be on.