Things You'll Need
Instructions
Cut four 3-inch pieces of the 22-gauge wire and strip a half-inch of insulation from each end. Slip the end of one wire through the potentiometer's center solder lug. Feed the wire through one end solder lug. This will leave one unoccupied end lug.
Crimp the end of the wire onto the end lug with the long-nose pliers. Solder the wire to the center and end lugs. Feed one end of the second wire through the remaining end solder lug. Crimp and solder the wire.
Crimp and solder the end of the third wire to one of the relay's coil pins. Crimp and solder the end of the fourth wire to the remaining relay coil pin.
Insert the base, collector and emitter leads of the BXP43 phototransistor through adjacent holes in the perfboard. Feed one wire from the potentiometer through a hole near the transistor's collector lead. Crimp this connection but do not solder it yet.
Insert the base lead of the 2N3904 NPN transistor near the BXP43's collector lead. Crimp this connection and solder the wires. Feed the 2N3904's collector and emitter leads through nearby holes in the perfboard. Feed one wire from the relay through a perfboard hole near the 2N3904's emitter lead. Crimp and solder the connection. Feed the other relay wire through a hole near the BXP43's emitter lead. Crimp this connection and solder it.
Feed the remaining wire from the potentiometer near the 2N3904's collector lead. Crimp the connection. Insert the positive (red) wire of the 9-volt battery clip near the 2N3904's collector lead. Crimp and solder the wires at this connection. Insert the negative (black) wire of the battery clip near the BXP43's emitter lead. Crimp and solder the connection.
Snap a 9-volt battery into the connector. Turn the potentiometer knob. You should hear the relay click on and off as you turn the knob up and down. Adjust the knob so the relay stays on. Pass your hand over the phototransistor's lens to block the light. You should hear the relay click on and off as light and shadow triggers the phototransistor.