A control box for a sprinkler or irrigation systems has a housing with a base and a set of sidewalls. A cover is removably secured to the housing. A solar panel is positioned on the cover. One or more rechargeable batteries are stored in the housing that are recharged by the solar panel. A control module is powered by the one or more rechargeable batteries. The control module is configured to generate control signals that actuate one or more flow control valves in the sprinkler or irrigation system.