Summary of the invention
According to above the deficiencies in the prior art, technical problem to be solved in the utility model proposes one to control LED street lamp based on MSP430 Intelligent Single-Chip Based, street lamp bias light intensity is detected by arranging photo resistance in host computer, with one-chip computer module MSP430 for Systematical control core, and pyroelectric sensor detection people and the infrared signal that sends of vehicle are set on slave computer, solve street lamp perseverance at full night according to lacking the problem automatically regulated, there is the advantage that must change the Based Intelligent Control realizing street lamp according to bias light, according to each, the time difference of darkness arranges respective street lamp and opens and closes the time in season, in the stipulated time, mobile object is detected, realize the intelligentized control method to street lamp, improve the validity of street lighting, avoid the waste of electric power resource.
In order to solve the problems of the technologies described above, the technical solution adopted in the utility model is: a kind of based on MSP430 Intelligent Single-Chip Based control LED street lamp, described intelligent control LED street lamp comprises slave computer and the LED street lamp that the host computer, RS485 bus, human body and the vehicle infrared signal that detect street lamp location bias light intensity control street lamp work, host computer connects RS485 bus, RS485 bus connects slave computer, and slave computer receives the detection signal of host computer by RS485 bus and sends work order to LED street lamp.
In above-mentioned intelligent control LED street lamp, described host computer comprises surround lighting detecting unit and one-chip computer module, surround lighting detects and connects single-chip microcomputer in order to testing environment luminous intensity, one-chip computer module connects slave computer, one-chip computer module comprises clock unit, and one-chip computer module connects clock unit and issues a signal to slave computer after the time threshold arranged in clock unit.Described surround lighting detecting unit comprises photo resistance and transistor circuit, and transistor circuit connects photo resistance and according to the resistance determination operating state of photo resistance, transistor circuit connects the clock unit of one-chip computer module.Described one-chip computer module also comprises keyboard and display unit, and keyboard is connected one-chip computer module revises clock unit time threshold in order to input display information with display unit.Described slave computer comprises microprocessor, object localization detecting unit and constant current source unit, object localization detecting unit connects the infrared signal that microprocessor sends in order to human body and vehicle, the input of microprocessor connects RS485 bus, constant current source unit connects microprocessor in order to according to instruction stable output drive current, and constant current source unit obtains output and connects LED street lamp.Described object localization detecting unit comprises pyroelectric infrared sensor and Fresnel lens, Fresnel lens covers on the surface of pyroelectric infrared sensor, and pyroelectric infrared sensor connects microprocessor and the faint infrared energy detected is changed into the signal of telecommunication outputs to microprocessor.Described object localization detecting unit also comprises secondary discharge circuit and double-limit comparator unit, and pyroelectric infrared sensor connects secondary discharge circuit, and secondary discharge circuit connects double-limit comparator unit.Described constant current source unit comprises constant pressure source unit and series electric circuit negative feedback circuit, and constant pressure source unit connects on the microprocessor, and constant pressure source unit connects series electric circuit negative feedback circuit and exports adjustable stabilized driving electric current.
The utility model beneficial effect is: the utility model with low-power scm MSP430 for master control unit, adopt the infrared signal that pyroelectric infrared sensor human body and vehicle send, use the intensity of photo resistance detection background light, export by constant current source unit the intensity that constant current controls LED lamplight.According to each, the time difference of darkness arranges respective street lamp and opens and closes the time in season, detects, realizes the intelligentized control method to street lamp, improve the validity of street lighting, avoid the waste of electric power resource in the stipulated time to mobile object.The utility model belongs to electronic equipment high-end product, and technology is novel, and market is with strong points, and manufacture simple, a thing multipotency, has the advantage that traditional simple function product is incomparable.
Embodiment
Contrast accompanying drawing below, by the description to embodiment, embodiment of the present utility model is as the effect of the mutual alignment between the shape of involved each component, structure, each several part and annexation, each several part and operation principle, manufacturing process and operation using method etc., be described in further detail, have more complete, accurate and deep understanding to help those skilled in the art to inventive concept of the present utility model, technical scheme.
As shown in Figure 1, the utility model provides and controls LED street lamp based on MSP430 Intelligent Single-Chip Based, comprise host computer, RS485 bus, slave computer and LED street lamp, host computer connects RS485 bus, RS485 bus connects slave computer, and slave computer receives the detection signal of host computer by RS485 bus and sends work order to LED street lamp.Host computer with low-power consumption MSP430 single-chip microcomputer for core, detect street lamp location bias light intensity, RS485 communication protocol is used to complete the control of host computer to slave computer, by the infrared signal that pyroelectric sensor detection people and vehicle send, the intelligent dimming utilizing the internal resource PWM of MSP430 to achieve street lamp controls.
Host computer comprises surround lighting detecting unit and one-chip computer module, surround lighting detects and connects single-chip microcomputer in order to testing environment luminous intensity, one-chip computer module connects slave computer, one-chip computer module comprises clock unit and keyboard and display unit, one-chip computer module connects clock unit and issues a signal to slave computer after the time threshold arranged in clock unit, and keyboard is connected one-chip computer module revises clock unit time threshold in order to input display information with display unit.Surround lighting detecting unit comprises photo resistance and transistor circuit, and transistor circuit connects photo resistance and according to the resistance determination operating state of photo resistance, transistor circuit connects the clock unit of one-chip computer module.Photo resistance is the resistor that a kind of resistance value utilizing the photoelectric effect of semiconductor to make changes with the Strength Changes of incident light, and during incident intensity, resistance value reduces.And the collector electrode output voltage of triode is input in the middle of A/D converter.Owing to being integrated with high-precision 12 A/D digital to analog converters in the middle of single-chip microcomputer, therefore select its inner A/D converter, its analog input control range, at 0 ~ 5V, is determined by the storage of single-chip microcomputer and control register Sref position thereof.
Slave computer comprises microprocessor, object localization detecting unit and constant current source unit, object localization detecting unit connects the infrared signal that microprocessor sends in order to human body and vehicle, the input of microprocessor connects RS485 bus, constant current source unit connects microprocessor in order to according to instruction stable output drive current, and constant current source unit obtains output and connects LED street lamp.
Object localization detecting unit comprises pyroelectric infrared sensor, Fresnel lens, secondary discharge circuit and double-limit comparator unit, Fresnel lens covers on the surface of pyroelectric infrared sensor, pyroelectric infrared sensor connects secondary discharge circuit, and secondary discharge circuit connects double-limit comparator unit.Constant current source unit comprises constant pressure source unit and series electric circuit negative feedback circuit, and constant pressure source unit connects on the microprocessor, and constant pressure source unit connects series electric circuit negative feedback circuit and exports adjustable stabilized driving electric current.Pyroelectric infrared sensor and Fresnel lens utilize infrared ray sensor the infrared ray that object emission goes out can be detected, thus the existence of different objects can be detected.Manufacture the material of pyroelectric infrared sensor, with ceramic oxide and piezoelectric crystal with the most use, this kind of material has strong spontaneous polarization performance, and the polarized state producing medium during variations in temperature when being subject to thermal radiation changes thereupon.Because the speed of internal charge is far away higher than the pace of change of surface charge, crystal two ends can produce the equal and opposite polarity independent charge of quantity, dielectric pyroelectric effect that Here it is.Pyroelectric infrared sensor utilizes testee thermal radiation to cause the change of senser temperature to detect.Pyroelectric infrared sensor is widely applied to the fields such as safety monitoring, electronic anti-theft, self-control lighting and industry automatic control.The infrared energy of object release is very faint, and when directly with pyroelectric infrared sensor receiving infrared-ray, sensitivity is relatively low, is generally difficult to meet system requirements.In order to improve the receiving sensitivity of pyroelectric infrared sensor, a slice Fresnel lens in its face cap, its detection range can be increased to original 5 ~ 7 times.Fresnel lens is a kind of thin line lens of plastics be made up according to Fresnel principle of polythene material, is greater than 65% to ultrared transmissivity.According to the operation principle of Fresnel lens, the infrared ray launched when there being mobile object enters the investigative range of lens, Fresnel lens can produce one and replace " blind area " and " highly sensitive district ", the senser Polling moving object of two differential concatenations of pyroelectric infrared sensor, after forming a series of light pulse, enter transducer.So pyroelectric infrared sensor cannot detect static object.Fresnel lens should meet equal with the focal length of Fresnel lens when mounted with the distance between pyroelectric infrared sensor.
Systemic-function is divided into the control module with independent subfunction by the utility model, and adopt modular mode to be easier to read and understand, software configuration is more clear, and is beneficial to software debugging.Systems soft ware scheme is primarily of formations such as initialize routine, bias light trace routine, human infrared signal trace routine and RS-485 agreements.After circuit electrifying startup, single-chip microcomputer carries out initialization operation, and circuit control system enters operating state, and the workflow diagram of this system as shown in Figure 2.Host computer initialization process, the system that arranges allows lighting time, whether detect has been lighting time, if not lighting time then LED street lamp extinguishing, if lighting time then carries out bias light detection, judge that whether bias light is lower than preset value, if bias light is not less than preset value, then proceed bias light to detect, if bias light is lower than preset value, host computer sends order and data to slave computer, and then one-chip computer module is switched to microprocessor and starts working; Slave computer carries out initialization process, carries out infrared signal detection, judges whether infrared signal to be detected, if infrared signal do not detected, LED street lamp is extinguished, if the infrared signal of detecting, PWM drive voltage signal exports, LED street lamp is lighted, and the moment judges whether it is lighting time.Within regulation lighting time, if bias light intensity is more weak, host computer sends to slave computer order and the information of starting working, otherwise slave computer wait-for-response host computer sends order.After slave computer response, when having people or vehicle to enter the intensity of infrared detection area single-chip microcomputer according to bias light, output pulse width modulation signal PWM, driving governor lights LED, ensures that LED light intensity is enough to the visibility meeting road surface.If slave computer does not detect infrared signal, street lamp LED extinguishes.
One-chip computer module also comprises arithmetic unit, controller, register etc., and all operations performed by arithmetic unit is all that the control signal sent by controller is commanded, and an arithmetical operation produces an operation result, and a logical operation produces a judgement.In the microprocessor of slave computer by internal bus interconnected to ALU, counter, register and one-chip computer module, and to be connected by the memory of external bus and outside, input/output interface circuit.External bus is also called system bus, is divided into data/address bus DB, address bus AB and control bus CB.By input/output interface circuit, realize being connected with various ancillary equipment.When microprocessor is to memory deposit data, microprocessor from interior access data and microprocessor from internal memory sense order, all address register and data register to be used.Equally, if using the address of ancillary equipment as memory address unit, then when microprocessor and peripheral devices exchange information, also need to use address register and data register.
LED luminance regulating system adopts PWM to regulate LED light brightness, carries out light modulation and is actually a certain fixing direct voltage through opening with certain frequency and closed switch, thus change the voltage on LED with PWM to LED.When obtaining same luminosity, pulse current driver mode is less than the current value required for direct current driven mode, so pulse current drives can bring high efficiency to system.By using the intensity of photo resistance detection background light, controlled the intensity of LED lamplight by constant current source.According to each, the time difference of darkness arranges respective street lamp and opens and closes the time in season, detects, realizes the intelligentized control method to street lamp, improve the validity of street lighting, avoid the waste of electric power resource in the stipulated time to mobile object.The utility model belongs to electronic equipment high-end product, and technology is novel, and market is with strong points, and manufacture simple, a thing multipotency, has the advantage that traditional simple function product is incomparable.
By reference to the accompanying drawings the utility model is exemplarily described above; obvious the utility model specific implementation is not subject to the restrictions described above; as long as have employed the improvement of the various unsubstantialities that method of the present utility model is conceived and technical scheme is carried out; or design of the present utility model and technical scheme directly applied to other occasion, all within protection range of the present utility model without to improve.The protection range that protection range of the present utility model should limit with claims is as the criterion.