![]() | ![]() | ![]() |
| | |||||||
| Electronic Projects Design/Ideas/Reviews Are you building an electronic project or want to? Maybe you need some assistance? Come and submit your electronic questions here and let our experienced members find a solution. |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) |
| 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. Last edited by pc88; 22nd February 2008 at 08:40 PM. | |
| |
| | (permalink) |
| That would work but you might want to consider bi-colour LEDs which glow red when the current flows in one direction and green when it flows in the other direction.
__________________ I also post at the following sites: http://www.stop-microsoft.org http://www.heated-debates.com Screen name: Aloone_Jonez And http://www.silicontronics.com, same screen name as here. | |
| |
| | (permalink) |
| Well, it almost worked. I had to add a few diodes: A ---R--|>|--------R--- D A ---R--|>|--- B ---R--|>|-- D A ---R--|>|--- C ---R--|>|-- D Otherwise, if A if Vcc and B is GND, all three LEDs would light up. This was an interesting project, and it would make a good 'extra-point' question on a homework set. | |
| |
| | (permalink) |
| Which are the LEDs and which are the diodes? You don't need any diodes, since LEDs can easilly hold-off a reverse voltage of 5V.
__________________ I also post at the following sites: http://www.stop-microsoft.org http://www.heated-debates.com Screen name: Aloone_Jonez And http://www.silicontronics.com, same screen name as here. | |
| |
| | (permalink) |
| The ones near the A terminal are the leds. I had to add the diodes between B,D and C,D because if A is Vcc and B is GND, the current would find a return path through D, i.e.: HTML Code: Vcc = A ---R--|>|--------R--- D
GND = B ---R--- D Last edited by pc88; 24th February 2008 at 05:01 PM. | |
| |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
| | ||||
| Title | Starter | Forum | Replies | Latest |
| Modifying the BCPERS300 ups | pooky | Electronic Projects Design/Ideas/Reviews | 0 | 20th January 2008 10:51 PM |
| push pull transistor | jin29_neci | General Electronics Chat | 4 | 14th August 2005 08:39 PM |
| PIC 16F84A:Internal pull ups | Electrix | Micro Controllers | 5 | 5th May 2005 09:57 PM |
| Pull Down resistor selection ? | 2camjohn | General Electronics Chat | 3 | 3rd January 2005 07:00 PM |
| Weak Pull Up PIC16F628 clarification | Dan East | Micro Controllers | 2 | 2nd August 2004 11:37 PM |