Connecting multiple wires to a single arduino pin

I have 2 wires which need to connect into pin 2 on the arduino. The first wire (in brown) is connected straight into pin 2 on the arduino and to the breadboard H35. The second wire that needs to connect to pin 2 is the orange wire connected to DIR+. I simply connected the orange wire onto the breadboard( J35) which is next to the brown wire. I have shown a picture of this with my diagram. Is this the correct way to have both wires connected to pin 2? and if not what are ways I can have the wires both connected to pin 2?

That connection will work just fine.

It sounds like you are confused as to which holes on a breadboard are connected to one another

In the case of the breadboard depicted in your picture each horizontal row of 5 pins is connected together so you have 2 wires connected to pin 2 of the Uno. Why do you need to do this ?

Be careful when wiring pushbuttons such as shown in your diagram because they have 2 pairs of pins on each side that are connected together internally so it is easy to not have the switch in circuit at all. The safest way to ensure that the switch is in the circuit is to connect to diagonally opposite pins of the switch

You can also make a 1 to 2 (or more) Y female header module.

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