Next Article in Journal
A Reliability-Enhanced Differential Sensing Amplifier for Hybrid CMOS/MTJ Logic Circuits
Next Article in Special Issue
Destination Image Perception Mediated by Experience Quality: The Case of Qingzhou as an Emerging Destination in China
Previous Article in Journal
Recent Advances and Applications of AI-Based Mathematical Modeling in Predictive Control of Hybrid Electric Vehicle Energy Management in China
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Design of Vehicle Tunnel Illumination Measurement Device Based on STC12C5A60S2 Single-Chip Microcomputer

School of Electrical and Control Engineering, Shaanxi University of Science and Technology, Xi’an 710021, China
*
Author to whom correspondence should be addressed.
Electronics 2023, 12(2), 443; https://doi.org/10.3390/electronics12020443
Submission received: 6 December 2022 / Revised: 9 January 2023 / Accepted: 11 January 2023 / Published: 14 January 2023

Abstract

:
In order to measure tunnel illumination with high efficiency and accuracy, a vehicle-mounted tunnel illumination measurement device is designed in this paper. The device comprises a measurement module, a control module, a display module, and a power module. The measurement module is composed of a BCE illuminance sensor and an inductive proximity switch, which can realize a single illuminance measurement within a fixed distance. The control module, i.e., the STC12C5A60S2 single-chip microcomputer, sends the single measurement data to the storage module to realize dynamic automatic measurement. The display module is an LCD1602 liquid crystal display, which displays the measured tunnel mileage and real-time illumination. The whole device is fed by the powered module. The man–machine exchange interface of the Visual Basic (VB) host computer and Access database are used to display and store the previous illuminance measurement data, respectively. Extensive experiments show that the device has the advantages of a simple structure, convenient installation, stable operation, and accurate and efficient measurement, and can realize an automatic measurement of illumination in a long tunnel.

1. Introduction

Tunnel lighting plays an important role in highway traffic. The “black hole effect” and “white hole effect” [1] caused by the difference in illumination inside and outside the tunnel and the insufficient lighting environment [2] will have effects on drivers and driving safety. Pan Fuquan et al. analyzed the characteristics of drivers’ eye movements at the entrance and exit of an undersea tunnel and the variation law of vehicle speed, discussed the relationship between eyelid closure, blink frequency, fixation duration, vehicle speed, illumination, and gradient, and established the mathematical model in [3]. In [4], Qiao Jiangang et al. qualitatively and quantitatively analyzed the relationship between the distance of the expressway tunnel entrance and the light intensity, the speed, and the driver’s physiological response and established a multiple regression safety evaluation model for the tunnel entrance section, providing a theoretical reference for the design of the expressway tunnel entrance lighting parameters and traffic safety management.
In order to achieve accurate tunnel illumination control and reduce lighting energy consumption while ensuring traffic safety, it is necessary to accurately measure the illumination in the tunnel. The traditional manual point-by-point measurement is inefficient, the later data processing is cumbersome, and the road needs to be closed. Therefore, it is urgent to design a measuring device to realize the dynamic and efficient measurement of highway tunnel illuminance.
Sun Yaoyuan et al. analyzed the principle of illuminance and brightness detection and the structure of the illuminometer and luminance meter in detail and systematically analyzed the control requirements of tunnel lighting in [5]. Ma Yangye briefly introduced the detection and calculation of expressway tunnel lighting and accumulated experience in the detection of expressway tunnel lighting in [6], and in [7], Zhang Jianxiong discussed the detection method of tunnel illumination with reference to relevant specifications, and detection examples provided a reference for highway tunnel illumination detection. Song Changyu introduced the detection method and calculation process of highway tunnel illuminance in [8] and analyzed the data processing in combination with the detection examples to provide a reference for relevant construction personnel. Li Weiping et al. introduced the numerical calculation method of tunnel lighting in [9], which included the calculation of illuminance, brightness, and uniformity. In view of the deficiencies in Chinese tunnel lighting standards and the problems existing in the design and operation of tunnel lighting, Zhao Hanwen proposed an improvement scheme for the ground lighting at the entrance of the tunnel and used DIALux to model the tunnel entrance section and the middle section in [10]. Liang Bo et al. carried out a series of tunnel lighting energy-saving tests based on the concept of reflective light storage in [11], which included an indoor simulation test, physical tunnel test, and field test, and discussed the laws of tunnel energy-saving lighting. Wang Xiang et al. studied the illuminance change rate of drivers’ visual adaptation at the tunnel entrance through the design illuminance test experiment and proposed a calculation method for the length of the tunnel entrance dimming component combined with the relevant tunnel interior lighting specifications in [12]. Bao Yifan et al. proposed two design ideas for the light–dark alternation phenomenon at the entrance and exit of the tunnel in [13], which are, respectively, used to alleviate the light–dark effect at the entrance and exit of the tunnel group, eliminate the light–dark effect, and alleviate the visual fatigue caused by long-time driving. In [14], quantitative analysis was made on the light and dark adaptation rule of drivers at the tunnel entrance and exit sections and the influence of sunshade on the maximum pupil change rate, providing theoretical support for the construction of a comfortable light environment at the tunnel entrance and exit sections.
The above literature analyzed the importance of tunnel illuminance detection, gave the calculation method of tunnel illuminance, and proposed the lighting improvement scheme. However, it did not give a specific design method for the illuminance detection device.
In recent years, in order to replace manual standing point measurement, a variety of measuring devices and methods have emerged. Zhang Qingwen et al. proposed a method for detecting the lighting quality of the tunnel entrance section through field experiments on multiple tunnel entrance sections by using an advanced eye tracker system based on the “safe visual distance method” in [15]. This method requires drivers to wear eye tracker helmets and can only achieve illumination detection at the entrance section. Cheng Qingchun designed a vehicle-mounted long tunnel illuminance dynamic detection system based on the C8051F061 single-chip microcomputer in [16], which can meet the main technical requirements of a wide range of and fast signal acquisition speeds for long tunnel illuminance dynamic measurement. However, in order to achieve the specified number of measurements within a fixed interval, the vehicle needs to drive at a constant speed of 5 km/h, and the road should be closed during measurement to ensure road safety. Cheng Zhiqing et al. developed a vehicle-borne intelligent detection system for tunnel illumination in [17], which improved the detection efficiency and accuracy and greatly shortened the time for sealing the road during detection. However, much measuring equipment is required, and the overall system is expensive, which is not conducive to large-scale promotion in the country.
In view of the above problems, this paper designed a vehicle-mounted expressway tunnel illuminance detection device, which is composed of a measurement module, control module, display module, storage module, and power module. It is convenient to install, simple to operate, low in cost, low in speed control requirements, has no need to close the road during the measurement period, and can realize the dynamic automatic measurement of expressway long tunnel illuminance.

2. Working Principle and Hardware Design

2.1. Working Principle of Measuring Device

The vehicle tunnel illuminance measurement device designed in this paper consists of a measurement module, control module, display module, and power module. The installation mode of the device is shown in Figure 1. The illumination sensor, control module, display module, and power module in the measurement module are fixed on the car roof, and three illumination sensors are installed side by side at an interval of 1 m. The inductive proximity switch in the measurement module is installed above the vehicle wheels.
The hardware design principle block diagram of the device is shown in Figure 2. We know the wheel diameter range is 60~80 cm, and the device moves forward 0.94~1.26 m every half turn. At this time, the inductive proximity switch generates pulse signals by detecting two metal sheets installed at the central axis of the wheel. Every time a pulse signal is generated, the control module drives the illuminance sensor to measure the illuminance and transmits the measured data to the display module and the upper computer.

2.2. Measuring Module

The measurement module consists of 3 BCE illuminance sensors and an inductive proximity switch. It can simultaneously measure the illuminance data of three target measurement points in the tunnel, and the measured illuminance data are sent to the control module through the IIC communication interface. See Figure 1 and Figure 2.
As shown in Figure 3, the BCE illuminance sensor has the same internal structure as the GY-30 BH1750 illuminance sensor. However, the BCE (BackChannel-Etching) illuminance sensor is equipped with an optical protective cover, which can also transmit light and seal internal components. Moreover, its hollow hemispherical structure has little impact on the directional error, good processability, and high mechanical strength. The working voltage of the illuminance sensor is 3~5 V, the working temperature is—40~85 °C, the storage temperature is—40~100 °C, and the data range is 0~65,535. Nonlinear: ≤0.2% FS; sensor sensitivity: ±3% FS; resolution: 10 Lux; circuit noise includes integrated PPG sensor front-end circuits, such as MAX30112. By combining these functions into a single cost-effective IC, the implementation of PPG is simplified. It drives the LED light source and samples the output of the photodetector. According to the selection of LED and photoelectric detector, the photocurrent involved ranges from sub nA to tens of µA. It is simple in structure, cheap in price, and suitable for complex tunnel environments [18,19].
The inductive proximity switch is installed above the car wheel as an external interrupt source, and the metal sheet on the side of the wheel is used as the detection body. When the wheel rotates half a circle, the device moves forward 0.94~1.26 m, the inductive proximity switch will be triggered once to generate a pulse signal and send it to the control module. The inductive proximity switch model is LJ12A3-4-Z/BX, the detection distance is 4 mm, the working voltage is DC 12~24 V [20], and it has strong anti-interference, stable performance, sensitive induction, and fast response. Its physical diagram is shown in Figure 4.

2.3. Control Module

The device selects STC12C5A60S2 single-chip microcomputer as the core device of the control module, which has strong anti-interference and fast processing speed. After receiving the pulse signal generated by the inductive proximity switch, the control module drives the illuminance sensors to measure the illuminance and transmits the measured data to the display module and the upper computer. The physical diagram of the control module is shown in Figure 5.

2.4. Display Module

LCD1602 LCD is selected as the display module, which is connected with the IO port of the control module to display the illuminance data measured by the illuminance sensors in a single time and the mileage data of the completed illuminance measurement, and this is compared with the data received by the upper computer in the later stage to facilitate the commissioning of the device. If the upper computer fails, the control module cannot communicate with the upper computer. The module displays the measurement data and can also measure the tunnel illumination [21].

2.5. Power Module

Considering that the device is vehicle-mounted, the running of the vehicle will inevitably bring a certain degree of mechanical vibration to the device, so the design of the entire device must be compact enough to reduce mechanical vibration and ensure the stable operation of the device. Based on the above analysis, this paper designs an independent and portable power module based on a 12 V lithium polymer battery and DC 5 V regulated power supply. The module has 5 V/2 A output capacity, stable voltage, reverse connection, overcurrent, and over temperature protection. The power module is also equipped with a charger. The measuring device is equipped with a lithium battery charging interface, which is convenient for charging. It can continuously measure the illuminance for 10 h when fully charged, which can meet the working requirements of actual tunnel illuminance measurement. The actual power module is shown in Figure 6.

3. Measuring Device Software Design

As shown in Figure 7, the software of the device includes the software of the single-chip microcomputer and the upper computer. MCU (Microcontroller Unit) program is written in C language, and the software writing platform is Keil5. The upper computer program is written in Visual Basic language, and the platform is Microsoft Visual Basic 6.0. The software of MCU includes the main program design, serial port sending program, and BCE illuminance measurement program. The upper computer program includes the main interface design, upper computer data receiving and processing program design, etc.

3.1. Single-Chip Microcomputer Program

The MCU program adopts a modular programming scheme, which consists of the main program, serial port initialization program, proximity switch program, delay program, BCE illumination sensor measurement program, LCD1602 LCD display program, etc. Its flow chart is shown in Figure 8. When the proximity switch triggers the interrupt, the MCU receives the interrupt signal, and sends the measured illuminance data and detection distance to the upper computer and LCD1602 through the serial port.

3.2. Upper Computer Program

