
Figure 1.
System block diagram

Figure 2.
Infrared reflection module

Figure 3.
Connection circuit between IR sensor and STM32

Figure 4.
Rectifier voltage regulator circuit

Figure 5.
Relationship among subroutines

Figure 6.
Brightness detection subroutine

Figure 7.
Human body detection subroutine diagram

Figure 8.
Main program flow

Figure 9.
The photo of the system

Figure 10.
The ambient light is below the set value

Figure 11.
The ambient light intensity is too high