In some ways wiring on boats is similar to wiring on RVs, but there are also some very important differences. One that is often overlooked but is very important is the need to use Marine Grade wire in all marine applications. Another is the need to waterproof connections. Also, most RVs use only 12 volt DC systems for the living quarters. Boats may use 12, 24, or even 48 volt DC systems.
Marine grade wire. The high humidity and often, exposure to salt air, demands the wire itself be specially designed for the marine environment. Marine wiring will typically have more, smaller copper strands than automotive wiring of the same gauge. Each strand will also be tinned. Using ordinary copper wiring on a boat is asking for trouble. I had to completely rewire our 24' sailboat because some previous owner (perhaps even the factory!) had wired it with zip cord! I understand that zip cord is readily available, inexpensive, and easy to work with, but it corrodes way too easily to last very long in a marine environment. That being said it might have already lasted nearly 50 years since my boat was that old so for short term use it might not be quite such an issue. Virtually all the connections were badly corroded and crumbling. Several connections had literally turned to dust! Fortunately, it didn't cause a fire, but virtually none of the fixtures or connections were functional and none could be salvaged.
Waterproof connections are needed to prevent moisture from accelerating corrosion where wires are joined to connected to fixtures. The first step is to solder all joints rather than using crimp terminals. Then use heat-shrink tubing or coat the joint with a liquid sealer like that used to dip handles of hand tools. Wrapping joints with electrical tape is perhaps better than nothing, but usually doesn't completely seal out the ever-present moisture in marine environments. Moisture will eventually find its way through even the tightest tape windings. I recently saw a Youtube showing hot to waterproof a wire connection by rolling the connection in the melted plastic from a milk bottle cap. Just melt one edge of the rim of the cap using a lighter or blowtorch and roll the connection in the melted plastic until all the naked metal is covered and sealed over the remaining insulation.
Like RVs, boats may have two or more wiring systems. Power boats will have a wiring system for the engine, including instruments and controls. Small pleasure boats may have a low-voltage (usually 12 or 24 volts) DC system for lights and some communications equipment. Larger boats sometimes use a 48 volt DC system and may have an onboard generator or batteries and an inverter to power 120 volt AC systems to support residential style lights, outlets, and appliances. The 120 volt wiring systems will normally conform to stringent marine codes that are typically an enhancement of residential wiring codes. Older DC systems will probably use red conductors for positive and black conductors for negative lines just like homes and RVs. Because of the potential confusion between black for negative DC and black for hot AC lines, newer marine systems use a yellow conductor for negative DC lines. Of course the electricity doesn't care what color the insulation is so any color wire will carry the current, but the electrician who works on it (whether is is you or someone who comes after you) will care so try to adhere to the normal conventions. It will avoid future problems.
Because boats are often made of wood or fiberglass it is mandatory that every fixture has a ground wire and that the ground connections are clean and secure. A loose or corroded connection will cause performance problems such as dim, intermittent or flickering lights. They might also cause arcing which could cause a fire or, if fuel fumes are present, even an explosion! Land based motor vehicles usually have a metal frame which can serve as a ground, but wooden and fiberglass boats need separate ground wires to every fixture or appliance.
For durability as well as convenience and a good appearance when running wiring, use multi-conductor cable rather than running 2 or more individual lines. It will be quicker and easier to install and will give a more finished appearance and will be less subject to wear from being rubbed. The additional insulation surrounding the combined conductors also provides extra protection against moisture and abrasions that could cause a short giving an extra measure of safety and longevity.
Navigation lights are critical on a boat. You never know when you might be caught out after dark, even if you usually plan on being off the water well before sundown. It is especially important that wiring for navigation lights is robust and won't succumb to corrosion and leave you dark when you need it most. Modern LED navigation lights consume much less electricity than older incandescent lights and the LED bulbs last for thousands of hours. With proper wiring you should be able to count on your LED navigation lights for many years. There are three primary navigation lights: red, visible from the port side; green visible from the starboard side; and white, visible from the rear. Some combination red/green lights are also visible from the front. Another light often required is a 360 degree white light mounted high above the navigation lights for a boat at anchor. On a sailboat it is usually mounted on the top of the mast. Note: some inexpensive LED lights create radio interference if mounted near antennas, radio cables, or electronic equipment, If mounting LED lights where radio interference might be a problem go for the more expensive lights that are RF protected.
Like most jobs, having the right tools will make things easier and make better connections. While it is possible to strip insulation from wire using a knife, a wire stripper is faster, safer, and does a better job. If you are using crimp terminals anywhere you will need a wire crimper. I've seen folks try using pliers and it just doesn't work! You really need the indentation crimpers make to form a good connection. Just smashing the two sides of the terminal together with pliers will let the wire slip out if there is ever any tension on the wire at all. A good soldering iron is also very useful. Soldered connections will be sturdier and less susceptible to marine corrosion than crimped connections, making them last longer and less likely come apart or to cause a short or a fire!
If you have a sailboat, I recommend pulling some extra wire through the mast when you have the mast down. Or at least leave yourself a pull string for future use. You may need to install or repair an anchor light or steaming light and it is a LOT easier to pull wire when the mast is down instead of having to climb the mast. You may need to add a light or need to change wires if existing wiring gets damaged. Of course, check all the lights when the mast is down to be sure they will work when you are out on the water. If you plan to add or update any lighting, do it when you have the mast down. The previous owner of my sailboat left an extra pull string in the mast I can use when I need to pull more wire. When I use it I plan to pull another string in case I need one again.
When running wires in the mast you may need to install them in a conduit. This is essential if your halyards are run inside the mast. It also protects the wires against chafing and helps silence noise from the banging around inside the mast which can be really annoying if your boat is rocking when you are trying to sleep. You can also use foam pipe insulation or a pool noodle to cushion the wiring if your halyards run outside the mast. If you use them where halyards run inside the mast make sure they don't crowd the halyards. Cushioning is usually most important near each end of the mast where there mounting hardware intrudes where wires could rub and where the wires are usually pulled close to the edge of the mast.
For added safety and protection against moisture, use heat shrink tubing on all joints. It can even be used over wire nuts to help seal them. Of course, it is better to use soldered connections than wire nuts in a marine environment but there may be some places, like interior cabin lights, where you might want to use wire nuts to facilitate future lighting changes. In many automotive and even RV applications you can get away with using wire nuts or just twisting wires together and wrapping the joint with electrical tape. In a marine environment is is better to solder the joints and secure them with heat shrink tubing. Twisted and taped joints or wire nut connections are more likely to absorb moisture and corrode. You might also seal them with the kind of plastic dip used to coat tool handles. You want to make sure NO moisture gets into the joints!
120 volt AC systems on a boat must always be protected by Equipment Leakage Circuit Interrupters (ELCI) and Ground Fault Circuit Interrupters (GFCI). It doesn't matter whether the power is coming from a shore cable or from on onboard source, such as a generator or battery banks and inverter and/or solar panel. Any failure in the electrical system can put both the people on the boat and any nearby swimmers at risk for their lives! While people on the boat may experience a fatal or non-fatal shock, swimmers could receive a paralyzing dose of electricity and drown immediately due to involuntary loss of muscle control. Even on the soundest boats, water sometimes puddles in the cockpit or bilge and creates hazards we don't normally face on land or in RVs. It would always be a good idea to enlist the services or at least seek the advice of a qualified marine electrician when installing or modifying 120 volt electrical components on your boat.
Shore power cords for boats differ from shore power cords for RVs. They have water-proof, twist lock connectors. The twist lock connectors are required to prevent accidental disconnects from movement of the boat while docked. Even when docked boats can move quite a bit due to tides, currents, and wind. You don't want a live power cord falling off into the water! The water-proof requirement is pretty much self-explanatory for something plugged into a receptacle on a dock next to or floating on the water and exposed to rain. If a power cord should come disconnected and fall into the water it may cause an electrocution hazard for anyone in contact with the water nearby. Always use extra caution when connecting or disconnection shore power. Any shore power sources SHOULD have their own ELCI and GFCI protection. If they don't, lodge a complaint with the marina and avoid using them until they are brought into compliance before someone gets electrocuted!
Power up!