Many range hoods are controlled by touch switches. Using a low-cost single-chip microcomputer (such as PIC16C54) as a range hood controller can achieve better results. In addition to PIC16C54, similar single-chip microcomputers such as MDT2005 from McCann Electronics can be used. As long as a simple conversion program is used, the program of PIC16C54 can be converted into the program of MDT2005, which greatly facilitates the selection of chips. Figure 1 is a range hood controller circuit using PIC16C54, and its functions are as follows: J1 controls the lighting of the range hood. Press AN1 once, LED1 becomes brighter, and relay J1 is energized. Press AN1 again, LED1 goes out, and J1 is released. J2 and J3 control the speed of the range hood fan. Press AN2 once, LED2 becomes brighter, and J2 is energized at the same time. At this time, press AN3 once, LED3 becomes brighter, LED2 goes out, and J3 is energized, and J2 is released. Press AN2 again, LED2 becomes brighter, LED3 goes out, and J2 is energized, and J3 is released. Relays J2 and J3 are interlocked, and only one of them can be closed. AN4 is a switch that controls AN2 and AN3. Press AN4 once, LED4 turns on, and then you can press AN2 and AN3 to control J2 and J3. Press AN4 again, LED4 turns off, and the lit LED2 or LED3 also turns off, and the attracted J2 or J3 is released at the same time. When LED4 is not lit, pressing AN2 or AN3 has no effect, and AN1 is not affected. Figure 2 is the electrical installation diagram of the circuit. Since the circuit controls the motor, the requirements for anti-interference are very high. It can be considered from both circuit and software aspects. In terms of circuit, all circuits are installed on two circuit boards. The microcontroller and buttons are on a small board, which is installed on the panel of the range hood. The relay and power supply are on a larger circuit board, which is installed inside the range hood, and the two boards are connected by a 5-core cable. In terms of software, some backups of the output port registers should be saved in the memory, and comparative analysis should be performed frequently. If it is found that the output port registers are modified by interference signals, the backup data should be used for recovery. Since PIC16C54 has built-in WDT, WDT should be enabled and the clear WDT instruction should be added at the appropriate position of the program. Currently, this controller has been used in many range hoods with good results.