I'm interested in developing a passively-powered circuit that can distinguish Vcc from Vcc with a pull-up. The scenario is this: I have a 4 conductor cable, and I want to make sure it is wired correctly. The four conductors carry: Vcc (+5), two input lines and ground. The input lines are pulled-up to Vcc via >2K resistors.
I could just check resistances with a multi-meter to determine which lines are Vcc, GND and the inputs. However, I'd like to make a circuit I can plug the cable into and have it give me a visual indication of whether or not it is wired correctly. For instance, I can verify that the GND conductor is correct by placing an LED across the assumed "Vcc" and "GND" conductors, and it will light up only if GND is really GND.
So now I only have to distinguish Vcc from Vcc with a pull-up. Any ideas? Also, I'd like the solution to be powered by the cable (i.e. not require its own power.)
Update: I think I just came up with a solution... use 3 LEDS connected as follows:
A ---R--|>|--------R--- D
A ---R--|>|--- B ---R--- D
A ---R--|>|--- C ---R--- D
A, B, C and D are the conductors. R is a 1K resistor and -|>|- is an LED. When all three LEDs light up, then A is Vcc, D is GND and B, C are the signal lines, and this should be the only way all the LEDs can get lit. Also, the resistors provide short-circuit protection.
I could just check resistances with a multi-meter to determine which lines are Vcc, GND and the inputs. However, I'd like to make a circuit I can plug the cable into and have it give me a visual indication of whether or not it is wired correctly. For instance, I can verify that the GND conductor is correct by placing an LED across the assumed "Vcc" and "GND" conductors, and it will light up only if GND is really GND.
So now I only have to distinguish Vcc from Vcc with a pull-up. Any ideas? Also, I'd like the solution to be powered by the cable (i.e. not require its own power.)
Update: I think I just came up with a solution... use 3 LEDS connected as follows:
A ---R--|>|--------R--- D
A ---R--|>|--- B ---R--- D
A ---R--|>|--- C ---R--- D
A, B, C and D are the conductors. R is a 1K resistor and -|>|- is an LED. When all three LEDs light up, then A is Vcc, D is GND and B, C are the signal lines, and this should be the only way all the LEDs can get lit. Also, the resistors provide short-circuit protection.
Last edited: