NOVELTY - A porphyrinpyrrole copolymer comprises carbazole amino substituted compound (I).    USE - Carbazole-containing porphyrinpyrrole copolymer for an organic solar battery device (claimed).    ADVANTAGE - The copolymer enhances solubility and film forming property by introducing into long-chain alkyl. The copolymer regulates and controls light absorption range of the pyrrolopyrrole dione so as to provide wide application range.    DETAILED DESCRIPTION - A porphyrinpyrrolopyrrole copolymer comprises carbazole amino substituted compound of formula (I).    n=1-100;and    R1-R4=1-32 alkyl, phenyl, 1-32 alkylbenzene or alkoxy benzene.    INDEPENDENT CLAIMS are also included for the following:    (1) a method for preparing porphyrinpyrrole copolymer, which involves providing 5,15-dibromo-10,20-alkyl carbazole porphyrin of formula (A) and (4,4,5,5-tetramethyl-1,3,2-dioxa pentaborane)substituted 3,6-di-para-bromobenzene pyrrolopyrrole dione of formula (B) in an anaerobic environment in presence of a catalyst and organic solvent. The 5,15-dibromo-10,20-alkyl carbazole porphyrin and (4,4,5,5-tetramethyl-1,3,2-dioxa pentaborane)substituted 3,6-di-parabromobenzene pyrrolopyrrole dione are subjected to Suzuki coupling reaction for preparing solution of carbazole-containing porphyrin-pyrrolopyrrole copolymer. Copolymer solution of the carbazole-containing porphyrin-pyrrolopyrrole copolymer is dripped into methanol for settling. The mixture is filtered, washed by methanol, and dried for obtaining impurity-containing copolymer colloid. The mixture is dissolved by toluene for obtaining toluene solution of the copolymer. The toluene solution is added into aqueous solution of diethyl sodium dithiocarbamate. The mixture is heated and stirred at 80-100 degrees C. The mixed solution is subjected to alumina column chromatography to separate out the copolymer. The mixture is rinsed by chlorobenzene and decompressed for removing the organic solvent. Soxhlet extraction is performed for extracting the copolymer via acetone for obtaining the copolymer solid of the porphyrinpyrrole copolymer comprising carbazole amino substituted compound (I)    (2) an organic solar battery device, which comprises a substrate, a conductive layer deposited on one surface of the substrate and serves as an anode, a poly(3,4-ethylidene-dioxythiophene):poly(styrene sulfonic acid) layer coated on the surface of the conductive layer for decorating, an active layer coated on the surface of the poly(3,4-ethylidenedioxy-thiophene):poly(styrene sulfonic acid) layer, and a metal aluminum layer that is arranged on the surface of the active layer, and serves as a cathode, where the material of the active layer is a mixture, comprising an electron acceptor material taking (6,6)phenylC61-methyl butyrate as a material and an electron donor material taking the carbazole-containing porphyrinpyrrole copolymer as a material    (3) an organic electroluminescent device, which comprises a substrate, a conductive layer deposited on one surface of the substrate and serves as an anode, a light-emitting layer coated on the conductive layer, a buffer layer coated on the light emitting layer and takes lithium fluoride as a material, and a metal aluminum layer, which is arranged on the buffer layer and serves as a cathode, where the light-emitting layer takes the carbazole-containing porphyrinpyrrolopyrrole copolymer as a material    (4) an organic field effect transistor device, which comprises a doped silicon sheet, a silicon di oxide insulation layer, an octadecyl trichlorosilane layer for decorating, an organic semiconductor layer coated on the octadecyl trichlorosilane layer, a source electrode and a leakage electrode, which are arranged on the organic semiconductor layer at intervals, where the organic semiconductor layer takes the carbazole-containing porphyrin-pyrrolopyrrole copolymer as a material.    DESCRIPTION OF DRAWING(S) - The drawing shows a schematic view illustrating a method for preparing carbazole-containing porphyrinpyrrolopyrrole copolymer.'(Drawing includes non-English language text)'