CN109029723A - Illuminance sensor and illuminance measurement system - Google Patents

Illuminance sensor and illuminance measurement system Download PDF

Info

Publication number
CN109029723A
CN109029723A CN201810863315.7A CN201810863315A CN109029723A CN 109029723 A CN109029723 A CN 109029723A CN 201810863315 A CN201810863315 A CN 201810863315A CN 109029723 A CN109029723 A CN 109029723A
Authority
CN
China
Prior art keywords
illuminance
module
arm plate
embedded
illuminance sensor
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
CN201810863315.7A
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.)
Huazhong Normal University
Central China Normal University
Original Assignee
Huazhong Normal University
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 Huazhong Normal University filed Critical Huazhong Normal University
Priority to CN201810863315.7A priority Critical patent/CN109029723A/en
Publication of CN109029723A publication Critical patent/CN109029723A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01JMEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
    • G01J1/00Photometry, e.g. photographic exposure meter
    • G01J1/42Photometry, e.g. photographic exposure meter using electric radiation detectors
    • G01J1/44Electric circuits

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Spectroscopy & Molecular Physics (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)
  • Photometry And Measurement Of Optical Pulse Characteristics (AREA)

Abstract

The invention discloses a kind of illuminance sensors, it includes STM32 module, power module, J-link download module, UART turns of 485 modules, illuminance acquisition module, the power module is respectively STM32 module, J-link download module, UART turns 485 modules, illuminance acquisition module is powered, the STM32 module turns 485 modules with J-link download module, UART respectively, illuminance acquisition module is connect, and STM32 module is communicated by Modbus agreement with host computer.Invention additionally discloses a kind of illuminance measurement systems.The present invention can be communicated with external host computer in real time, to control in time the illuminance in tunnel, improve the traffic safety in tunnel and save electric energy.

Description

Illuminance sensor and illuminance measurement system
Technical field
The present invention relates to illuminance measurement fields, and in particular to a kind of illuminance sensor and illuminance measurement system.
Background technique
According to national regulation, each section of brightness needs monitored in tunnel, and traditional illuminance sensor can be completed to supervise The function of survey, but without communication function, we can not obtain each section in tunnel of Lighting information in real time, can not implement real-time control.
Summary of the invention
The purpose of the present invention is to provide a kind of illuminance sensor and illuminance measurement system, the illuminance sensor energy It is communicated in real time with external host computer, to control in time the illuminance in tunnel, the traffic safety in tunnel can be improved And electric energy is saved.
The technical scheme adopted by the invention is that:
A kind of illuminance sensor comprising STM32 module, power module, J-link download module, UART turn 485 moulds Block, illuminance acquisition module, the power module are respectively STM32 module, J-link download module, UART turns of 485 modules, light The power supply of illumination acquisition module, the STM32 module turns 485 modules with J-link download module, UART respectively, illuminance acquires mould Block connection, STM32 module are communicated by Modbus agreement with host computer.
According to the above scheme, the power module provides 3.3V voltage for STM32 module, provides to illuminance acquisition module 3.3V voltage provides 3.3V voltage to J-link download module, turns 485 modules to UART and provides 3.3V and 5V voltage.
According to the above scheme, the power module includes that 12V turns 5V circuit, 5V turns 3.3V circuit, and 12V turns the circuit selection of 5V Low-power consumption voltage stabilizing chip LM2596S-5V, 5V turn the circuit selection AMS1117-3.3 chip of 3.3V.
According to the above scheme, the illuminance acquisition module uses BH1750FVI chip;UART turns 485 modules and uses ADM2483 chip.
Illuminance sensor has the function of function of initializing, modification communication baud rate and modification slave addresses function.
The present invention also provides a kind of illuminance measurement systems comprising above-mentioned illuminance sensor, the illuminance sensing The tunnel illuminance data of acquisition are transmitted to the embedded-type ARM plate being laid in tunnel, embedded-type ARM by Modbus agreement by device Plate passes data to remote server by wireless router, 3G or 4G phonecard, and remote server passes data to number It is shown according to display platform.
According to the above scheme, the illuminance measurement system further includes ARM plate, and ARM plate receives the electric energy that intelligent electric meter transmits Data, embedded-type ARM plate receive the car flow information data that transmit of vehicle checker, ARM plate, embedded-type ARM plate by wireless router, Above-mentioned data are passed to remote server by 3G or 4G phonecard, and remote server passes data to data display platform progress It shows, remote server controls the lighting system in tunnel according to illuminance data, energy data, car flow information data System.
According to the above scheme, illuminance sensor is as Modbus slave, the instruction of real time polling embedded-type ARM plate;For embedding The instruction for entering the transmission of formula ARM plate, does corresponding judgement, and based on the judgement done, make corresponding reply.
According to the above scheme, polling procedure realization in a while (1), illuminance sensor and embedded-type ARM plate (on Position machine) communication interface be RS485, communication protocol is Modbus agreement.It is sent when illuminance sensor is polled to by host After instruction, further judgement can be done.
According to the above scheme, corresponding judgement, decision instruction are done in the instruction that illumination detection device can be sent for embedded-type ARM plate Whether message is effective;Specifically: the address for first determining whether the destination address of this section of message whether thus illuminance sensor, if report The address of represented expectation this non-sensor of communication slave address in text, then dropping packets carry out CRC if address is consistent Verification, if CRC is correct, judges its function code;For different function, illuminance sensor will do different replies.
According to the above scheme, illuminance sensor is requested after having judged address, CRC and function code based on embedded-type ARM plate Corresponding function, illuminance sensor can give information-reply to embedded-type ARM plate;When function code is " 04 ", illuminance sensing Illuminance, temperature, humidity information are replied to embedded-type ARM plate by device;When function code is " 06 ", illuminance sensor will be according to Itself address Modbus is modified according to message content or is modified itself operating rate or is carried out initial work.
Illuminance sensor is deployed in tunnel face and tunnel, by RS485 bus communication, is based on Modbus protocol realization Then the differentiation of different address realizes that more sensors are communicated with host computer.For this illuminance sensor as slave, host computer is (embedding Enter formula ARM plate) as host.Host computer connects multiple sensors by RS485 interface, and sensor is constantly in reception pattern, Host is waited to request in a manner of poll.
The beneficial effects of the present invention are:
Illuminance sensor can have by Modbus agreement and embedded-type ARM plate real time communication, high resolution close to view Feel the spectral sensitivity characteristic of sensitivity, and light source dependence is weaker;
The MCU of illuminance sensor is STM32, is communicated using various protocols with sensor, such as monobus, SPI, I2C etc.; Moreover, dual-sided board is used in circuit design, simplifies design, reduces sensor volume;Finally, transplanting is a newest Protocol stack --- FreeModbus protocol stack, for realizing the Modbus function of sensor;
Illuminance sensor realizes the reality to photometric data inside and outside tunnel as Modbus slave, by embedded-type ARM plate When acquire, and using technology of Internet of things by data upload in cloud, to analyze the optimal brightness in tunnel, instruct tunnel The switch of interior lamps and lanterns, to realize tunnel safety driving and energy conservation;
Illuminance sensor can be applied to each place and weather condition, no matter indoor and outdoor;
The present invention is based on the intelligent measure that Modbus agreement and RS485 interface realize illuminance, illuminance, the temperature of acquisition The accuracy rate of humidity reaches 96%.
Detailed description of the invention
Present invention will be further explained below with reference to the attached drawings and examples, in attached drawing:
Fig. 1 is that 12V turns 5V circuit;
Fig. 2 is that 5V turns 3.3V circuit;
Fig. 3 is the circuit diagram of illuminance acquisition module;
Fig. 4 is the circuit diagram of STM32 module (main MCU module);
Fig. 5 is the circuit diagram of J-link download module;
Fig. 6 is the circuit diagram that UART turns 485 modules;
Fig. 7 is the structural schematic diagram of illuminance sensor;
Fig. 8 is the structural schematic diagram of illuminance measurement system;
Wherein: 1, STM32 module, 2, power module, 3, J-link download module, 4, UART turns of 485 modules, 5, illuminance Acquisition module, 6, embedded-type ARM plate, 7, intelligent electric meter, 8, vehicle checker, 9, remote server, 10, data display platform, 11, tunnel Road, 12, illuminance sensor, 13, ARM plate.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that described herein, specific examples are only used to explain the present invention, not For limiting the present invention.
Referring to a kind of illuminance sensor of Fig. 7 comprising STM32 module 1, power module 2, J-link download module 3, UART turns 485 modules 4, illuminance acquisition module 5.Power module 2 is that STM32 module 1 provides 3.3V voltage, is acquired to illuminance Module 5 provides 3.3V voltage, provides 3.3V voltage to J-link download module 3, turns 485 modules 4 to UART and provides 3.3V and 5V Voltage.STM32 module 1 turns 485 modules 4 with J-link download module 3, UART respectively, illuminance acquisition module 5 is connect, STM32 Module 1 is communicated by Modbus agreement with host computer (embedded-type ARM plate 6).STM32 module 1 gets illuminance acquisition module 5 Collected illuminance data, and 485 modules 4 are turned by UART, photometric data is sent to embedded-type ARM plate 6, under J-link Carrying module 3 is that cooperation STM32 module 1 carries out program downloading and facilitates debugging.
Power module includes that 12V turns 5V circuit, 5V turns 3.3V circuit.12V turns 5V circuit as shown in Figure 1, to promote sensing Device quality, 12V turn 5V circuit selection low-power consumption voltage stabilizing chip LM2596S-5V and realize;The input of LM2596S maximum is 40V, line Property degree and load regulation characteristic it is good, LM2596S-5V indicate its fix output be 5V;Chip interior is integrated with fixed frequency hair Raw device and frequency compensator, the output electric current of standby mode is only 80uA;Power conversion efficiency when chip output 5V is reachable 80%.5V turns 3.3V circuit as shown in Fig. 2, 5V, which turns 3.3V circuit selection AMS1117-3.3 chip, realizes that the inside AMS1117 collects It is a positive low dropout voltage regulator at overheating protection and current-limiting circuit;AMS1117-3.3 fixes output voltage 3.3V, essence Degree reaches 1%.
The circuit diagram of illuminance acquisition module is as shown in figure 3, select BH1750FVI as the master control of illuminance acquisition module Chip, BH1750FVI support I2C bus interface, easy to use, the digital quantity of direct output illuminance.BH1750FVI resolution ratio Height has the spectral sensitivity characteristic close to visual sensitivity, and precision is up to 0.5lx, and light source dependence is weaker.
The circuit diagram of STM32 module (main MCU module) is as shown in figure 4, select the single-chip microcontroller of model STM32F103C8T6 For illuminance sensor core main control MCU, the STM32 of the model has 48 feet, belongs to the enhanced CPU of intermediate size, is to be based on 32 Cortex-M3 kernel CPU, the maximum operating frequency 72MHz of ARM embed the RC oscillator of 8MHz, carry 128k's Flash, 2 12 ADC, 7 timers, 2 I2C interface, 3 USART interfaces, 2 SPI interfaces and DMA function.STM32 It is communicated using various protocols with senser element, transplants FreeModbus protocol stack, for realizing the Modbus function of sensor, fortune Data are uploaded for sensing the illuminance of various occasions, and using technology of Internet of things.STM32 is through I2C bus and BH1750 Communication obtains Real-Time Optical illumination, and STM32 is communicated by RS485 interface and Modbus agreement with host computer (embedded-type ARM plate 6), It can be immediately by the request of the Lighting information response host computer (embedded-type ARM plate 6) of sensor;Finally, due to which multiple be based on STM32 Illuminance sensor with Modbus agreement as Modbus slave, distinguish by different addresses, therefore needs by different slaves The information such as address and the baud rate of sensor are stored in the Flash of STM32.Debug J-link download circuit such as Fig. 5 of STM32 It is shown.
UART turns the circuit of 485 modules as shown in fig. 6, turning the chip of 485 modules using ADM2483 chip as UART. ADM2483 is a 485 chip of isolated form, and maximum transmission rate allows up to 256 up to 500Kbps, number of nodes.
Referring to Fig. 8, a kind of illuminance measurement system, including embedded-type ARM plate 6, ARM plate 13 and be installed in inside and outside tunnel 11 Above-mentioned illuminance sensor 12, illuminance sensor 12 have the different addresses Modbus;Illuminance sensor 12 passes through The tunnel illuminance data of acquisition are transmitted to (the illuminance sensor of embedded-type ARM plate 6 being laid in tunnel 11 by Modbus agreement 12 are connect by RS485 bus with the RS485 interface of embedded-type ARM plate 6), embedded-type ARM plate 6 also receives what vehicle checker 8 transmitted Car flow information data, ARM plate 13 receive the energy data that intelligent electric meter 7 transmits, and embedded-type ARM plate 6, ARM plate 13 pass through wireless Above-mentioned data are passed to remote server 9 by router, 3G or 4G phonecard, and remote server 9 passes data to data exhibition Show that platform 10 is shown;Remote server 9 is calculated according to illuminance data, energy data, car flow information data through fuzzy control Method will control conclusion feedback into tunnel illuminating system, control each section in tunnel of illuminance.
The illuminance measurement system further includes ARM plate, ARM plate
In the present invention, embedded-type ARM plate 6 is based on the timing of illuminance acquisition protocols and sends instruction to sensor, can be to tunnel Illuminance inside and outside road is acquired.Illuminance that 6 acquisition and storage illuminance sensor of embedded-type ARM plate measures, intelligence electricity The car flow information that table 7 and vehicle checker 8 detect is reported to data information remotely by wireless router plus 3G or 4G phonecard Server 1.The data such as illumination, wagon flow, electricity consumption on server are showed in webpage by the application web technologies of data display platform 10 Or mobile phone terminal can more intuitive observation changing rule and control effect by curve, histogram etc..
This illuminance sensor has the function of function of initializing, modification communication baud rate and modification slave addresses function.
Illuminance sensor 12 is used as Modbus slave, and real time polling embedded-type ARM plate 6 instructs;For embedded-type ARM plate 6 instructions sent, do corresponding judgement, and based on the judgement done, make corresponding reply.Polling procedure is in a while (1) it is realized in.
Corresponding judgement is done in the instruction that illuminance sensor 12 can be sent for embedded-type ARM plate 6, and decision instruction message is It is no effective;Specifically: the address for first determining whether the destination address of this section of message whether thus illuminance sensor 12, if in message The address of represented expectation this non-sensor of communication slave address, then dropping packets verify CRC if address is consistent, If CRC is correct, its function code is judged;For different function, illuminance sensor will do different replies.
Illuminance sensor after having judged address, CRC and function code, based on embedded-type ARM plate request corresponding function, Illuminance sensor can give information-reply to embedded-type ARM plate;When function code be " 04 " when, illuminance sensor by illuminance, Temperature, humidity information reply to embedded-type ARM plate;When function code is " 06 ", illuminance sensor will be according to message content It modifies itself address Modbus or modifies itself operating rate or carry out initial work.
It should be understood that for those of ordinary skills, it can be modified or changed according to the above description, And all these modifications and variations should all belong to the protection domain of appended claims of the present invention.

Claims (9)

1. a kind of illuminance sensor, it is characterised in that: including STM32 module, power module, J-link download module, UART Turn 485 modules, illuminance acquisition module, the power module is respectively STM32 module, J-link download module, UART turns 485 Module, the power supply of illuminance acquisition module, the STM32 module turn 485 modules, illumination with J-link download module, UART respectively Acquisition module connection is spent, STM32 module passes through Modbus agreement and embedded-type ARM board communications.
2. illuminance sensor according to claim 1, it is characterised in that: the power module provides for STM32 module 3.3V voltage, provides 3.3V voltage to illuminance acquisition module, provides 3.3V voltage to J-link download module, turns to UART 485 modules provide 3.3V and 5V voltage.
3. illuminance sensor according to claim 2, it is characterised in that: the power module include 12V turn 5V circuit, 5V turns 3.3V circuit, and circuit selection the low-power consumption voltage stabilizing chip LM2596S-5V, 5V that 12V turns 5V turn the circuit selection of 3.3V AMS1117-3.3 chip.
4. illuminance sensor according to claim 1, it is characterised in that: the illuminance acquisition module uses BH1750FVI chip;UART turns 485 modules and uses ADM2483 chip.
5. a kind of illuminance measurement system, it is characterised in that: including the illuminance sensor any in claim 1-4, The illuminance sensor tunnel illuminance data of acquisition are transmitted to by Modbus agreement be laid in it is embedded in tunnel ARM plate, embedded-type ARM plate pass data to remote server, remote server by wireless router, 3G or 4G phonecard Data display platform is passed data to be shown.
6. illuminance measurement system according to claim 5, it is characterised in that: the illuminance measurement system further includes ARM plate, ARM plate receive the energy data that intelligent electric meter transmits, and embedded-type ARM plate receives the car flow information number that vehicle checker transmits According to above-mentioned data are passed to remote server by wireless router, 3G or 4G phonecard by ARM plate, embedded-type ARM plate, far Journey server passes data to data display platform and is shown, and remote server is according to illuminance data, energy data, vehicle Stream information data control the lighting system in tunnel.
7. illuminance measurement system according to claim 5, it is characterised in that: illuminance sensor as Modbus from Machine, the instruction of real time polling embedded-type ARM plate;For the instruction that embedded-type ARM plate is sent, corresponding judgement is done, and is based on being done Judgement, make corresponding reply.
8. illuminance measurement system according to claim 7, it is characterised in that: illuminance sensor can be directed to embedded Corresponding judgement is done in the instruction that ARM plate is sent, and whether decision instruction message is effective;Specifically: first determine whether the mesh of this section of message Address whether thus illuminance sensor address, if expectation this non-sensor of communication slave address represented in message Address, then dropping packets verify CRC if address is consistent, if CRC is correct, judge its function code;For Different function, illuminance sensor will do different replies.
9. illuminance measurement system according to claim 8, it is characterised in that: illuminance sensor judged address, After CRC and function code, based on the corresponding function of embedded-type ARM plate request, illuminance sensor can be by information-reply to embedded ARM plate;When function code is " 04 ", illuminance, temperature, humidity information are replied to embedded-type ARM plate by illuminance sensor;When When function code is " 06 ", illuminance sensor will modify itself address Modbus according to message content or modify itself work speed Rate carries out initial work.
CN201810863315.7A 2018-08-01 2018-08-01 Illuminance sensor and illuminance measurement system Pending CN109029723A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810863315.7A CN109029723A (en) 2018-08-01 2018-08-01 Illuminance sensor and illuminance measurement system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810863315.7A CN109029723A (en) 2018-08-01 2018-08-01 Illuminance sensor and illuminance measurement system

