user24360: is it possible to use a normal PNP transistor to drive a motor?
I'm kinda new to this stuff so I want to be on the safe side, so I don't damage my Arduino Uno because of the motor.
I have made a motor driver? https://circuits.io/circuits/2493784-test-1
But I'm not sure if i have done right and I wont break any components.
So does this work without any problems and have I done it right?
I'm not trying to make a H-bridge because I need both PNP and NPN?
EDIT:Picture


user16025: You need an NPN transistor to run a motor like that off of an arduino. Take a look at this article: https://learn.sparkfun.com/tutorials/transistors

Similar to the NPN circuit, the base is our input, and the emitter is tied to a constant voltage. This time however, the emitter is tied high, and the load is connected to the transistor on the ground side.
This circuit works just as well as the NPN-based switch, but there’s one huge difference: to turn the load “on” the base must be low. This can cause complications, especially if the load’s high voltage (VCC in this picture) is higher than our control input’s high voltage. For example, this circuit wouldn’t work if you were trying to use a 5V-operating Arduino to switch on a 12V motor. In that case it’d be impossible to turn the switch off because Vb would always be less than Ve.

Using an NPN transistor is the way to go here. Keep in mind that you can't control the direction of a motor with just one transistor, however.

user4143: Despite the fact that the circuit you have is completely wrong, there is one fundamental thing that is stopping you using a PNP transistor.
With an NPN transistor you have to raise the voltage on the base above the ground voltage (this voltage is called V_BE, the Voltage between Base and Emitter). Typically that voltage is around 0.7V. 
With an PNP, because the emitter is wired to your 9V rail, V_BE must therefore be relative to 9V, not ground, so the voltage on the base must be less than 0.7V below 9V to turn on. Which in itself is fine - a LOW will be around 0V, which is about 9V less than 9V. So it will turn on. The problem comes when you want to turn it off. You need to get the base voltage above 8.3V (9V - 0.7V), and that is impossible for an Arduino to do.
So normally a PNP transistor is switched by using an NPN transistor to switch the base of the PNP between 9V (pulled up through a resistor) and 0V (switched through the NPN).
And that then becomes pretty much pointless, since you are then adding a second, NPN, transistor, and you could just as well use the NPN alone to switch the motor, making the PNP completely redundant.

user7508: When connecting together several circuits that have different supply
voltages, common practice is to make them all have a common negative
supply rail. This is called “common ground”. As explained in Majenko’s
answer, you would need an NPN transistor for that.
If you want to use a PNP instead, then you could forget the common
practice and do everything “backwads”: if you connect together the positive
ends of the power supplies, you will have a “common VCC”
instead of a common ground. Relative to the Arduino ground, your
9 V battery will have one pole at +5 V and the other at
−4 V.
The wiring is the following:

connect the emitter to +5 V (Arduino +5 and battery +)
connect the base to an Arduino output through a resistor
connect the collector to the motor
connect the other end of the motor to the battery −
put a free wheeling diode in parallel with the motor.

