Sure. For a light you need a fixture to hold the light and the light itself. The light needs to be connected to a voltage supply which you can get from the outlet. In the outlet box you will have a black, white and bare ground wire. Essentially you connect the white and bare wires directly to the light and switch the black wire (hot) through a switch.
Assuming that you want the light switched and the outlet unswitched and the supply voltage is in the switch box you do the following. Run the supply directly from the input of the switch to the outlet. Black goes to the copper colored terminal on outlet, white to silver colored terminal and ground to green screw. The white wires for outlet and light can all be wired together using a wirenut. Do the same for the grounds. Then one side of the switch is connected to the black supply and the other side of the switch to the black wire on the light.
Power into the first outlet and out to all other outlets, black to gold and white to silver screw, ground wires to ground screw. From the outlet closest to the light switch run power from that outlet up to the switch box. Run another wire from the switch box up to the light. In the switch box tie all the whites together under a wire nut and push them back into the box. Tie all the ground wires together and connect that to the ground screw on the switch. Connect the 2 black wires you have left to the 2 screws on the switch. Does not matter which if you only have power in and power out to the light.
The ground wire must remain connected to the box. The frame of the switch, and therefore also the screws, must remain connected to the box as well.
How do you hook up a light to an electrical outlet
Plug a lamp into a working socket of an outlet to ensure the lamp works. Then turn off the switch and plug lamp into all outlet sockets, top and bottom outlets until the lamp doesn't light. Then turn on the switch and the lamp should light. Often a switch in a bedroom is only connected to one socket in a duplex outlet. It is possible to remove a jumper in an outlet to isolate the sockets for just this purpose. Often an electrician will install the outlet upside down (The third prong pointing up, to identify the outlet.
Connect the incoming power to the line side of the GFCi outlet. Now run another wire connected to the line side of the GFCI outlet from the GFCI outlet to the switches. Power one of the switches and use that switch to turn on the 2 lights. Run power from that switch to another switch and use that switch to send power to the fan. Mount both switches in a double pole switch box. If the light above the sink has an outlet on it then you will have to connect power going to that light on the load side of the GFCI outlet. If not then just connect it to the line side.
The supply black (Hot) wire from the outlet feeds each switch (attach two pigtail black wires from the outlet black wire). The other side of each switch goes to the load. The three white wires (Neutral) get connected together (1 from outlet and 1 from each load). The three bare wires (ground) also are connected together.
How do I connect a wall light switch that has 3 terminals, the third being for the ground wire. Which terminal should be connected to power coming from the breaker box?
Could be a loose connection somewhere, or a bad switch, or a bad outlet.
Connect the incoming power wire and the outgoing power wire going to the light switch to the line side of the GFCI outlet. This will protect the outlet and will not turn off power to the light if the GFCI trips.
You need to take a new wire into the outlet and to your new switch box. Black (hot) to black and white (neutral) to white Also splice the ground wire through. In the switch box you'll have your new wire from the outlet and a wire going out to the new light. Incoming black wire to one terminal on the switch and the black wire going to the light on the other terminal. The neutral wires get spliced together.
Turn the breaker off sending power to this circuit. Just run power from the outlet up to the light switch box using a 12/2 or 14/2 wire. Now run a 12/2 or 14/2 wire from the light switch box up to the light. In the light switch box tie all the white wires together and push them in the back of the box. Connect all the ground wires together and connect that to the green screw on the light switch. Connect the black wire coming from the outlet to one of the screws on the light switch. Now connect the black wire coming from the light to the other screw on the light switch. Turn your breaker back on and this will control your lite.
To control a light with a switch, the switch has to be connected in series with the light fixture.
A single pole switch controls a light or outlet at one location. A 3 way switch controls a light or outlet from 2 locations.
Some rooms have an outlet controlled by a light switch at the door. This is normally in bedrooms. It is possible that the switch is wired to only one of two outlets in a duplex outlet since it is easy to configure a duplex outlet to separate the bottom and top outlets.
In a three-way switch arrangement, one switch should have its black terminal (screw) connected to the line source, and the others black terminal to the load. If the circuit neutral is present in the box housing the line connected switch (somewhat rare), then you can simply tap the line conductor from the switch and attach line, neutral and ground to the current tap. If there is no neutral present, then rewiring would be required.
Simply run a wire from that outlet to that wall switch. Be sure you use the exact same wire size that you find in that outlet. It will be AWG 12/2 or 14/2. Do not mixes wire sizes. Connect the ground to green ground screw at outlet, and white wire to silver screw, and black wire to gold screw. At the light switch connect all white wires together under a wire nut and push them back into the box. Connect the ground wire to the green ground screw on the switch. Now connect the 2 black wires you have left, power in and power out, to the 2 screws on the switch. Does not matter which wires you connect to the 2 screws.
Change the wall outlets
you must have to much of a load on the outlet or didnt tighten the screws holding the wires tight enough , it should not go out that quickly. if you want to wire it for recess you first have to check if you can get to the location in the attic above the switch. and you need to be able to fish a wire down to the switch up to the recesed lite. which sometimes is not the easiest job to do , better to just call in the electrician for this job
Bring power into the light switch box 12/2 or 14/2 wire depending on the existing wire. Make sure you use the exactly same size wire that is used on that circuit. If you do not know look at the breaker in the main panel that controls power to that circuit. 20 amp will be 12/2 wire and 15 amp will be 14/2 wire. Now run another wire from the switch box out to the outlet. Inside the switch box, strip both white wires back 3/4" and connect them together under a wire nut and push this back into the box. Connect the 2 ground wires together and then connect that to the ground screw on the switch. You now have 2 black wires left. Connect them to the 2 screws on the light switch. Does not matter which black wire you connect to which screw. At the outlet connect the ground wire to the green ground screw, black wire to copper screw, and white wire to silver screw. That outlet will now be controlled by the light switch.
In residential wiring, assuming power to the light is being supplied at the switch box, the white wires are all tied together and pushed back into the switch box. If you are using a switch leg where power is in the ceiling box and not in the switch box you will have 2 wires + ground coming from the ceiling to the switch box and both the white and black are connected to the switch, either screw, and the ground is connected to the ground screw. <<>> If the white wire is connected to the switch, the electrical code requires that it be identified as a current carrying conductor. This is done by identifying the conductor by a wrap of black tape. This is required on both ends of the conductor. This is a safety precaution to let anyone that services the switch in the future that the conductor is not a neutral.
You can attach/splice into the power feed to outlet (ways of doing this can vary with how the outlet is wired but make sure that all or part of the outlet isn't controlled by an existing switch). You can then take the hot, neutral and ground to a light fixture or to the first switch, then to the second switch. It is normally easier to do this project by taking power to the light (s) first, with 2 wire drops to the switches, from basement or attic.
Generally with a cord and just plugged in.