Connecting 2 pins without volts

I would like to connect 2 pins together just like 2 normal copper wires being touched together. Is it possible? If it is, please give me an example of that code. I'm stilll a newbie in arduino and I don't have any proper learning/training of arduino codes. Thanks

crazyjhun0309:
I would like to connect 2 pins together just like 2 normal copper wires being touched together. Is it possible? If it is, please give me an example of that code. I'm stilll a newbie in arduino and I don't have any proper learning/training of arduino codes. Thanks

Thanks for telling us which two pins you want to connect.

IF you connect a 5 volt pin and the ground pin together you will get sparks and smoke. Is this what you want to try?

Paul

What’s the purpose of this?

Well, usually there are lots of unused pins on a arduino, might be fun to pair them up and have them talk to each other..

With good planning and non blocking code you could even send a message from one pin, into another pin, then out a third pin and in a fourth pin and just keep everyone talking..

On a custom mega, you have like 100 pins to keep entertained!

Need to see if my special order T-shirts have be made, “Pin Lives Matter”, my newest favorite G33K.

Or “Got Pins?” Love it. Save me a shirt.

Seriously, I never considered their feelings. You’re right they might be lonely.

Try this:digitalWrite(pinA, digitalRead(pinB));

...and I don't have any proper learning/training of arduino codes. Thanks

Based on the posts above, Now might be a good time to start.
Begin with the Arduino examples in the IDE.
You need to start at the very beginning so you don’t fry your board.

crazyjhun0309:
I would like to connect 2 pins together just like 2 normal copper wires being touched together. Is it possible?

That does not make any sense without an explanation of what you are trying to achieve.

As others have said there are many ways to damage your Arduino.

...R

Maybe paralleling outputs is the aim?

Well I just want the arduino to trigger the speed dial of an old phone that would be used in my project. I soldered 2 jumper wires to the outer and inner copper of the keypad, that when that two touched each other it triggers the speed dial. my problem is I want it to be triggered by the arduino in a certain time by connecting those two jumper wires through arduino program

You'd need to use an external transistor, cause that's not the way Arduino works. The pins are not terminals of switches, they sense the presence of a particular voltage (usually 5.0 or 3.3 volts), or they output signals at those voltages. You can't transmit any kind of power through a set of pins, only signal.

So try to determine what voltages are present on the two contacts you want bridge. A 'transistor as switch' type circuit should only involve a few - inexpensive - components.