cable harness tester

hello i am trying to build a cable harness tester that can analys up to 22 wires using arduino and i want to be able to display it on an lcd display. the tester should be able to detect cross wire, do continuity test, and it should be able to detect if one then of the wires is connected to the other end.

Is there a question here? Please read this:- How to use this forum

It will tell you how to ask a question here.

There should not be the word "just" in that sentence... Heck, the badly drawn hardware is probably the easy part...

For your understanding, this is a forum for help. We can guide you but YOU have to do the work. Unless you're willing to pay somebody, then you can post it in Gigs and Collaborations.

void setup() {
lcd.begin (16,2);
lcd.setCursor (0,0);
lcd.print (" ");
lcd.setCursor (0,1);
lcd.print ( “”);
delay (100);
lcd.clear ();
Serial.begin (9600);
pinMode(inputpin,INPUT);
pinMode(outputpin,OUTPUT);
}

void loop() {

lcd.clear();

lcd.print("…insert cable…");
lcd.setCursor(0,1);
delay(100);

lcd.clear();

lcd.print("out: ");
lcd.setCursor(0,1);
lcd.print("in : ");
result = 0;
for (int result=0; result<= 2; result++){
lcd.print(result+1);
lcd.setCursor(result+5,0);
lcd.print(result+1);
lcd.setCursor(result+6,1);

delay(500);
}
{
lcd.clear();
lcd.print(“continuity ok”);
lcd.setCursor(0,1);
lcd.print(“no cross wiring”);

delay(100);
}

}

And now with code tags please... See How to use the forum for that.

And also a clear image would help if my sarcasm was missed...

   lcd.print("..insert cable..");
   lcd.setCursor(0,1);
   delay(100);
  
   lcd.clear();

So you have 0.1 of a second to read the LCD and plug in the cable.

Add some code to shift patterns into TPIC6C595, and after going thru the cable, rcapture the pattern back with 75HC165, then shift it into the Arduino and see if the pattern matches.

http://www.ti.com/lit/ds/symlink/sn74hc165.pdf

Use a pullup resistor on the inputs to the '165. The pattern shifted into the '6C595 should only have 1 low at a time, so that reading in a good cable will only have 1 low at a time,

Note that shifting a 1 into the '6C595 makes its output go low. So if you had just 1 shift register, sending in 0b00001000 for example will read back in as 0b11110111 with a good cable. Anything else will indicate an open cable (all 1s), a miswired cable (the 0 will be in the wrong place), or a short (more than one 0).