Design of automatic cycle dimming lamp and design of analog operation circuit