I'm using a breadboard with an atmega8 and a UART module to control a lamp by using a relay. Here's how the whole setup looks:
PC -> UART Module -> ATMEGA8 -> TIP120 Transistor -> 9V Relay -> Lamp
The whole setup works flawlessly. But right now all of the wires are relatively short, so the lamp has to be right next to my PC. I want to be able to control the lamp from across the room (or in another room). I want to fix this by using longer wires going from the breadboard to the relay. The relay is a 9V DC SPDT relay with contacts rated at 12A at 120V AC. The lamp is a typical basic lamp with nothing fancy, and a fluorescent 13W bulb at 120V, so that should be 0.1A. Yes I am going to be very careful not to touch the exposed 120V contacts or wires =)
Here's my concern. The relay is supposed to have at least 9V to turn on. It might flip at around 8.5, but it definitely will not turn on at 8.0V. I'm worried that if I use longer wires, it might not be getting the full 9V by the time it gets to the relay. My power supply is a universal AC adapter with a voltage select switch. With the wires I'm using now the relay will turn on with the power supply set to the 9V setting, but the power supply can go up to 12V if needed. The relay's coil resistance is 500ohm (I don't know if that matters or not). Currently I am using 22 gauge solid core wire, and none of the wires are more than 6 inches long.
Would it work to use 22 gauge solid core wire to go approximately 10 feet? Would this cause a voltage drop of more than 3V? Also are there any other possible problems (or dangers) that I have overlooked?