Abstract:Aiming at the shortcomings of the existing anti-pinhole camera with single function, low recognition accuracy, and low real-time performance, an experimental system of anti- pinhole camera device was designed. The system uses a four-quadrant infrared detector to expand the detection area. Based on the autonomous division of the area, the detection results are transmitted to the supporting APP through STM32 microcontroller, which is convenient for users to view the results in real time. Meanwhile, the WiFi module of ESP8266 is used to attack the network connected to the camera to block data transmission and ensure privacy security of users. Through this experiment, students have a deep understanding of detection technology and other related theories, and are familiar with the development process using single chip microcomputer, so as to improve their learning and practical ability of solving practical problems.