To improve imaging quality of satellite camera in orbit, the blackbody temperature control system with the FPGA as the core is used. However, the system tends to take up plenty of the limited logic resources of the FPGA chip since it adopts a complex algorithm to control many blackbodies. To cope with such as problem, the paper adopts two approaches to optimize the utilization of logic resources. One is the software modular programming method that adopts a top-down approach to plan out the overall architecture of the software, which can increase code reuse and readability, thereby saving a lot of logic resources. While, the other one is the serial programming method that achieves the temperature control of multiple blackbodies by using only one logic cell of the FPGA chip, greatly increasing the utilization of logic resources. Through comparative study, the paper provides methods to optimize the utilization of FPGA resources and serve as a reference for other similar control systems.