I am designing an H-bridge with Arduino to control a small 12V motor. I made a custom PCB with the following schematic however I have a problem with the 2N2222 transistor.
I am using them as a switch two turn on 2 PNP Mosfets. I control this using two Arduino Pins (2 & 3). Each pin turns on an NPN Mosfet and a 2N2222 transistor that turns on a PNP Mosfet in order to obtain a positive and negative output for the motor. When these pins are LOW (OFF), both 2N222 are off and so are all 4 Mosfets.
However, when only one pin is HIGH (ON) both 2N222 are now closed and therefore both PNP Mosfet are triggered. The other NPN Mosfet that is connected directly to Arduino works fine. I cannot understand the issue since the 2N2222 transistor base pin that should remain off has a voltage of 0V which is correct, but the resistance between the emitter and collector pins is close to 0.
The other 2N2222 has a voltage on the base pin of 0.7V and the emitter and collector pins have 0 resistance. This is the same if I try to flip to turn ON the other one and turn OFF the current one that is ON. On the left part of the schematic I just have other connections for reading sensors.
I am not good at all at electronics and I am currently learning, does anyone know what can be the issue?