DrDiettrich:
Das setzt voraus,
challenge akzeptiert.
Ganz was einfaches als proof of concept:
/*
simple check of connections between defined test pins.
external pulldown resistor 6K8
by noiasca
https://forum.arduino.cc/index.php?topic=666835.0
*/
const byte testPin[] {5, 6, 7, 8, 9, 10, 11, 12};
void setup() {
Serial.begin(115200);
Serial.println(F("\nCabletester"));
for (auto &i : testPin)
pinMode(i, INPUT);
}
void loop() {
check();
}
void check()
{
Serial.println(F("New Test"));
for (auto &i : testPin)
{
Serial.print(i);
Serial.print("\t");
pinMode(i, OUTPUT);
digitalWrite(i, HIGH);
for (auto &j : testPin)
{
if (i != j && digitalRead(j))
{
Serial.print("-->");
Serial.print(j);
}
}
digitalWrite(i, LOW);
pinMode(i, INPUT);
Serial.println();
}
delay(1000);
}
output:
New Test
5 -->6-->8
6 -->5-->8
7
8 -->5-->6
9
10 -->12
11
12 -->10
Prototyp mit externen Pulldowns (6K8 Widerstandsnetzwerk, weils da war).
Q.E.D. - es läuft.
