>The reason I split the current limiting resistors for the LED was to provide >some protection to the PIC for Electro-Static discharge and short circuits >in the cable. To fulfil these requirement, they MUST be located at the PIC. >And for ease of assembly, the other resistors should be there as well I'd >assume. I don't think you'll get any benefit moving them to the end of the >cable. >Roman, this is the circuit I posted: 120 > PIN1 >-----------/\/\/\--, > | > 10K Bi Colour LED > Vcc >--/\/\/\-, | > | 120 | > PIN2 >---------+-/\/\/\--+ > | > 0 | > 0 | Switch > 4.7K | > GND >--/\/\/\-----------' As the original poster was talking in terms of using twin screened cable for the connection to the front panel, I would be tempted to have the 4k7 resistor on the panel so the shield of the cable was connected to ground, rather than having a significant impedance to ground through the resistor. My only other comment would be that the 10k could go to the other side of the 120 ohm resistor if this gave more freedom in the PCB layout. Otherwise the suggestions about lowering the value of the 4k7 are quite valid, a 10:1 ratio between the Vcc and Gnd resistors would be about right. For a system wanting lower power consumption it may be practical to go for 100k/10k. -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads