Is it a problem to connect both ends to the same arduino? If not, just do that and check each wire by making it high with the rest as input (with pull down) and check to see only the corresponding other end goes high. Done
Digital Output Pin------------wire under test--------Dig. Input-----10k pull down....GND?
Would this kind of arrangement not have adverse effect on the board in case of a short circuit?
Try.
Digital Output Pin----Series 1K Resistor-------wire under test--------Dig. Input-----10k pull down....GND?
The series 1K will limit any current due to shorts to ground yet not drop any significant voltage when small current flowing to Input, may need to increase 10K to 22K to GND at Input.
Tom...
I was thinking for the remote end connecting the ends via resistors and then probing the resistance between
pairs at the sending end to identify which is which - shorts and open-circuits would be obvious.
Simply doing something like
A -- 1k -- B -- 2k -- C -- 4k -- D
So if two wires show as about 6k that means they are B and D:
The six possible parings give unique values, so it ought to be possible to map out the difference
in ordering at the two ends easily.
So at the sending end you need to drive each wire via something like a 1k resistor from one
pin and sense its voltage directly with another, analog pin.
Select two outputs to drive (OUTPUT), one high, one low, read their analog pins and determine the
resistance, repeat for multiple pairings.
technophile:
Would this kind of arrangement not have adverse effect on the board in case of a short circuit?
Not as long as you just test one wire at a time. Then there is only one output HIGH and the rest is connected to GND via a resistor. No direct path to GND. But adding a series resistor like TomGeorge suggested doesn't hurt.
MarkT, I haven't been quite able to follow your idea, (please excuse my lack of knowledge). May be able to
understand it better with a bit of code.
Thanks.
No, not that, 4 digital pins driving via 1k resistors, 4 analog pins sensing voltage:
Digital pin ---- 1k ---- Analog pin ------ wire1
Digital pin ---- 1k ---- Analog pin ------ wire2
Digital pin ---- 1k ---- Analog pin ------ wire3
Digital pin ---- 1k ---- Analog pin ------ wire4
You probe a pair of wires at a time (the other digital pins set to pinMode INPUT), and measure
the voltage due to the resistor(s) at the other end to measure the resistance. That tells you
about the correspondance of wires at one end (which I call 1,2,3,4) to the wires at the remote end
(labelled A,B,C,D). And you can see any open-circuits or shorts.