The independent micro-grid with photovoltaic and energy storage has the problems of unknown line resistance, large load fluctuation, large control voltage error and poor application stability. In order to solve these problems, big data mining technology is applied to the design of control algorithm, which helps to achieve the coordinated control of the independent micro-grid. Firstly, the discrete consistency controller is constructed as the implementation medium of the control algorithm, and the photovoltaic cell, energy storage unit and DC-DC converter are combined to obtain the independent micro-grid model. In this model, mining the data of the independent micro-grid, and the micro-grid operation mode is determined by the data. According to different operation modes, the goal and constraints of the coordinated control are set, and the coordinated control mode is selected. The coordinated control of the independent micro-grid with PV and energy storage is realized from three aspects: photovoltaic unit, energy storage unit and operation mode switching. Through the comparison with the traditional control algorithm, it is concluded that under the grid connected condition, the control error of the grid voltage can be effectively reduced by applying the designed control discrete algorithm, and the control error can be reduced by 2 V under the island condition.