One of the dangers associated with DIY electrical work is that you can easily violate an electrical code. Here are some of the common code violations DIY electricians make.

Using the Wrong Circuit Breaker

Circuit breakers are electrical devices for breaking the flow of power when there is a circuit overload; most people know this. What many people don't know is that there are different types of circuit breakers, and electrical code determines which one to use at which location. Here are the three main types of circuit breakers:

Standard Circuit Breakers

These are mostly meant for protecting electrical wiring and equipment from damage in case of current overload. They are used for protecting equipment such as air conditioners and stoves.

Ground Fault Circuit Interrupter

GFCI breakers are meant to protect people from shocks or electrocution, especially in wet areas where electricity may come into contact. That is why they are used 

Arc Fault Circuit Interrupter

AFCI is meant to protect you from electrical faults and dangers preceded by electrical arcs or sparks. They are used in places where arcs or sparks are likely to occur, which means places where cables are likely to be damaged.

Using the Wrong Cover on Outdoor Receptacles

Ideally, you are meant to unplug electrical cords from outdoor outlets immediately you stop using them, but people don't always do this. This means the outlets remain exposed for extended periods, exposing them to the risk of moisture damage, which may cause malfunctions, shock or fire. For this reason, most jurisdictions have electrical codes that require the use of in-use covers for outdoor outlets; these are covers that protect these outlets even when they are in use.

Crowding the Service Panel

The electrical panel should be installed in a spacious place with adequate space for anyone that may work on it after that. Making connections to the panel or repairing the panel should have enough space to move and use their tools without endangering the installation or themselves. Therefore, installing the panel in a crowded or tight place that is barely accessible is a code violation.

Installing Too Few Receptacles

Installing too few electrical codes is dangerous because it leads to overcrowding of the few existing outlets. There is also a danger of using an extension cord on a permanent basis if you don't have enough outlets, and this is also dangerous. This is why electrical codes specify the number of outlets needed in each location.  

You can avoid all the above violations by only undertaking work you are absolutely sure is safe and follows all the electrical codes. The rest of your power needs should be handled by professional electrical services contractors.