This study takes advantage of the natural plant dwarf morning glory. It may be able to use in solar photovoltaic technology. The experimental results indicated that the dwarf morning glory flower dye has an absorption peak of 657 nm. The manufactured dye-battery has be obvious, a maximum current of 4.7 × 10−3 (A/cm2) and a maximum voltage of 0.27 V and a conversion efficiency of 1.27 %. The yield of hydrogen generation can reach to 3.14 × 10−05 (l/s m2).