Design of control module circuit
Circuit principle:The control module circuit is shown in Figure 7. K1, K2, K3, K4, each button can send different address control commands through the pre setting of the chip. For example, when K1 is set to trigger, the chip sends B1 on command to the power line, and when K1 is pressed, the module sends B on command_ Command, the switch of the corresponding lighting circuit of the receiving module with address B1 will be closed and the light will be turned on. When K2 is set to trigger, the chip sends the B1 off command to the power line. When K2 is pressed, the module sends the B1 off command. The switch of the corresponding lighting circuit of the receiving module with address B1 will turn on and the light will turn off. The 10 and 11 pins of the chip are connected to PC or MCU for communication, which can complete the functions of sending control commands and setting module chips.
Figure 7 control module circuit
Illumination sensor control circuit
The illumination sensor adopts on9668, which is a photoelectric integrated sensor with adjustable light control threshold. The circuit is shown in Figure 8 and Figure 9. The buttons K1, K2, K3 and K4 in the control module circuit are replaced by the illumination sensor circuit, and the 5, 6, 7 and 8 pins of the chip plcbus-9402393 are connected with an illumination sensor respectively. When the ambient brightness reaches the setting value of the illuminance sensor uadj, the out pin outputs high or low level, and the out pin is connected with a monostable trigger. In this way, the pulse signal is output from the Q end and input to the 5, 6, 7 and 8 ends of the plcbus-9402393 chip pin, which is equivalent to any key K1, K2, K3 and K4 of the trigger control module circuit, and the corresponding control command can be issued.
Figure 8 shows the circuit of sending trigger pulse when the ambient illumination is greater than the set value, and Figure 9 shows the circuit of sending trigger pulse when the ambient illumination is lower than the set value.
Figure 8 control circuit of illumination sensor (1)