An electrical sub-panel is a secondary circuit breaker ... Detached structures served by a sub-panel need two grounding rods ...