The photovoltaic voltage fluctuates greatly under the influence of light intensity and climatic conditions.In order to adapt to different types of lithium battery charging needs,a photovoltaic charging system is designed.The system adopts a constant voltage and current charging circuit based on XL6019,STM32F103C8T6 is used as the system microprocessor,constant current design is realized by hardware closed loop through compare the current signal and voltage by ACS712 for comparison.The upper machine instructions are used to control the charging voltage and current value to meet the different li...