Publications (1)

Publication Number Publication Date
CN109029723A true CN109029723A (en) 2018-12-18

Family

ID=64647488

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810863315.7A Pending CN109029723A (en) 2018-08-01 2018-08-01 Illuminance sensor and illuminance measurement system

Country Status (1)

Country Link
CN (1) CN109029723A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102157057A (en) * 2011-05-09 2011-08-17 上海大学 Wi-Fi (Wireless Fidelity)-based wireless meter reading device
CN102736605A (en) * 2012-06-30 2012-10-17 李钢 Modbus communication concentrator
US20130046412A1 (en) * 2009-03-17 2013-02-21 Jetlun Corporation Method and system for intelligent energy network management control system
CN108353090A (en) * 2015-08-27 2018-07-31 雾角系统公司 Edge intelligence platform and internet of things sensors streaming system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130046412A1 (en) * 2009-03-17 2013-02-21 Jetlun Corporation Method and system for intelligent energy network management control system
CN102157057A (en) * 2011-05-09 2011-08-17 上海大学 Wi-Fi (Wireless Fidelity)-based wireless meter reading device
CN102736605A (en) * 2012-06-30 2012-10-17 李钢 Modbus communication concentrator
CN108353090A (en) * 2015-08-27 2018-07-31 雾角系统公司 Edge intelligence platform and internet of things sensors streaming system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张伟刚: "基于物联网的高速公路隧道智慧照明节能系统设计", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Similar Documents

Publication Publication Date Title
Rajput et al. Intelligent street lighting system using gsm
Leccese et al. Intelligent wireless street lighting system
CN201262704Y (en) Wireless monitoring apparatus for dwelling house energy-saving
CN103444257B (en) The method and apparatus of low-power consumption MANET remote sensing monitoring physical quantity
CN204442763U (en) Based on the energy-saving streetlamp system of Internet of Things Based Intelligent Control
CN203984447U (en) A kind of system for Smart Home controlled in wireless
CN104582202A (en) Energy-saving streetlamp system based on intelligent control of Internet of Things and control method of energy-saving streetlamp system
CN104902633A (en) Building intelligent lighting system
CN207603967U (en) A kind of intelligent road lamp system based on Internet of Things
CN204539531U (en) A kind of wisdom street lamp control system
CN209375695U (en) A kind of Road Tunnel Environment sensory perceptual system based on Internet of Things and cloud computing technology
CN102196636B (en) Centralized control circuit of light-emitting diode (LED) street lamp
Archana et al. E–street: LED powered intelligent street lighting system with automatic brightness adjustment based on climatic conditions and vehicle movements
Zhao et al. Design of multi-channel data collector for highway tunnel lighting based on STM32 and Modbus protocol
CN202549151U (en) Wireless monitoring and control practical training system of street lamp
CN201986231U (en) Centralized control circuit of LED (light-emitting diode) streetlamp
CN207783222U (en) A kind of intelligent road-lamp dimming control system with environment monitoring function
CN109029723A (en) Illuminance sensor and illuminance measurement system
CN208477715U (en) A kind of street lamp topology network architecture and management system based on zigbee and GPRS
CN102548147A (en) Control system applied to wind energy photovoltaic power supply illumination
Sumathi et al. Arm based street lighting system with fault detection
Qu et al. Centralized control system for smart street lights based on STM32 and LoRa
CN213715761U (en) Farmland environment remote measuring device
CN106973451A (en) A kind of Intelligent LED lighting control system
CN212300438U (en) Wireless monitoring system for farm

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20181218

WD01 Invention patent application deemed withdrawn after publication