The upper computer continuously queries the data in the buffer area through the timer, and the query time interval is far less than the transmission time interval of the illuminance measurement data. Whenever there is a frame of data in the receiving buffer area, the OnComm event of the MSComm control in VB is used to capture and process the communication event so as to ensure that the upper computer can timely detect all of the measurement data sent by the control module, and the measured values of each of the three illuminance sensors and the accumulative detection distance of the completed measurement are displayed on the host computer main interface. In addition, the measurement data can be stored in the Access database associated with the upper computer for the convenience of querying historical data for analysis. The upper computer program framework is shown in Figure 8.
The main interface of the upper computer mainly includes three areas, namely, the serial port area, the illumination display area, and the data recording area. Setting the serial port area mainly realizes the function of selecting and opening the serial port. Then the upper computer program can be started. After opening the serial port, the drop-down list will display the available serial ports on the PC to establish the connection. The illumination display area can simultaneously display the illumination data collected by the left, middle, and right illumination sensors. The main function of the data recording area is to display the historical illuminance measurement records saved in the Access database, including measurement time, serial number, illuminance value of the left illuminance sensor, illuminance value of the middle illuminance sensor, illuminance value of the right illuminance sensor, and measured mileage. In addition, the main interface includes buttons related to data operations, such as “Delete”, “Save”, and “Turn Page”, so that the measurer can conduct objective and standard data analysis.

4. Joint Debugging of Hardware and Software

4.1. Simulated Environment Test

The initial measurement and debugging were carried out in a simulated environment. This method requires three testers, two of whom move the horizontal measuring device in parallel, and the other one holds the proximity switch and an iron nail with both hands and makes the same movement. When the measuring device moves about 1 m, the tester holding the proximity switch touches the proximity switch and the iron nail once to generate a low-level interrupt signal. At this time, the measuring device measures the illuminance once. It has been verified many times that the device has good performance, stable operation, sensitive response, and can measure illuminance data with a wide range of changes. The illuminance measurement Access database history interface in different time periods is shown in Figure 9, Figure 10 and Figure 11.
After many debugging and testing attempts, the stability of the device was verified, and the real-time measurement can be realized with a high accuracy of the measured data. The upper computer interface can display the measured illuminance data in real time, and the data can be stored in the Access database in time. After the upper computer is started, the historical data can be viewed, and the page-turning operation can be realized on the upper computer interface. Each page can display multiple groups of data, and the function of viewing massive data on the upper computer interface can be realized through the page-turning operation. The device provides valuable data support for evaluating the tunnel lighting quality and timely regulation of the tunnel illumination so it is in a reasonable state. The hardware equipment of the device and the scenario of working with the software are shown in Figure 12.

4.2. Actual Tunnel Test

This actual tunnel test adopts the comparison method. First, 10 points are selected along the vehicle driving direction. We have provided the actual tunnel configuration here. Our data here are from the Qinling Zhongnanshan Road Tunnel. The Qinling Zhongnanshan Road Tunnel is designed with double holes and double lines. The clear height of the building clearance is 5 m, the clear width is 10.50 m, and the maximum longitudinal slope is 11%. The total length of a single hole is 18,020 m, the net width is 10.5 m, and the height limit is 5 m. The construction standards for two-way four lane and one-way two lane expressways are adopted, and the designed driving speed is 80 km per hour. The safety level is Class I, and the design reference period of the tunnel structure is 100 years. One emergency parking lot is set every 750 m in the upper and lower line tunnels, with an effective length of 30 m and a total length of 40 m. One cross passage is set every 500 m between the two tunnels, with a clear width of 4.5 m and a clear height of 5.97 m. One pedestrian cross passage is set every 250 m, with a clear width of 2 m and a clear height of 2.5 m. The tunnel entrance elevation is 896.9 m, and the exit elevation is 1025.4 m. Three special light belts with a length of 150 m are especially set in the Zhongnanshan Road Tunnel of the Qinling Mountains, and these are changed by different lights and slide patterns. The total traffic volume of the Qinling Zhongnanshan Road Tunnel is 287,398 vehicles (absolute traffic volume), the daily average traffic volume is 41,056 vehicles, and the traffic volume on 1 October was 52,818 vehicles. Each wheel turn can be positioned as a point. Each point can lead to three measuring points along the horizontal direction, which are the measuring positions of the three illuminance sensors on the left, middle, and right of the device, and they are numbered. For example, when the wheel turns for the first circle, the measuring position of the left sensor is marked as “measuring point 1-1”; the measuring position of the intermediate sensor is marked as “measuring point 1-2”; the measuring position of the right sensor is marked as “measuring points 1-3”; and so on. The vehicle tunnel illuminance measuring device and illuminometer are used to measure the illuminance of each measuring point, and then the data are compared to detect whether the illuminance value measured by the device is true and reliable [22,23].
It is known that the diameter of the car wheel participating in this field test was 60 cm, so every half turn of the wheel represents that the device moves forward 0.94 m. At this time, the MCU drives the sensor to measure the illumination. This process verifies that the system and the vehicle achieve linkage. After several attempts at measurements and the correction of the single-chip microcomputer illuminance conversion program, the illuminance data measured by the device and the illuminometer are basically the same, so the accuracy can be guaranteed. According to GB/T 5700-2008 «Lighting Measurement Methods», illuminometers of not less than one level shall be used for illuminance measurement. The illuminometers used in this test are shown in Figure 13, and the comparison tables of measured illuminance values are shown in Table 1, Table 2 and Table 3.
Our tunnel test data were measured by placing ten sensors in the tunnel; that is, ten sensors were deployed throughout the tunnel, and sensors were deployed at the tunnel entrance, middle of the tunnel, and exit. It can be seen from Table 1, Table 2 and Table 3 that if the illuminance data measured by the device and the illuminometer are in the same location and environment, the error is very small and can be ignored. The accuracy of the device can be guaranteed [24,25,26].
In order to fully verify the practicability of the device, this actual tunnel survey not only compares it with the data measured by the illuminometer in the same environment and location, but also selects a standard section as the measurement area to test the dynamic measurement performance of the device. According to GB/T 5700-2008 «Lighting Measurement Methods», the traditional illuminance measurement method is the central distribution method, the measurement area is divided into a square grid, and the illuminance is measured at the grid center using the specified illuminometer. The dynamic measurement performance of the vehicle tunnel illuminance measuring device can be detected by measuring the illuminance of the measuring area according to this traditional method and comparing it with the data measured by the vehicle tunnel illuminance measuring device.
Because the three illuminance sensors of the device are installed on the roof, the measured illuminance is different from the horizontal road illuminance, it is necessary to measure the illuminance difference caused by different horizontal heights in advance, and the horizontal road illuminance can be obtained by subtracting the illuminance data measured by the device. Randomly select three measuring points in the measurement area, and mark them as “measuring point ①”, “measuring point ②”, and “measuring point ③”, respectively. Measure the illuminance difference corresponding to each measuring point. The average value shows that the difference between the roof illuminance and the horizontal road illuminance is about 58 Lux. The comparison results are shown in Table 4. According to the conclusion in Table 4, another six measuring points are randomly selected and recorded as measuring points ④~⑨. The device is used to measure the corresponding roof illuminance of each measuring point. After subtraction, the device is compared with the illuminance data measured by the illuminometer. The results are shown in Table 5. The data are basically consistent, which proves that the device can achieve dynamic automatic measurement and has good performance.
The device is vehicle-mounted, and the data can be obtained only by driving through the tunnel during measurement, which reduces the interference of subjective factors caused by manual measurement, improves tunnel traffic safety, saves measurement time, and the VB upper computer located in the vehicle can display real-time measurement data and view historical data. The measurement process is convenient and fast and has more market promotion value compared with traditional manual measurement methods.

5. Summary

In this paper, a vehicle tunnel illuminance measurement device based on a STC12C5A60S2 microcontroller is designed, which can realize the dynamic real-time measurement of tunnel illuminance. It has the advantages of a fast measurement speed, high data accuracy, stability, reliability, and easy operation. It provides strong technical and equipment support for the on-site dynamic illuminance detection of long highway tunnels and has a certain promotion value.

Author Contributions

Conceptualization, Z.W. and H.G.; methodology, Z.W.; software, Z.W.; validation, Z.W., H.G.; formal analysis, Z.W.; investigation, Z.W.; resources, Z.W.; data curation, Z.W.; writing—original draft preparation, Z.W.; writing—review and editing, Z.W.; visualization, Z.W.; supervision, Z.W.; project administration, Z.W.; funding acquisition, H.G. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The experimental data used to support the findings of this study are available from the corresponding author upon request.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Ma, J. Research on Measure and Control Technology of Highway Tunnel Lighting; Tianjin University: Tianjin, China, 2006. [Google Scholar]
  2. Yang, F.; Zhu, S. Analysis of Environmental Characteristics of Insufficient Dynamic Illumination in Zhongnan Mountain Tunnel. Sci. Technol. Eng. 2015, 15, 214–218. [Google Scholar]
  3. Yang, Y.; Du, Z.; Jiao, F.; Pan, F. Analysis of EEG characteristics of drivers and driving safety in undersea tunnel. Int. J. Environ. Res. Public Health 2021, 18, 9810. [Google Scholar] [CrossRef] [PubMed]
  4. Qiao, J.; Xie, Y. Safety of Expressway Tunnel Entrance Based on Psychophysiological Response. Sci. Technol. Eng. 2021, 21, 10074–10079. [Google Scholar]
  5. Sun, Y.; Ding, J.; Zhang, J. Research on the Measurement and Control Technology of Highway Tunnel Lighting. Sichuan Cem. 2017, 46. [Google Scholar]
  6. Ma, Y. Discussion on the Detection Method of Highway Tunnel Illumination. Guangdong Highw. Commun. 2015, 57–60. [Google Scholar]
  7. Zhang, J. Discussion on Highway Tunnel Illumination Inspection. Guangdong Highw. Commun. 2020, 46, 43–46. [Google Scholar]
  8. Song, C. Discussion on Illumination Detection Method of Highway Tunnel. Transpo World 2018, 119–122. [Google Scholar]
  9. Li, W.; Qiu, X.; Cui, Y.; Zheng, G. Numerical Analysis and Design Program Development of Tunnel Lighting. China Illum. Eng. J. 2018, 29, 74–79. [Google Scholar]
  10. Zhao, H. Design of Illumination Improvement Scheme for the Entrance Section of Expressway Tunnel. Sci. Technol. Assoc. 2012, 25–27. [Google Scholar]
  11. Liang, B.; Cui, L.; Pan, G.; Luo, H. Auxiliary Tunnel Lighting Technology Based on the Light Reflection and Energy Storage Concept. Mod. Tunn. Technol. 2014, 51, 15–22. [Google Scholar]
  12. Wang, X.; Li, F.; Yang, K. Study on the Design of Dimming Structure for the Road Tunnel Entrance. Mod. Tunn. Technol. 2019, 56, 134–139. [Google Scholar]
  13. Bao, Y.; Wang, M.; Qin, P.; Chen, J.; Yan, T.; Han, C. Design of the Shading Shed for Highway Tunnel Groups Based on the Visual Adaptation Curve. Mod. Tunn. Technol. 2020, 57, 120–126. [Google Scholar]
  14. Bao, Y.; Wang, M.; Qin, P.; Chen, Z.; Han, C. Research on the Influence of Awning on Light-dark Adaptation at Tunnel Entrance and Exit. Mod. Tunn. Technol. 2021, 1–9. [Google Scholar]
  15. Zhang, Q.; Tu, Y.; Hu, Y.; Weng, J.; Chen, J.; Huang, K. Highway Tunnel Entrance Illumination Measurement Method Based on Physiological and Psychological Effects. China Illum. Eng. J. 2012, 23, 8–14. [Google Scholar]
  16. Cheng, Q. Design of A Dynamic Detection System for Long Tunnel of Highway. China Illum. Eng. J. 2016, 27, 53–57. [Google Scholar]
  17. Cheng, Z.; Yang, J.; Yang, S.; Wang, L. Research on Intelligent Detection Technology of Highway Tunnel Lighting. Mech. Electr. Inf. 2020, 127+129. [Google Scholar]
  18. Zeng, W.F.; Li, S.P.; Li, L.; Liu, J.; Wang, L.D.; Yi, Z.G. Fault diagnosis system for microwave range finders constructed by using PIC single-chip computer. 2007, 14, 195–197. Dianguang Yu Kongzhi (Electron. Opt. Control.) 2007, 14, 195–197. [Google Scholar]
  19. Lin, Z.H.; Liu, X.; Wang, L.; Zhang, S.M. Application of MSP430 in Autofocus System of Theodolite. Electron. Opt. Control. 2011, 18, 48–52. [Google Scholar]
  20. Liu, F.; Wang, H.; Ding, Y. Design of a Single-chip Computer Controlled Infrared Bait System for Target Drone Use. Electron. Opt. Control. 2006, 13, 3. [Google Scholar]
  21. Liu, X.; Hu, L.; Dong, Q.; Liu, Y.; Zhang, R. Design of Single-Chip Based BCD Encoder with Dual Input Channels for Transformer Tap Position Monitoring. Electr. Meas. Instrum. 2014, 118, 110–113. [Google Scholar]
  22. Zhou, J.; Zhang, D.; Ren, W.; Zhang, W. Auto Color Correction of Underwater Images Utilizing Depth Information. IEEE Geosci. Remote Sens. Lett. 2022, 19, 1–5. [Google Scholar] [CrossRef]
  23. Zhang, C.; Xie, T.; Yang, K.; Ma, H.; Xie, Y.; Xu, Y.; Luo, P. Positioning optimisation based on particle quality prediction in wireless sensor networks. IET Netw. 2019, 8, 107–113. [Google Scholar] [CrossRef]
  24. Ma, S.; Meng, F.; Ma, Y.; Su, J. Automatic integrated exhaust fan based on AT89S51 single chip microcomputer. In International Conference on Cloud Computing and Security; Springer: Cham, Switzerland, 2018; pp. 118–127. [Google Scholar]
  25. Guo, W.; Qiao, Y. Design and development of vehicle reversing brake assist system. Open Access Libr. J. 2017, 4, 81452. [Google Scholar] [CrossRef]
  26. Yin, Q.; Zhang, J.; Wang, X.; Liu, S. The video intelligent car based on wireless sensor. Clust. Comput. 2019, 22, 5135–5150. [Google Scholar] [CrossRef]
Figure 1. Schematic diagram of measuring device.
Figure 1. Schematic diagram of measuring device.
Electronics 12 00443 g001
Figure 2. Hardware design principle block diagram of measuring device.
Figure 2. Hardware design principle block diagram of measuring device.
Electronics 12 00443 g002
Figure 3. BCE illuminance sensor.
Figure 3. BCE illuminance sensor.
Electronics 12 00443 g003
Figure 4. Physical drawing of inductive proximity switch.
Figure 4. Physical drawing of inductive proximity switch.
Electronics 12 00443 g004
Figure 5. Physical drawing of control module.
Figure 5. Physical drawing of control module.
Electronics 12 00443 g005
Figure 6. Physical drawing of power module.
Figure 6. Physical drawing of power module.
Electronics 12 00443 g006
Figure 7. Single-chip microcomputer program flow chart.
Figure 7. Single-chip microcomputer program flow chart.
Electronics 12 00443 g007
Figure 8. Program framework of host computer.
Figure 8. Program framework of host computer.
Electronics 12 00443 g008
Figure 9. Access database interface at 10:00.
Figure 9. Access database interface at 10:00.
Electronics 12 00443 g009
Figure 10. Access database interface at 13:00.
Figure 10. Access database interface at 13:00.
Electronics 12 00443 g010
Figure 11. Access database interface at 18:00.
Figure 11. Access database interface at 18:00.
Electronics 12 00443 g011
Figure 12. Hardware equipment of vehicle-mounted tunnel illumination detection device.
Figure 12. Hardware equipment of vehicle-mounted tunnel illumination detection device.
Electronics 12 00443 g012
Figure 13. Illuminometer.
Figure 13. Illuminometer.
Electronics 12 00443 g013
Table 1. Data comparison table of left illuminance sensor and illuminometer.
Table 1. Data comparison table of left illuminance sensor and illuminometer.
Measuring Point Serial NumberLeft Sensor Data/(Lux)Illuminance Meter Data/(Lux)Relative Deviation
point1-131 Lux28.7 Lux7.7%
point 2-175 Lux73.9 Lux0.7%
point 3-1914 Lux917 Lux−0.2%
point 4-151 Lux53.8 Lux−2.7%
point 5-149 Lux48.0 Lux1.0%
point 6-1114 Lux116.6 Lux−1.0%
point 7-1119 Lux118.5 Lux0.2%
point 8-178 Lux79.1 Lux−0.7%
point 9-171 Lux74.2 Lux−2.2%
point 10-165 Lux67.7 Lux−2.0%
Table 2. Data comparison table of intermediate illuminance sensor and illuminometer.
Table 2. Data comparison table of intermediate illuminance sensor and illuminometer.
Measuring Point Serial NumberIntermediate Sensor Data/(Lux)Illuminance Meter Data/(Lux)Relative Deviation
point 1-228 Lux25.5 Lux4.7%
point 2-269 Lux65.7 Lux2.4%
point 3-2890 Lux893.8 Lux−0.2%
point 4-246 Lux45.6 Lux0.4%
point 5-246 Lux45.8 Lux0.2%
point 6-290 Lux93.4 Lux−1.9%
point 7-2120 Lux118.5 Lux0.6%
point 8-280 Lux82.2 Lux−1.4%
point 9-265 Lux64.2 Lux0.6%
point 10-258 Lux57.7 Lux0.3%
Table 3. Data comparison table of right illuminance sensor and illuminometer.
Table 3. Data comparison table of right illuminance sensor and illuminometer.
Measuring Point Serial NumberRight Sensor Data/(Lux)Illuminance Meter Data/(Lux)Relative Deviation
point 1-329 Lux26.5 Lux4.5%
point 2-367 Lux65.3 Lux1.3%
point 3-3881 Lux877.9 Lux0.2%
point 4-341 Lux44.3 Lux−3.9%
point 5-340 Lux37.0 Lux3.9%
point 6-3120 Lux118.4 Lux0.7%
point 7-3118 Lux116.3 Lux0.7%
point 8-376 Lux77.4 Lux−0.9%
point 9-369 Lux66.5 Lux1.8%
point 10-358 Lux57.9 Lux0.1%
Table 4. Table of comparison between horizontal illumination of vehicle roof and road surface.
Table 4. Table of comparison between horizontal illumination of vehicle roof and road surface.
Measuring Point Serial NumberTop Sensor Data/(Lux)Illuminance Meter Data/(Lux)Relative Deviation
point ①234 Lux156 Lux78 Lux
point ②142 Lux89 Lux53 Lux
point ③101 Lux57 Lux44 Lux
Table 5. Data comparison table of the device and illuminometer.
Table 5. Data comparison table of the device and illuminometer.
Measuring Point Serial NumberSensor Data/(Lux)Illuminance Meter Data/(Lux)Relative Deviation
point ④185 Lux188.9 Lux−1.0%
point ⑤93 Lux89.3 Lux2.0%
point ⑥61 Lux56.7 Lux3.7%
point ⑦77 Lux74.1 Lux1.9%
point ⑧106 Lux101.9 Lux2.0%
point ⑨158 Lux165.4 Lux−2.3%
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Wang, Z.; Gao, H. Design of Vehicle Tunnel Illumination Measurement Device Based on STC12C5A60S2 Single-Chip Microcomputer. Electronics 2023, 12, 443. https://doi.org/10.3390/electronics12020443

AMA Style

Wang Z, Gao H. Design of Vehicle Tunnel Illumination Measurement Device Based on STC12C5A60S2 Single-Chip Microcomputer. Electronics. 2023; 12(2):443. https://doi.org/10.3390/electronics12020443

Chicago/Turabian Style

Wang, Ziyan, and Hui Gao. 2023. "Design of Vehicle Tunnel Illumination Measurement Device Based on STC12C5A60S2 Single-Chip Microcomputer" Electronics 12, no. 2: 443. https://doi.org/10.3390/electronics12020443

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop