# How to connect 2 motors?

**URL:** <https://forum.arduino.cc/t/how-to-connect-2-motors/1215064>\
**Category:** Motors, Mechanics, Power and CNC\
**Created:** [January 23, 2024, 8:59pm UTC](https://forum.arduino.cc/t/how-to-connect-2-motors/1215064 "2024-01-23T20:59:01Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![danvs](https://avatars.discourse-cdn.com/v4/letter/d/8baadc/32.png) [@danvs](https://forum.arduino.cc/u/danvs)\
**Post date:** [January 23, 2024, 8:59pm UTC](https://forum.arduino.cc/t/how-to-connect-2-motors/1215064/1 "2024-01-23T20:59:02Z")

</div>

I have an esp8266. I am planning to have this esp8266 turn on 1 motor for 10 seconds. Then turn on a different motor for another 10 seconds. Should the transistor that turns the first motor and the transistor that turns on the second motor be connected to the same ground pin or different ground pins.

---

<div class="post-metadata">

**Author:** ![anon94801460](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@anon94801460](https://forum.arduino.cc/u/anon94801460)\
**Post date:** [January 23, 2024, 9:02pm UTC](https://forum.arduino.cc/t/how-to-connect-2-motors/1215064/2 "2024-01-23T21:02:02Z")

</div>

Always connect all the grounds.

---

<div class="post-metadata">

**Author:** ![danvs](https://avatars.discourse-cdn.com/v4/letter/d/8baadc/32.png) [@danvs](https://forum.arduino.cc/u/danvs)\
**Post date:** [January 23, 2024, 9:05pm UTC](https://forum.arduino.cc/t/how-to-connect-2-motors/1215064/4 "2024-01-23T21:05:02Z")

</div>

Why was this post deleted?

---

<div class="post-metadata">

**Author:** ![anon94801460](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@anon94801460](https://forum.arduino.cc/u/anon94801460)\
**Post date:** [January 23, 2024, 9:45pm UTC](https://forum.arduino.cc/t/how-to-connect-2-motors/1215064/5 "2024-01-23T21:45:16Z")

</div>

Please post a hand draw circuit diagram, with pins, connections and parts clearly labeled, so that forum members can head off potentially disastrous errors. Here is a typical wiring diagram for a motor controlled by a logic level N-channel MOSFET transistor.

ALL the parts on this diagram have important functions, and none of them should be omitted!  
Best to use a separate motor power supply, and don't forget to connect the grounds.

 ![dc motor driver](https://europe1.discourse-cdn.com/arduino/original/4X/6/f/1/6f139c1c0b2fe3ba59a11fb5ee64ebb30ec8e470.jpeg)

---

<div class="post-metadata">

**Author:** ![danvs](https://avatars.discourse-cdn.com/v4/letter/d/8baadc/32.png) [@danvs](https://forum.arduino.cc/u/danvs)\
**Post date:** [January 23, 2024, 9:52pm UTC](https://forum.arduino.cc/t/how-to-connect-2-motors/1215064/6 "2024-01-23T21:52:51Z")

</div>

I have 1 npn transistor and 1 pnp transistor. I dont remember how to connect them properly. I have managed to figure it out several times. But i have a bad memory. I have used my esp8266 to turn 1 motor on, only 1. I have never tried to turn 2 on before. Should 1 connect 2 transistors to the same ground pin or different ground pins.

---

<div class="post-metadata">

**Author:** ![Railroader](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/railroader/32/274550_2.png) [@Railroader](https://forum.arduino.cc/u/Railroader)\
**Post date:** [January 23, 2024, 10:01pm UTC](https://forum.arduino.cc/t/how-to-connect-2-motors/1215064/7 "2024-01-23T22:01:08Z")

</div>

Use npn transistors switch the low side of the load. Compare the transistor max voltage with the motor power supply. Compare motor current with transistor max current. The logic level N channel MOSFETs usually handles more current.  
Yes, one ground common to the controller and the motor power supply.  
The npn transistor connects like: Base as the G, Collector as the D and Emitter as the S.The 180 Ohm should be 220 Ohm.

---

<div class="post-metadata">

**Author:** ![arduinouser31415](https://avatars.discourse-cdn.com/v4/letter/a/ea5d25/32.png) [@arduinouser31415](https://forum.arduino.cc/u/arduinouser31415)\
**Post date:** [January 23, 2024, 10:42pm UTC](https://forum.arduino.cc/t/how-to-connect-2-motors/1215064/8 "2024-01-23T22:42:08Z")

</div>

All grounds eventually meet, whether in your circuit or at the supply.

Might as well make the ground return path short and simple, nothing bad comes from that.

---

<div class="post-metadata">

**Author:** ![MarkT](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@MarkT](https://forum.arduino.cc/u/MarkT)\
**Post date:** [January 24, 2024, 10:27am UTC](https://forum.arduino.cc/t/how-to-connect-2-motors/1215064/9 "2024-01-24T10:27:58Z")

</div>

More importantly for high current paths its ground-return should run beside it all the way, as a twisted-pair ideally.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [July 22, 2024, 10:28am UTC](https://forum.arduino.cc/t/how-to-connect-2-motors/1215064/10 "2024-07-22T10:28:05Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
