Answer the question
In order to leave comments, you need to log in
What happens if you short two Arduino digital ports to each other?
Will pay die?
Are there exceptions?
And if only one is for the output with a high signal, and the second is for the input?
And if both output a high signal?
What if both are on the way?
Is it possible to connect the 5V pin and the reading digital pin?
Is it possible to connect the ground and the reading digital pin?
Is it possible to connect the ground pin and 5V?
Answer the question
In order to leave comments, you need to log in
In simplified terms, the digital port is two keys: one ("upper") closes the pin to 5V, the second ("lower") - to the ground. If the upper key is open, 1 is displayed on the port, if the lower one, then 0. Both keys are closed - the port works as an input, the so-called. Z-state.
What happens if two digital ports are connected to each other?If you output 1 to one port, and 0 to the second, there will be a short circuit through the upper key of the first port and the lower key of the second.
Are there exceptions?Yes, as long as you ensure that the port states are always the same (00 or 11), nothing will burn.
And if only one is for the output with a high signal, and the second is for the input?Everything is OK, the input will read the unit, nothing will burn.
And if both output a high signal?As already mentioned, there will be no kz. But you need to switch both ports strictly simultaneously, in one clock cycle.
What if both are on the way?It will not burn, but if nothing else is connected to these ports, the input will read any random garbage.
Is it possible to connect the 5V pin and the reading digital pin?In both cases it is possible. But if you accidentally switch the pin to the output, there will be a short circuit. Therefore, it is better not to close the inputs to power and ground directly, but through a resistor.
Is it possible to connect the ground and the reading digital pin?
Is it possible to connect the ground pin and 5V?There will be a short circuit of the 5V source. Well, at least the controller will not burn out =)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question