This link takes you to a free download available of the NEC as it relates to solar electric power projects. If you are really going to generate power, you need to do it safely. And there is a reason the code provisions exist.
http://www.nmsu.edu/~tdi/Photovoltaics/Codes-Stds/PVnecSugPract.html
