please check this schematic may be i have something wrong , i'm going to make it's PCB,
the function of this board is to get a signal from PIC16f877 main board and run H-Bridges and other circuits which required 5V or 12 Volt but with more tolerance with the current
Looks fine, most use a ULN2803 to do the same thing as it has the diode clamps and higher gain than the 2N2222A plus a nice simple DIP package. **broken link removed**
Your circuit doesn't have resistor values nor does it have a load. So it might work, it might not work or it might blow up.
If it is designed properly:
When an input is high then the output of a transistor is low.
When an input is low then the output of a transistor is high.
In that case the 2N2222 isn't that much more powerful at 800ma and you'll need to drive it fairly hard to get that and it will get very warm. A TIP112 darlington might be a better idea.
500ma is generally enough for many small stepper motors.
Better to use a SN754410 Quad Half Bridge. 1.2A with thermal shutdown, nice part. Of course larger ICs exist and will save you burning out transistors. Your original 2N2222 circuit is not an H-Bridge, you'll need PNP transistors too for a proper H-Bridge.