Edit: Below is an ASCII art rendering of the circuit. Beware that
the motor is ON when the Arduino output is LOW.
+-----------+
|         5V|-----------------+-------------------+
|           |                 |                   |
|  Arduino  |                 |                   |
|           |    ,-----.  B |< E                 ___ +
|        D13|----|     |----|    PNP              _
+-----------+    `-----'    |\                   ___
                              |C                  _
                              |                  ___
                              +---------+         _
                              |         |        ___ 9 V batt.
                              |         |         _
                             ---        |        ___
                              ^       motor       _
                             / \        |        ___
                             ---        |         _  −
                              |         |         |
                              |         |         |
                              +---------+---------+


24360: <p>is it possible to use a normal PNP transistor to drive a motor?
I'm kinda new to this stuff so I want to be on the safe side, so I don't damage my Arduino Uno because of the motor.</p>

<p>I have made a motor driver? <a href="https://circuits.io/circuits/2493784-test-1" rel="nofollow noreferrer">https://circuits.io/circuits/2493784-test-1</a>
But I'm not sure if i have done right and I wont break any components.</p>

<p>So does this work without any problems and have I done it right?</p>

<p>I'm not trying to make a H-bridge because I need both PNP and NPN?</p>

<p>EDIT:Picture
<a href="https://i.stack.imgur.com/BWJP0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BWJP0.png" alt="enter image description here"></a></p>
 16025: <p>You need an NPN transistor to run a motor like that off of an arduino. Take a look at this article: <a href="https://learn.sparkfun.com/tutorials/transistors" rel="nofollow noreferrer">https://learn.sparkfun.com/tutorials/transistors</a></p>
<blockquote>
<p>Similar to the NPN circuit, the base is our input, and the emitter is tied to a constant voltage. This time however, the emitter is tied high, and the load is connected to the transistor on the ground side.</p>
<p>This circuit works just as well as the NPN-based switch, but there’s one huge difference: to turn the load “on” the base must be low. This can cause complications, especially if the load’s high voltage (VCC in this picture) is higher than our control input’s high voltage. For example, this circuit wouldn’t work if you were trying to use a 5V-operating Arduino to switch on a 12V motor. In that case it’d be impossible to turn the switch off because Vb would always be less than Ve.</p>
</blockquote>
<p>Using an NPN transistor is the way to go here. Keep in mind that you can't control the direction of a motor with just one transistor, however.</p>
 4143: <p>Despite the fact that the circuit you have is completely wrong, there is one fundamental thing that is stopping you using a PNP transistor.</p>

<p>With an NPN transistor you have to raise the voltage on the base <em>above</em> the ground voltage (this voltage is called <em>V_BE</em>, the <em>V</em>oltage between <em>B</em>ase and <em>E</em>mitter). Typically that voltage is around 0.7V. </p>

<p>With an PNP, because the emitter is wired to your 9V rail, <em>V_BE</em> must therefore be relative to 9V, not ground, so the voltage on the base must be less than 0.7V <em>below</em> 9V to turn on. Which in itself is fine - a LOW will be around 0V, which is about 9V less than 9V. So it will turn on. The problem comes when you want to turn it off. You need to get the base voltage <em>above</em> 8.3V (9V - 0.7V), and that is impossible for an Arduino to do.</p>

<p>So normally a PNP transistor is switched by using an NPN transistor to switch the base of the PNP between 9V (pulled up through a resistor) and 0V (switched through the NPN).</p>

<p>And that then becomes pretty much pointless, since you are then adding a second, NPN, transistor, and you could just as well use the NPN alone to switch the motor, making the PNP completely redundant.</p>
 7508: <p>When connecting together several circuits that have different supply
voltages, common practice is to make them all have a common negative
supply rail. This is called “<em>common ground</em>”. As explained in Majenko’s
answer, you would need an NPN transistor for that.</p>

<p>If you want to use a PNP instead, then you could forget the common
practice and do everything “backwads”: if you connect together the positive
ends of the power supplies, you will have a “common V<sub>CC</sub>”
instead of a common ground. Relative to the Arduino ground, your
9&nbsp;V battery will have one pole at +5&nbsp;V and the other at
−4&nbsp;V.</p>

<p>The wiring is the following:</p>

<ul>
<li>connect the emitter to +5&nbsp;V (Arduino +5 and battery +)</li>
<li>connect the base to an Arduino output through a resistor</li>
<li>connect the collector to the motor</li>
<li>connect the other end of the motor to the battery −</li>
<li>put a free wheeling diode in parallel with the motor.</li>
</ul>

<p><strong>Edit</strong>: Below is an ASCII art rendering of the circuit. Beware that
the motor is ON when the Arduino output is LOW.</p>

<pre><code>+-----------+
|         5V|-----------------+-------------------+
|           |                 |                   |
|  Arduino  |                 |                   |
|           |    ,-----.  B |&lt; E                 ___ +
|        D13|----|     |----|    PNP              _
+-----------+    `-----'    |\                   ___
                              |C                  _
                              |                  ___
                              +---------+         _
                              |         |        ___ 9 V batt.
                              |         |         _
                             ---        |        ___
                              ^       motor       _
                             / \        |        ___
                             ---        |         _  −
                              |         |         |
                              |         |         |
                              +---------+---------+
</code></pre>
