The always-hot wire from the receptacle is spliced to the black wire on the fixture cable, and to a pigtail that connects back to the hot terminal on the receptacle. At the light fixture box, the black is spliced to the black from the switch cable. At the switch box the black wire is connected to the bottom terminal on the new switch.
This diagram is similar to the one above, but the switch comes before the new light in the circuit. New cable is run from the receptacle to the new switch location and from there to the light location. The switch may also be added in the the same box with the receptacle as in the diagrams at this link, where the two are installed in a double-gang electrical box.
It’s not unusual for an old house to have an old doorbell lurking about somewhere that hasn’t worked in years. Fortunately, it’s likely a simple matter to get things back in working order. As illustrated in the above diagram, the parts of an old doorbell circuit include the bell, a button mounted at the door, and a battery somewhere in between the two.
This circuit diagram shows the wiring for a new receptacle outlet connected at a light fixture. The source at the fixture is always hot and a switch loop controls the light. New 2-wire cable runs from the fixture box to the new receptacle and the source hot, neutral, and ground are splice to it along with a pigtail back to the fixture circuit. With this arrangement the new receptacle is always hot.
This arrangement is used for computers and sensitive A/V equipment such as a home theater, to eliminate noise interference in the audio and video output that can be caused by the grounding wires throughout a dwelling’s electrical system.
Here a 2-way push-button switch is wired to a lamp with 2 bulbs. This diagram can be used to rewire an old push-button lamp with a new switch replacement. The hot wire from the cord is connected directly to the black wire on the switch and the neutral is spliced to the neutral contact on each bulb sockets. The red and blue wires from the switch are each connected to the hot contact on one of the bulb sockets.
This diagram illustrates wiring for a circuit breaker with a built-in ground fault circuit interrupter. This 20 amp ground fault interrupter breaker is a form of gfci that can be installed at the circuit source. This kind of circuit is used for dishwashers, whirlpool spas and other locations where water contact is likely.
This diagram illustrates the arrangement for a 20 amp double receptacle circuit with a shared neutral wire. This arrangement is typically used in a kitchen where two appliance circuits are needed in close proximity to each other.