Background technology
In recent years, along with deepening continuously of rapid development of economy and urbanization process, corresponding every municipal auxiliary facility is also had higher requirement.Street lamp is as the public infrastructure of modern city, in the daily operation in city and people's life, plays an important role, and the advanced degree of street lamp control system indicates the modernization level in a city.The whole world faces energy crisis at present, and electric power resource has become narrow resources.And China exists the electric power resource wasting phenomenon, therefore energy-saving and cost-reducing is the policy that need to carry out energetically.
Current a lot of city street lamp system can only realize the function of switch lamp on time substantially, is only, according to the time of setting, street lamp is carried out to relevant control, uses the mode of bright light at full night, has caused the waste of much electricity resource.Along with rising year by year and the densely populatedization development of vehicle guaranteeding organic quantity, traditional city street lamp illuminator also shows a lot of other shortcomings.For example, though during rainstorm weather by day the colour of sky be also dark, but lack necessary road lighting; While reaching at dead of night the stream of people, vehicle flowrate rareness, street lamp throws light on whole night, has power wastage problem to a certain degree; Once street lamp breaks down in addition, can only check discovery by the street lamp patrolman, can not be reflected to timely in Lighting Control Assembly, to maintenance work, make troubles.Therefore, set up a set of Intelligent street lamp control system with multiple-working mode and just seem very necessary.
The development of greatly developing to Intelligent street lamp control system of single-chip microcomputer, IC chip and sensor technology provides prerequisite and basis.Adopt Intelligent road lamp control system not only can meet normal road lighting function, effective conservation of power resource, make the more scientific and hommization of the road lamp system in city.Also improved the operating efficiency that road lamp system is safeguarded and overhauled, reduced to a certain extent municipal staff's labour intensity simultaneously.
Summary of the invention
The utility model has designed a kind of Multimode Intelligent street lamp control system, and this systemic-function is comprehensive, can effectively save the city illumination power consumption, and stronger practical value is arranged.
the technical solution of the utility model:
A kind of Multimode Intelligent street lamp control system is characterized in that: this system comprises main control module, clock module, infrared induction module, photometry module, street lamp control module, display module and communication module, and each module communicates to connect with main control module respectively.
This system also comprises fault detection module, Keysheet module, street lamp control and alarm module.
Wherein, main control module adopts the AT89S52 single-chip microcomputer; Clock module adopts the DS1302 clock chip; The infrared induction module adopts the H22A2 optoelectronic switch; The photometry module adopts photo resistance; Display module adopts the LCD1602 liquid crystal display; Communication module adopts the MAX232 communication chip.
the beneficial effect that the utility model brings:
The mode of operation of the utility model whole system can be selected according to actual needs flexibly, and stable performance is simple to operation, and system cost is low, and reliability is high.This system has advantages of that multiple-working mode is selected and the minimizing power consumption, has certain realistic meaning.
System of the present utility model can independently be set, the display switch lamp time, according to the variation automatic decision of ambient light light and shade, whether starts set mode of operation, and utilizes infrared detection technology well to realize that car comes lamp bright, and car is walked the function that lamp goes out.
Embodiment
The utility model is a kind of Multimode Intelligent street lamp control system, and specific implementation is as follows:
Hardware circuit block diagram of the present utility model as shown in Figure 1.This system be take AT89S52 as main control module, take DS1302 as clock module, take optoelectronic switch H22A2 as the infrared induction module, take photo resistance as the photometry module, take the LCD1602 liquid crystal as display module, take communication chip MAX232 as communication module, communication module communicates by serial ports and PC.
In addition, system also comprises fault detection module, Keysheet module and alarm module.
System can be carried out the setting of street lamp mode of operation after initialization, and, when normal operation, at first by photo resistance monitoring of environmental brightness, when environmental light brightness is low, system starts the mode of operation set in advance automatically.In addition, system is all carried out fault detect at every turn after the mode of operation setting, and when in system, optical detection circuit breaks down, buzzer will be reported to the police, and can on liquid crystal LCD1602, show the numbering of the lamp of fault; During fault-free, system starts normal operation.The operating state of system and the monitoring result of faulty circuit can be transferred to remote control terminal by the MAX232 communication interface.
in the utility model, the design of the physical circuit of each several part is as follows:
1) as shown in Figure 2, under initial condition, button K1 enters entrance to a lane mode of operation to the Keysheet module circuit; Button K2 enters the timing working pattern; Button K3 enters the road mode of operation.Exit the mode of operation at current place by button K5.Under the timing working pattern, at first respectively the DS1302 clock chip is carried out the setting of Hour Minute Second and determined by the K4 key by button K1, K2, K3, determine to the setting of the DS1302 clock chip being carried out to the date and by the K4 key respectively by button K1, K2, K3 afterwards, thereby realize the DS1302 clock chip is carried out to the modification of set of time and time set.
2) light detection module circuit.Photo-resistor claims again photoconductive tube, has the characteristic that its resistance reduces rapidly under light-struck condition, can be used for detecting visible ray.As shown in Figure 3, NE555 forms comparator and utilizes the switching characteristic of triode that signal is converted to square wave optical detection circuit, and its output is connected with the P1.7 mouth of single-chip microcomputer.When ambient light intensity surpasses set point, photo resistance Rg1 resistance reduces, the NE555 output low level, and the triode cut-off, LED light is gone out, and optical detection circuit is toward P1.7 mouth output high level, and control system does not start mode of operation; When ambient light intensity, during lower than set point, photo resistance Rg1 resistance increases, and NE555 export high level, the triode conducting, and LED light is bright, the past P1.7 mouth output low level of optical detection circuit, control system starts set mode of operation.
3) infrared induction modular circuit, as shown in Figure 4.System works is when the pattern of entrance to a lane, adopt infrared sensor H22A2 to detect whether passing through of pedestrian and vehicle is arranged, and lay infrared sensor according to order shown in Fig. 2 (a) and (b), (c) successively along road, when people, car are arranged by infrared sensor (a), transducer output high level, to infrared sensor (a), corresponding count value is added 1 counting to single-chip microcomputer; When people, car are arranged by infrared sensor (b), transducer output high level, to transducer (b), corresponding count value is added 1 counting to single-chip microcomputer, and count value corresponding to transducer (a) subtracted 1 counting; When people, car are arranged by infrared sensor (c), transducer output high level, to transducer (c), corresponding count value is added 1 counting to single-chip microcomputer, and count value corresponding to transducer (b) subtracted 1 counting; When count value corresponding to infrared sensor is non-vanishing, by streetlight control circuit, open the corresponding street lamp of this transducer.When count value corresponding to infrared sensor is zero, by streetlight control circuit, close the corresponding street lamp of this infrared sensor.
4) fault detection module circuit.A failure detector circuit (identical with optical detection circuit) respectively is installed on each street lamp side, and physical circuit as shown in Figure 5.Relatively fault detection module outputs to the signal of single-chip microcomputer P3.4 mouth and the signal that optical detection circuit outputs to single-chip microcomputer P1.7 mouth, if the low and high level of two kinds of signals is different, single-chip microcomputer starts alarm module and sends alarm signal, and by communication interface, fault message is sent to control centre.
5) street lamp control module and alarm module circuit.Streetlight control circuit mainly consists of relay circuit, and circuit as shown in Figure 6.When P0.4 output high level, triode Q3 cut-off, relay is not worked, and the street lamp control module keeps closed condition; When the P0.4 output low level, triode Q3 conducting, relay work, the street lamp control module enters opening.
Warning circuit as shown in Figure 7.During street lamp fault, single-chip microcomputer P0.3 mouth output high level, D1 lights, and the triode conducting, and buzzer also sends the sound; When the street lamp fault-free, single-chip microcomputer P0.3 mouth output low level, this module is not worked.
6) clock module module.DS1302 is a high precision clock integrated circuit, it can carry out year, month, day, week, the time, the minute, second timing.The clock module circuit as shown in Figure 8, required clock signal while adopting the DS1302 clock chip to provide the operation of timing switch lamp for this system, and clock data can be adjusted by the Keyboard Control module.
7) display module module.Display module adopts liquid crystal LCD1602, and display circuit as shown in Figure 9.Under initialize mode, on liquid crystal display screen, can show " choose mode:1.IR; 2.TM; 3.SM " corresponding " 1. entrance to a lane pattern respectively; 2. timing mode; 3. road mode ", can carry out model selection by button according to actual needs.Enter in the situation of " 1. entrance to a lane pattern " and " 3. road mode ", liquid crystal display screen can, according to the high and low level from optical detection circuit output, show " now is daytime " or show " now is the night ".Enter in the situation of " 2. timing mode ", liquid crystal display screen shows " choose T-Mode:1.aj; 2.al; 3.on; 4.tw ", mean respectively " 1. to be set the current time; 2. the time that shows two lamp timing switches; 3. first lamp independent switching time is set; 4. the independent time regularly of second lamp is set ", can be selected by button.Under 4 T-Mode patterns, show the year-moon-in the first row, when the second row shows-minute-second.And the time can be adjusted and be arranged by keyboard.
8) communication module module.Adopt the MAX232 serial communication circuit in system.Due to serial ports of computers RS232 level be-10V~+ 10V, and the signal voltage of general scm application system be Transistor-Transistor Logic level 0V~+ 5V, MAX232 is used for carrying out level conversion, realizes communicating by letter between single-chip microcomputer and computer.Telecommunication circuit as shown in figure 10.
This system can according to road, entrance to a lane or regularly applying three kinds of situations carries out the mode of operation selection, and determines whether to start according to environmental light brightness the mode of operation set.During entrance to a lane mode of operation, system by infrared sensor detect on road have automobile or pedestrian by the time, identification signal is sent into to single-chip microcomputer, by the Single-chip Controlling traffic lights, opened; During the road mode of operation, street lamp, in opening, passes unimpeded to ensure the pedestrian; During timing mode, by the DS1302 time block, can set the switching time of street lamp.In addition, this system also has the automatic fault measuring ability, and complete function can effectively be saved the city illumination power consumption, and stronger practical value is arranged.