I'm pretty new in electronic stuffs and I'm still not sure what I'm doing, so my questions might seems retarded. I recently got an Arduino and I'm trying to build a mini-car with it, but I would like to connect 2-way motor. I read a lot information and figured out that I need H-Bridge and my schema must look something like this:
I'm not sure exactly about the usage of transistors. I thought all of these transistor could be PN2222. Am I right? The output of Arduino pins is 5V, would I need some kind of resistor between transistors and Arduino, also since this is gonna be 2-way motor, do I need a 1-direction diode, parallel to the motor? Is this schema gonna work?