Abstract:The principle of an infrared controller with learning function based on AT89C52 is presented. Some electric circuit diagrams are given and the thought of the program is specified. This infrared controller is suitable for all kinds of devices that need to be controlled by infrared controllers in people's daily life and working hours.