We are trying to check the connectivity of cable harness. For which we have used a mux and a LCD display to display 1 or 0 for either connected or not connected for each wire of the harness respectively. If there are 8 pins in our connector then our output on the LCD screen should be in the form of 11111101 (for example). From our output we can say that the 7th wire of the harness is not connected properly. I have attached a screenshot of our circuit. How should I write my code? How can I interface my mux and LCD as per my required conditions?
Read the 1s and 0s into an 8 bit byte and display the byte with
lcd.print(byte, BIN);
Where is the code?
Looks like a fun project. I would suggest you do a bit of research on cable testers, you will find there are many ways of doing this. A lot depends on the cable and what it is for, it may be RF, it may be DC or something in between. Your software depends on what you want it to displays during a test cycle.
I don't see how that works when you have the pins of J1 connected to J2?
Assuming that is where the cable connectes, one would normally output on J1, input on J2, check for continuity from say pin 1 to pin 1, check for shorts from pin 1 to anything else.
For example use 2 shift registers.
Outputs come from a TPIC6C595.
Inputs go into a CD74HC165E with pullup resistors on the input signals, or directly into Arduino inputs with just 8 signals.
The '6C595 as open drain outputs, so you don't have to worry about shorting highs & lows together.
Turn on one output, it goes low, you check to see if the appropriate input is low (good continuity), high (open), or if low i spotted elsewhere (miswired, or a short).
Highs are provided by internal pullup resistors on the Arduino, or you add pullup resistors on the 74HC165 inputs.
CrossRoads:
I don't see how that works when you have the pins of J1 connected to J2?
Assuming that is where the cable connectes, one would normally output on J1, input on J2, check for continuity from say pin 1 to pin 1, check for shorts from pin 1 to anything else.
For example use 2 shift registers.
Outputs come from a TPIC6C595.
Inputs go into a CD74HC165E with pullup resistors on the input signals, or directly into Arduino inputs with just 8 signals.The '6C595 as open drain outputs, so you don't have to worry about shorting highs & lows together.
Turn on one output, it goes low, you check to see if the appropriate input is low (good continuity), high (open), or if low i spotted elsewhere (miswired, or a short).
Highs are provided by internal pullup resistors on the Arduino, or you add pullup resistors on the 74HC165 inputs.
Can you just give us a brief circuit diagram ?
Thanks in advance.
Does this get the idea across? Use SPI.transfer to send data out, then a 2nd SPI.transfer to read the data back in.
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.