How to stabilize voltage and current in solar power generation