Here a switch has been added to control an existing receptacle. The switch takes the hot from the middle receptacles. With this arrangement, all the other receptacles are wired directly to the hot source and the switch controls the middle outlet.
This drawing shows the wiring for adding a new light fixture using an always-hot receptacle outlet as the source. New cable is run from the receptacle to the new fixture location and a switch loop cable is run from there to the new switch location.
The neutral and ground wires for the circuit are connected to a bar along the side of the service panel box. The neutral and grounding bars in the box may be separate or, in the case of older service panels, the same bar may be used for both purposes.
A hardwired doorbell includes a small transformer that converts the household alternating current (AC), to direct current (DC) for the doorbell chimes. A small, 16 awg wire runs from the door button to the chimes. When pressed, the button will send the transformer output through the chimes, sounding the bell until it is released.