CN109890114A - A kind of light-intensity test control device - Google Patents

A kind of light-intensity test control device Download PDF

Info

Publication number
CN109890114A
CN109890114A CN201910299503.6A CN201910299503A CN109890114A CN 109890114 A CN109890114 A CN 109890114A CN 201910299503 A CN201910299503 A CN 201910299503A CN 109890114 A CN109890114 A CN 109890114A
Authority
CN
China
Prior art keywords
pin
circuit
light
module
control device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910299503.6A
Other languages
Chinese (zh)
Inventor
苏蓓蓓
阚永恒
杜亮
丁兰华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuxi Professional College of Science and Technology
Original Assignee
Wuxi Professional College of Science and Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuxi Professional College of Science and Technology filed Critical Wuxi Professional College of Science and Technology
Priority to CN201910299503.6A priority Critical patent/CN109890114A/en
Publication of CN109890114A publication Critical patent/CN109890114A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Abstract

The present invention provides a kind of light-intensity test control devices, comprising: communication module, control processing circuit, one-chip computer module, light sensor module and power supply module;One-chip computer module is made of single-chip minimum system and program download circuit P2;Control processing circuit is made of key circuit and control relay circuit;The real-time light intensity Data Concurrent of light sensor module acquisition environment is sent to one-chip computer module, is compared by real-time light intensity data of the one-chip computer module to environment with light intensity given threshold, to determine whether to execute conducting or closed procedure by control processing circuit.A kind of disclosed light-intensity test control device realizes the technical effect of the light intensity automatic switching of lighting device according to environment, while can also be by the operation of client executing switch lighting device, and realizes and carry out centralized control to multiple lighting devices.

Description

A kind of light-intensity test control device
Technical field
The present invention relates to signal light control technical field of electronic equipment more particularly to a kind of light-intensity test control devices.
Background technique
In actual life and work, many occasions need to detect intensity of illumination, and according to the value of intensity of illumination, take Corresponding control measure.If not will result in many unnecessary wastes, or even produce to the accurate detection and control of light intensity It is raw dangerous.Such as in the road lamp management in city, usual technological means is timing controlled in the prior art, specially at dusk to one Fixed setting time energization is turned on light, and turn off the light in the morning to certain setting time power-off.
Due to there are several factors such as the variations of the variation of daytime in four seasons length, weather, daily day is dark and daybreak when Between be all it is unfixed, the energization and power-off of control street lamp are gone according to the time, not only can be because of turning on light or turn off the light too late and make too early At the waste of electric power resource, and it may be because to turn on light or turn off the light too late too early and cause motor vehicle that road traffic accident occurs.In addition, In addition to the road lamp management in city, market, tunnel, the occasions such as greenhouse corps are also required to light-intensity test control and to lighting apparatus The control for being powered and being powered off.Although also there is using optical sensor the report for detecting light intensity in the prior art, Still it is had some limitations in adaptability.
In view of this, it is necessary to light-intensity test control device in the prior art be improved, to solve the above problems.
Summary of the invention
It is an object of the invention to disclose a kind of light-intensity test control device, shine to realize in indoor and outdoor place Bright lighting device carries out the device of light-intensity test and self adaptive control, with realization to the real-time detection of light intensity and to lighting device The automatic control for being powered and being powered off, while realizing remote automatic control, in order to be concentrated to multiple lighting devices Control.
To achieve the above object, the present invention provides a kind of light-intensity test control devices, comprising:
Communication module, control processing circuit, one-chip computer module, light sensor module, and for communication module, at control Manage the power supply module of circuit, one-chip computer module and light sensor module power supply;
The power supply module turns from self-locking key switch S1, to the first voltage of one-chip computer module output 3.3V operating voltage Change circuit U 1 and the second voltage conversion circuit U4 composition to communication module output 3.3V operating voltage;
The one-chip computer module is made of single-chip minimum system and program download circuit P2;
The control processing circuit is made of key circuit and control relay circuit;
The real-time light intensity Data Concurrent of the light sensor module acquisition environment is sent to one-chip computer module, passes through single-chip microcontroller Module is compared with light intensity given threshold, to determine whether to execute conducting or closed procedure by control processing circuit.
As a further improvement of the present invention, the light-intensity test control device further include: established with communication module wireless The client of communication;
The client is selected from host computer or application program.
As a further improvement of the present invention, the single-chip minimum system includes the list of model STM32F103C8T6 Piece machine U3, clock circuit and reset circuit.
As a further improvement of the present invention, the light sensor module is selected from BH1750 optical sensor;
The BH1750 optical sensor by the real-time light intensity data of environment be sent to PA4 pin that single-chip microcontroller U3 is configured with PA5 pin.
As a further improvement of the present invention, the operating voltage input pin of the STM32F103C8T6 chip and GND are managed Isolation capacitance is set between foot.
As a further improvement of the present invention, the control processing circuit is by two groups of independent key circuits and relay control Circuit composition processed.
As a further improvement of the present invention, the control relay circuit includes: relay, freewheeling diode, three poles Pipe, the first current-limiting resistance and warning circuit;
One end of relay connects external power supply, the collector of the other end connecting triode of relay, the base of triode Pole connects the first current-limiting resistance and connect with one-chip computer module, the emitter ground connection of triode;
The freewheeling diode is connected between external power supply and the collector of triode, and in the freewheeling diode Circuit taking alarm by both ends;
The warning circuit is made of concatenated light emitting diode and the second current-limiting resistance.
As a further improvement of the present invention, the communication module using model ESP8266 WIFI module U2, it is described The reset terminal of ESP8266 chip is connect with the reset circuit of single-chip microcontroller U3.
As a further improvement of the present invention, the light-intensity test control device further include: program download circuit P2;
Described program download circuit P2 configures PA9 pin, PA10 pin and BOOT0 pin;
The PA9 pin and PA10 pin connect with the USART1_TX pin of single-chip microcontroller U3 and USART11_RX pin respectively It connects, to be written or be modified in single-chip microcontroller U3 based on serial port protocol to single-chip microcontroller U3 by the PA9 pin and PA10 pin Light intensity given threshold.
As a further improvement of the present invention, the light-intensity test control device further include: connect with WIFI module U2 Firmware update circuit P3;
The firmware update circuit P3 configuration PA2 pin, PA3 pin, CH_PD pin and GPIO0 pin, the PA2 pipe Foot is connect with the TXD pin of WIFI module U2 and RXD pin respectively with PA3 pin, and passes through CH_PD pin and GPIO0 pin Firmware refreshing is carried out to WIFI module U2.
Compared with prior art, the beneficial effects of the present invention are:
Disclosed a kind of light-intensity test control device, by one-chip computer module to the real-time light intensity data of environment It is compared with light intensity given threshold, to determine whether to execute conducting or closed procedure by control processing circuit, to realize According to the technical effect of the light intensity automatic switching of lighting device of environment, while client executing switch lighting device can also be passed through Operation, and realize and centralized control is carried out to multiple lighting devices.
Detailed description of the invention
Fig. 1 is a kind of system diagram of light-intensity test control device of the present invention;
Fig. 2 is the circuit diagram of the self-locking key switch S1 in power supply module;
Fig. 3 is the circuit diagram of the first voltage conversion circuit U1 in power supply module;
Fig. 4 is the circuit diagram of the second voltage conversion circuit U4 in power supply module;
Fig. 5 is the circuit diagram of light sensor module;
Fig. 6 is the circuit diagram of single-chip minimum system in one-chip computer module;
Fig. 7 is the circuit diagram of program download circuit P2 in one-chip computer module;
Fig. 8 is the circuit diagram for the firmware update circuit P3 connecting with communication module;
Fig. 9 is the circuit diagram for controlling the key circuit in processing circuit;
Figure 10 is the circuit diagram for controlling the control relay circuit in processing circuit;
Figure 11 is the circuit diagram of communication module;
Figure 12 is the circuit diagram of the spare key circuit of control duplicate relay control circuit as illustrated in FIG. 11;
Figure 13 is the circuit diagram for controlling the duplicate relay control circuit in processing circuit.
Specific embodiment
The present invention is described in detail for each embodiment shown in reference to the accompanying drawing, but it should be stated that, these Embodiment is not limitation of the present invention, those of ordinary skill in the art according to these embodiments made by function, method, Or equivalent transformation or substitution in structure, all belong to the scope of protection of the present invention within.
Before carrying out following " specific embodiment ", the certain words and phrase used through this patent document are illustrated Definition may be advantageous: term " includes " and "comprising" and its derivative mean to include but do not limit;Term "or" is packet Containing property, mean and/or;Phrase " to ... it is related " and " associated with it " and its derivative can indicate include including Inside, with ... interconnect, include, be included, be connected to or with ... be connected or coupled to or with ... couple, with ... Communication, with ... cooperate, interlock, juxtaposition, approach, being tied to or with ... bind, have, the attribute having ... etc.;And Term " controller " means to control any equipment of at least one operation, system or part thereof, such equipment can with hardware, Firmware or software or in which at least two some combinations are realized.It should be noted that function relevant to any specific controller Property can be centralization or distributed, either local mode or long-range mode.
Embodiment one:
It please join a kind of a kind of specific embodiment of light-intensity test control device 100 of the present invention shown by Fig. 1 to Figure 11.
As shown in Figure 1, in the present embodiment, a kind of light-intensity test control device 100, comprising: communication module 5, control Processing circuit 4, one-chip computer module 3, light sensor module 2, and be communication module 5, control processing circuit 4, single-chip microcontroller mould The power supply module 1 that block 3 and light sensor module 2 are powered.Power supply module 1 is from self-locking key switch S1, defeated to one-chip computer module 3 The first voltage conversion circuit U1 of+3.3V operating voltage and the second voltage turn to the output 3.3V operating voltage of communication module 5 out Change circuit U 4 to form.One-chip computer module 3 is made of single-chip minimum system and program download circuit P2.Control processing circuit 4 by Key circuit and control relay circuit composition.The real-time light intensity Data Concurrent that light sensor module 2 acquires environment is sent to list Piece machine module 3, is compared by real-time light intensity data of the one-chip computer module 3 to environment with light intensity given threshold, is with determination It is no that conducting or closed procedure are executed by control processing circuit 4.
Specifically, in the present embodiment, self-locking key switch S1 forms four electric shocks, wherein two touchings shown in ginseng Fig. 2 Electrical ground, other two contact are separately connected the external power supply and first voltage conversion circuit U1 and second voltage conversion circuit of 5V The end VCC of U4 connects.
VCC indicates external power supply, and size is 5V (direct current), and external power supply can be mentioned by Switching Power Supply or USB power supply For.After self-locking key switch S1 is connected, entire light-intensity test control device 100 is powered on.Due to one-chip computer module 3 and communication module 5 operating voltages for requiring 3.3V specification are powered, so being provided with two-way voltage conversion circuit, i.e. first voltage conversion is electric Road U1 (shown in ginseng Fig. 3) and second voltage conversion circuit U4 (shown in ginseng Fig. 4).First voltage conversion circuit U1 and second voltage It is all made of the positive low pressure drop voltage stabilizing chip of model AMS1117-3.3 in conversion circuit U4, the external power supply of 5V is converted For 3.3V.
Unless otherwise specified, mentioned in this application 5V or 3.3V are direct current electrical specification (i.e. DC).In this reality It applies in example, by the way that the independent voltage conversion circuit of two-way is arranged, avoids single voltage conversion circuit and be powered to entire light The adverse effects such as the electromagnetic interference that strong detection control apparatus 100 may cause, enable one-chip computer module 3 and communication module 5 Enough more stable work, and improve the global reliability of the light intensity test device 100.
It should be noted that fixed capacity is uniformly abbreviated as capacitor, and electric with polarity in each example of the application The capacitor of other specific uses such as appearance, variable capacitance is distinguished.
Specifically, shown in ginseng Fig. 3, electricity in parallel between the end VCC and the external power supply of 5V of first voltage conversion circuit U1 Hold C5 and polar capacitor C4, and is grounded jointly.First voltage conversion circuit U1 the end VOUT connection one-chip computer module 3 with communicate mould The port VC3.3-2 of block 5.The end GND of first voltage conversion circuit U1 is grounded, and electricity is coupled between ground path and power supply line Hold C7 and polar capacitor C6.Meanwhile joining shown in Fig. 4, in the present embodiment, the end VCC of second voltage conversion circuit U4 and 5V External power supply between shunt capacitance C12 and polar capacitor C11, and be grounded jointly.And the end VOUT of voltage conversion circuit U4 Connect the port VC3.3-1 of one-chip computer module 3.The end GND of second voltage conversion circuit U4 is grounded, and ground path and supply lines Coupling capacitance C14 and polar capacitor C13 between road.
Single-chip minimum system includes single-chip microcontroller U3, clock circuit and the reset circuit of model STM32F103C8T6.Light BH1750 optical sensor P1 is selected from according to sensor module 2;The real-time light intensity data of environment is sent to by BH1750 optical sensor P1 The PA4 pin and PA5 pin that single-chip microcontroller U3 is configured.The external power supply of the 1 pin connection 5V of BH1750 optical sensor P1,2 pipes Foot is connect with the PA4 pin of single-chip microcontroller U3, and 3 pins are connect with the PA5 pin of single-chip microcontroller U3,4 pins ground connection.BH1750 light sensing The real-time detector data of light intensity in environment is sent to single-chip microcontroller U3 by 2 pins and 3 pins by device P1.BH1750 optical sensor P1 It is a kind of numeric type light intensity sensor integrated circuit for twin wire serial bus interface, built-in 16 analog-to-digital conversions Device, it can directly export a digital signal, and the unit of intensity of illumination is (lux) lx.BH1750 optical sensor P1 can be visited Surveying large range of intensity variation is 1lx-65535lx, therefore is with a wide range of applications.
Join shown in Fig. 6, single-chip microcontroller U3 selects model STM32F103C8T6 chip.In single-chip minimum system when Clock circuit is made of crystal oscillator Y1, capacitor C17, capacitor C18, the PD0OST_IN pin of the two poles of the earth of crystal oscillator Y1 access single-chip microcontroller U3 with PD1OST_OUT pin.The crystal oscillator frequency for driving crystal oscillator Y1 is 8MHz, after 9 times of process of frequency multiplication, is transported with the frequency of 72MHz Row.The supply voltage of clock circuit is 3.3V.
36 pins (the VDD_2 pin of single-chip microcontroller U3) of single-chip microcontroller U3,35 pins (the VSS_2 pin of single-chip microcontroller U3) difference 3.3V voltage and ground are connect, and isolation capacitance C1 and C2 are set between 3.3V voltage and ground.24 pins (the VDD_1 of single-chip microcontroller U3 Pin), 23 pins (the VSS_1 pin of single-chip microcontroller U3) connect 3.3V voltage and ground respectively, and are arranged between 3.3V voltage and ground Isolation capacitance C8.9 pins (the VDDA pin of single-chip microcontroller U3) connect 3.3V voltage, added between ground set isolation capacitance C15 and C16.The crystal oscillator that 5 pins (PD0OSC_IN) of single-chip microcontroller U3 and the indirect crystal oscillator frequency of 6 pins (PD1OSC_OUT) are 8MHz Y1, capacitor C17 and capacitor C18, to constitute clock circuit.47 pins (the VSS_3 pin of single-chip microcontroller U3) and 48 pin (single-chip microcontrollers The VDD_3 pin of U3) it is grounded and 3.3V voltage respectively.44 pins (the BOOT0 pin of single-chip microcontroller U3) of single-chip microcontroller U3 connect drop-down Resistance R2 is simultaneously grounded, and the resistance value of resistance R2 is 10K Ω.
Program download circuit P2 is based on serial port protocol and mutually communicates with single-chip microcontroller U3, and program download circuit P2 is managed for five totally Foot is followed successively by PA9 pin, PA10 pin, GND pin, BOOT0 pin and 5V pin.GND pin ground connection, 5V pin be used for The program download circuit P2 provide the operating voltage needed for it.
In the present embodiment, in order to improve the job stability of single-chip minimum system, the work of STM32F103C8T6 chip Make that isolation capacitance is arranged between voltage input pin and GND pin.As shown in fig. 6, the VDD_2 pin and VSS_2 of single-chip microcontroller U3 Isolation capacitance C1, C2 is arranged in pin between the operating voltage input pin and ground pin of 3.3V, dry to reduce circuit conduct It disturbs and radiation interference.Meanwhile the VDD_3 pin of single-chip microcontroller U3 and VSS_3 pin 3.3V operating voltage input pin with connect Isolation capacitance C9 and isolation capacitance C10 is set between ground pin.
Especially, in the present embodiment, light-intensity test control device further include: program download circuit P2.Program downloading Circuit P2 configures PA9 pin, PA10 pin and BOOT0 pin.PA9 pin and PA10 pin are respectively with single-chip microcontroller U3's USART1_TX pin and the connection of USART11_RX pin, to be based on string to single-chip microcontroller U3 by the PA9 pin and PA10 pin Mouth agreement is written or modifies the light intensity given threshold in single-chip microcontroller U3.Program download circuit P2 is with serial port protocol to single-chip microcontroller U3 Write-in program or more new procedures.BOOT0 pin is placed in high level state in write-in program or update program process;When After write-in program or update EP (end of program), BOOT0 pin is placed in low level state, single-chip microcontroller U3 enters operating mode.
Join shown in Fig. 8, the light-intensity test control device further include: the firmware update circuit P3 being connect with WIFI module U2. Firmware update circuit P3 configures PA2 pin, PA3 pin, CH_PD pin and GPIO0 pin.Wherein, PA2 pin and PA3 pin It is connect respectively with the TXD pin of WIFI module U2 and RXD pin, and by CH_PD pin and GPIO0 pin to WIFI module U2 Carry out firmware refreshing.
In conjunction with shown in Figure 11, in the present embodiment, which uses the WIFI module U2 of model ESP8266. The reset terminal (RST pin) of ESP8266 chip is connect with the reset circuit of single-chip microcontroller U3.The reset circuit of single-chip microcontroller U3 is by connecting Resistance R1 and capacitor C3 composition, capacitor C3 ground connection, the other end of resistance R1 is connected to the port VC3.3-2 of single-chip microcontroller U3. The reset terminal (RST pin) of ESP8266 chip is electrically between access resistance R1 and capacitor C3.The resistance value of resistance R1 is 10K Ω. The signal of WIFI module U2 and single-chip microcontroller U3 is transmitted through PA2 pin and PA3 pin realizes communication connection, and rs 232 serial interface signal is turned It is changed to WIFI signal, accesses internet or local area network, to be examined by client 6 shown in embodiment two to entire light intensity It surveys control device 100 and carries out remote centralized displaying or long-range control.
In the present embodiment, the light-intensity test control device eventually by control processing circuit 4, and more specifically by Control relay circuit executes the operation opened power supply or close power supply to lighting device.
Specifically, in the present embodiment, controlling processing circuit 4 by two groups of independent key circuits shown in ginseng Fig. 9 and Figure 10 And control relay circuit composition.Certainly, those skilled in the art can reasonable prediction arrive, which can also be by one Group key circuit and control relay circuit composition.When apolegamy is one group of key circuit and control relay circuit, can be based on Fig. 9 and Figure 10 is formed by control processing circuit 4, may be based on Figure 12 and Figure 13 and is formed by control processing circuit 4.Control When processing circuit 4 is made of two groups of independent key circuits and control relay circuit, formed above-mentioned based on Fig. 9 and Figure 10 Control processing circuit 4 control processing circuit 4 and combined with being formed by based on Figure 12 and Figure 13.
Applicant gives exemplary explanation with control relay circuit illustrated in fig. 10, and points out that Figure 10 has with Figure 13 Similar technical principle.
Controlling processing circuit 4 includes a key circuit K4, and the one end key circuit K4 connects the PB10 pin of single-chip microcontroller U3, presses The other end of key circuit K4 is grounded.
After key circuit K4 is connected, PB10 pin is placed in low level state.Single-chip microcontroller U3 passes through the height for judging PB10 pin Low level can judge whether key circuit K4 is connected.Two groups of independent key circuits are also provided in control relay circuit With control relay circuit, two groups of key circuit and control relay circuit, which can be independently operated, can also be used wherein one group of control Processing circuit processed, and using another group of control processing circuit as spare.
When locating environment illumination intensity light intensity given threshold saved beyond single-chip microcontroller U3, automatic alarm may be implemented Function, warning function is realized by the on-off action of relay, and user can control some illuminations by relay The starting and closing of equipment.Relay K2 (either relay K1) is controlled by a PA5 pin (or PB1 pin) of single-chip microcontroller U3 On-off processed, principle be using triode Q2 (either triode Q1) conducting and off state control relay K2 (or after Electric appliance K1) switch state, to realize switch control.
Join shown in Figure 10, which includes: relay K2, sustained diode 2, triode Q2, the first limit Leakage resistance R7 and warning circuit.One end of relay K2 connects external power supply (5V), the other end connecting triode of relay K2 The collector of Q2, the base stage of triode Q2 connect the first current-limiting resistance R7 and connect with one-chip computer module 3, the transmitting of triode Q2 Pole ground connection.Sustained diode 2 is connected between external power supply (5V) and the collector of triode Q2, and in two pole of afterflow Circuit taking alarm by the both ends of pipe D2.Warning circuit is made of concatenated light emitting diode D4 and the second current-limiting resistance R5.Wherein, The resistance value of first current-limiting resistance R7 is 4.7K Ω, and the resistance value of the second current-limiting resistance R5 is 1K Ω.External power supply (5V) can lead to It crosses Switching Power Supply or USB is provided.
By the way that sustained diode 2 is arranged, it can prevent the switching moments electromotive force of relay K2 from damaging single-chip microcontroller.Relay Device K2 configures contact 3 and contact 4, and contact 3 and contact 4 are separately connected the control device (such as relay) of lighting device, with logical Cross contact 3 and the actuation of contact 4 with separate, realize the lighting device or other electrical equipments similar to street lamp, fluorescent lamp etc. Be switched on or off and controlled.
Light emitting diode D4 and the second current-limiting resistance R5 collectively forms the warning circuit of relay K2 working condition.Specifically , when PA5 pin is in low level, triode Q2 is in off state, and contact 3 and the contact 4 of relay K2 is not attracted, at this time The control relay circuit is in off-state, i.e. contact 3 and the separated state in contact 4;When PA5 pin is in high level, three Pole pipe Q2 is on state, and the contact 3 and contact 4 of relay K2 is attracted, and the control relay circuit is on state at this time, together When light emitting diode D4 shine, with by optical signal play prompt operator technical effect.
A kind of revealed working principle of light-intensity test control device 100 of the present embodiment is as follows.
External power supply power supply (5V) is provided by power supply module 1, light sensor module 2 is real-time by the environment monitored Light intensity data is sent to single-chip microcontroller U3, is handled by single-chip microcontroller U3 and is compared with the light intensity given threshold set in single-chip microcontroller U3 Afterwards, switch operation can be carried out by control relay circuit, switch operation can also be carried out at the scene by key circuit, while single Piece machine U3 passes data to communication module 5 by serial ports, and communication module 5 is converted to WIFI signal by serial ports and accesses interconnection Net, and the real-time light intensity data in environment further can be sent to Cloud Server, it is (such as embedding through Cloud Server and client Enter to run the APP of mobile phone) it is connected, real-time light intensity data in environment can be checked on mobile phone, while can execute on mobile phone remote Journey is turned on or off the operation of lighting device, instruction is sent back single-chip microcontroller U3 through Cloud Server, single-chip microcontroller U3 controls relay Device circuit carries out switch motion.
The above process is specifically described so that street lamp is turned on light as an example, which monitors always light intensity value after powering on, when the dusk Light intensity decreasing to a certain extent, when being lower than preset Intensity threshold, turn on light, if in certain spy by single-chip microcontroller control relay In different situation, when such as street lamp fault detection, light intensity is not attenuated to threshold value, can be turned on light manually by key.Light intensity data letter simultaneously Number through single-chip microcontroller U3 serial ports turn WIFI signal access internet, live light intensity data can be checked on mobile phone, can also pass through mobile phone Remote control switch motion is instructed, remotely checks and manipulates to realize.
Embodiment two:
As shown in connection with fig. 1, a kind of revealed light-intensity test control device 100 of the present embodiment and embodiment one are revealed The main distinction of light-intensity test control device is that in the present embodiment, client 6 is selected from host computer, further, host computer It can further be specially industrial personal computer, work station or touch screen.
Meanwhile in the present embodiment, light-intensity test control device 100 further include: establish wireless telecommunications with communication module 5 Client 6.Client 6 is selected from host computer or application program, and in the present embodiment, which is selected from application program, and Further preferably insertion the APP in the mobile communication device such as mobile phone, laptop, tablet computer can be run on (using journey Sequence).Formed and be bi-directionally connected between the communication module 5 and client 6, it is such be bi-directionally connected both but wireless mode be also possible to have Line mode is attached based on hot spot device (AP).
Meanwhile cooperation is referring to Fig.1 2 to a kind of variation of light-intensity test control device of the present invention illustrated in fig. 13.? In embodiment, two groups of independent key circuits and control relay circuit are set in the light-intensity test control device;Wherein one group Shown in key circuit and control relay circuit ginseng embodiment one.
Join shown in Figure 12 and Figure 13 as spare key circuit and control relay circuit.
Controlling processing circuit 4 includes a key circuit K3, and the one end key circuit K3 connects the PA8 pin of single-chip microcontroller U3, presses One end of key circuit K3 is grounded.After key circuit K3 is connected, PA8 pin is placed in low level state.Single-chip microcontroller U3 is by judging PA8 The low and high level of pin can judge whether key circuit K3 is connected.
Join shown in Figure 13, which includes: relay K1, sustained diode 1, triode Q1, the first limit Leakage resistance R6 and warning circuit.One end of relay K1 connects external power supply (5V), the other end connecting triode of relay K1 The collector of Q1, the base stage of triode Q1 connect the first current-limiting resistance R6 and connect with one-chip computer module 3, the transmitting of triode Q1 Pole ground connection.Sustained diode 1 is connected between external power supply (5V) and the collector of triode Q1, and in two pole of afterflow Circuit taking alarm by the both ends of pipe D1.Warning circuit is made of concatenated light emitting diode D3 and the second current-limiting resistance R4.Wherein, The resistance value of first current-limiting resistance R6 is 4.7K Ω, and the resistance value of the second current-limiting resistance R4 is 1K Ω.External power supply (5V) can lead to It crosses Switching Power Supply or USB is provided.
By the way that sustained diode 1 is arranged, it can prevent the switching moments electromotive force of relay K1 from damaging single-chip microcontroller.Relay Device K1 configures contact 3 and contact 4, and contact 3 and contact 4 are separately connected the control device (such as relay) of lighting device, with logical Cross contact 3 and the actuation of contact 4 with separate, realize the lighting device or other electrical equipments similar to street lamp, fluorescent lamp etc. Be switched on or off and controlled.
Light emitting diode D3 and the second current-limiting resistance R4 collectively forms the warning circuit of relay K1 working condition.Specifically , when PB1 pin is in low level, triode Q1 is in off state, and contact 3 and the contact 4 of relay K1 is not attracted, at this time The control relay circuit is in off-state, i.e. contact 3 and the separated state in contact 4;When PB1 pin is in high level, three Pole pipe Q1 is on state, and the contact 3 and contact 4 of relay K1 is attracted, and the control relay circuit is on state at this time, together When light emitting diode D3 shine, with by optical signal play prompt operator technical effect.
Identical technical solution in a kind of revealed light-intensity test control device of the present embodiment and embodiment one, please join reality It applies shown in example one, details are not described herein.It should be noted simultaneously that term " connection " can be in applying for each embodiment It is electrically connected, it can also be with the interaction of data flow, or the interaction of control signal.
The series of detailed descriptions listed above only for feasible embodiment of the invention specifically Protection scope bright, that they are not intended to limit the invention, it is all without departing from equivalent implementations made by technical spirit of the present invention Or change should all be included in the protection scope of the present invention.
It is obvious to a person skilled in the art that invention is not limited to the details of the above exemplary embodiments, Er Qie In the case where without departing substantially from spirit or essential attributes of the invention, the present invention can be realized in other specific forms.Therefore, no matter From the point of view of which point, the present embodiments are to be considered as illustrative and not restrictive, and the scope of the present invention is by appended power Benefit requires rather than above description limits, it is intended that all by what is fallen within the meaning and scope of the equivalent elements of the claims Variation is included within the present invention.Any reference signs in the claims should not be construed as limiting the involved claims.
In addition, it should be understood that although this specification is described in terms of embodiments, but not each embodiment is only wrapped Containing an independent technical solution, this description of the specification is merely for the sake of clarity, and those skilled in the art should It considers the specification as a whole, the technical solutions in the various embodiments may also be suitably combined, forms those skilled in the art The other embodiments being understood that.

Claims (10)

1. a kind of light-intensity test control device (100) characterized by comprising
Communication module (5), control processing circuit (4), one-chip computer module (3), light sensor module (2), and be communication mould Block (5), control processing circuit (4), one-chip computer module (3) and the power supply module (1) of light sensor module (2) power supply;
The power supply module (1) exports the first voltage of 3.3V operating voltage from self-locking key switch S1, to one-chip computer module (3) Conversion circuit U1 and the second voltage conversion circuit U4 composition that 3.3V operating voltage is exported to communication module (5);
The one-chip computer module (3) is made of single-chip minimum system and program download circuit P2;
The control processing circuit (4) is made of key circuit and control relay circuit;
The real-time light intensity Data Concurrent of light sensor module (2) the acquisition environment is sent to one-chip computer module (3), passes through monolithic Machine module (3) is compared with light intensity given threshold, to determine whether to execute conducting or closure by control processing circuit (4) Operation.
2. light-intensity test control device according to claim 1, which is characterized in that the light-intensity test control device also wraps It includes: establishing the client (6) of wireless telecommunications with communication module (5);
The client (6) is selected from host computer or application program.
3. light-intensity test control device according to claim 1 or 2, which is characterized in that the single-chip minimum system Single-chip microcontroller U3, clock circuit and reset circuit comprising model STM32F103C8T6.
4. light-intensity test control device according to claim 3, which is characterized in that light sensor module (2) choosing From BH1750 optical sensor P1;
The BH1750 optical sensor P1 by the real-time light intensity data of environment be sent to PA4 pin that single-chip microcontroller U3 is configured with PA5 pin.
5. light-intensity test control device according to claim 3, which is characterized in that the STM32F103C8T6 chip Isolation capacitance is set between operating voltage input pin and GND pin.
6. light-intensity test control device according to claim 3, which is characterized in that the control processing circuit (4) is by two The independent key circuit of group and control relay circuit composition.
7. light-intensity test control device according to claim 6, which is characterized in that the control relay circuit includes: Relay, freewheeling diode, triode, the first current-limiting resistance and warning circuit;
One end of relay connects external power supply, the collector of the other end connecting triode of relay, the base stage of triode the One connection current-limiting resistance is simultaneously connect with one-chip computer module (3), the emitter ground connection of triode;
The freewheeling diode is connected between external power supply and the collector of triode, and at the both ends of the freewheeling diode Other circuit taking alarm;
The warning circuit is made of concatenated light emitting diode and the second current-limiting resistance.
8. light-intensity test control device according to claim 3, which is characterized in that the communication module (5) uses model For the WIFI module U2 of ESP8266, the reset terminal of the ESP8266 chip is connect with the reset circuit of single-chip microcontroller U3.
9. light-intensity test control device according to claim 3, which is characterized in that the light-intensity test control device also wraps It includes: program download circuit P2;
Described program download circuit P2 configures PA9 pin, PA10 pin and BOOT0 pin;
The PA9 pin is connect with the USART1_TX pin of single-chip microcontroller U3 and USART11_RX pin respectively with PA10 pin, with The light intensity in single-chip microcontroller U3 is written or modifies based on serial port protocol to single-chip microcontroller U3 by the PA9 pin and PA10 pin to set Determine threshold value.
10. light-intensity test control device according to claim 8, which is characterized in that the light-intensity test control device is also It include: the firmware update circuit P3 being connect with WIFI module U2;
Firmware update circuit P3 configuration PA2 pin, PA3 pin, CH_PD pin and GPIO0 pin, the PA2 pin with PA3 pin is connect with the TXD pin of WIFI module U2 and RXD pin respectively, and passes through CH_PD pin and GPIO0 pin pair WIFI module U2 carries out firmware refreshing.
CN201910299503.6A 2019-04-15 2019-04-15 A kind of light-intensity test control device Pending CN109890114A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910299503.6A CN109890114A (en) 2019-04-15 2019-04-15 A kind of light-intensity test control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910299503.6A CN109890114A (en) 2019-04-15 2019-04-15 A kind of light-intensity test control device

Publications (1)

Publication Number Publication Date
CN109890114A true CN109890114A (en) 2019-06-14

Family

ID=66937353

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910299503.6A Pending CN109890114A (en) 2019-04-15 2019-04-15 A kind of light-intensity test control device

Country Status (1)

Country Link
CN (1) CN109890114A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN204305437U (en) * 2015-01-13 2015-04-29 南京理工大学泰州科技学院 Intelligent power saving control circuit
CN205049992U (en) * 2015-08-19 2016-02-24 郑州轻工业学院 Warmhouse booth control system based on embedded system
CN105578681A (en) * 2015-12-14 2016-05-11 广东威创视讯科技股份有限公司 Lighting control circuit
CN107995755A (en) * 2016-10-27 2018-05-04 常州市小先信息技术有限公司 Indoor intelligent light control system and its control method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN204305437U (en) * 2015-01-13 2015-04-29 南京理工大学泰州科技学院 Intelligent power saving control circuit
CN205049992U (en) * 2015-08-19 2016-02-24 郑州轻工业学院 Warmhouse booth control system based on embedded system
CN105578681A (en) * 2015-12-14 2016-05-11 广东威创视讯科技股份有限公司 Lighting control circuit
CN107995755A (en) * 2016-10-27 2018-05-04 常州市小先信息技术有限公司 Indoor intelligent light control system and its control method

Similar Documents

Publication Publication Date Title
JP5828042B2 (en) Light distribution variable lamp control circuit and light distribution variable lamp control plate
CN103229598A (en) Outdoor lighting system
CN105278384B (en) Household electric appliance control method and system, intelligent exchange
CN104470075A (en) Network-based method, device and system for streetlamp control
CN103762712A (en) Transformation method for carrying out centralized power supply on outdoor lighting system
CN101621885A (en) Illumination device with brightness control function and illumination system using same
CN103874303A (en) Intelligent lighting remote monitoring and management system
CN109890114A (en) A kind of light-intensity test control device
CN109309991A (en) A kind of control method, control device and control system
CN204559951U (en) A kind of intelligent illuminating system
CN110136416A (en) Wireless collection device, control system and control method including the wireless collection device
CN204362362U (en) A kind of switching system based on light fixture and radio receiving transmitting module
CN203849373U (en) Isolation detection circuit for scanning state of relay in switch
CN207531129U (en) LED intelligent illumination control system based on bluetooth MESH technology
CN202857105U (en) Street lamp controller
CN210202157U (en) Light intensity detection control device
CN109683202A (en) A kind of system and method for electromagnetic survey data acquisition
CN205921788U (en) Current control circuit and adopt this control circuit's current control ware
CN205389198U (en) Touch switch
CN103973529A (en) Interface device for accessing traditional home appliance to internet and control method thereof
CN204347524U (en) Based on the embedded eight road remote controls of Ethernet
CN203658821U (en) Intelligent household control host
CN202183025U (en) Intelligent mains supply controller
CN102548128B (en) LED driving method based on high-voltage series-connection current reducing manner
CN206698099U (en) A kind of multifunctional intellectual power supply for being easy to control

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination