Professional Documents
Culture Documents
Qu_2022_J._Phys.__Conf._Ser._2216_012045
Qu_2022_J._Phys.__Conf._Ser._2216_012045
Series
ABSTRACT: In order to solve the problem of waste of power and human resources in the
traditional street lamp control system, this paper designs a smart street lamp centralized control
system based on STM32 and LoRa technology. The centralized control system consists of a
centralized control device and multiple single lamp control devices. The STM32F103 is the
MCU of the centralized control device. The system uses the characteristics of low
communication cost and long transmission distance of LoRa technology to realize the
communication between the centralized control device and the single lamp control device. The
centralized control device uses the Modbus RTU protocol to communicate with the sensor
module, and adjusts according to environmental factors. The brightness of the street lamp
realizes the "on-demand lighting" of the street lamp, and an adaptive rate algorithm is proposed
to optimize the communication of the LoRa network and improve the working efficiency of the
system. This centralized control system combines embedded and wireless communication
technology and has advantages in cost, reliability, energy saving and intelligent control. It can
be applied to street lamp lighting control in various environments. It has a high degree of
intelligence and has a strong market potential.
1.Introduction
With the continuous development of social economy, the efficient use and sustainable development of
energy has become an issue of increasing concern.[1] With the advancement of smart city construction,
the combination of intelligence and energy saving has become a research focus. The lighting of street
lamps is an important aspect of urban infrastructure and urban image construction, but the management
and monitoring methods of street lamps in most cities in China are relatively backward.[2] Most cities
still use manual control or set fixed time to control the state of street lamps. In terms of daily street lamp
management, due to the lack of street lamp management and control platforms and remote monitoring
functions, street lamps can only be maintained and managed by means of manual inspections.[3] This
relatively simple, low-efficiency, and resource-wasting street lamp lighting management method has
been unable to meet the needs of intelligent lighting management and the requirements of energy saving
and emission reduction.
In order to overcome the shortcomings of traditional street lamp control, Jinshan cheng[4] et al.
proposed a street lamp system control communication method that combines ZigBee and GPRS, through
ZigBee to issue online commands and strategies to realize local street lamp network management. At
Content from this work may be used under the terms of the Creative Commons Attribution 3.0 licence. Any further distribution
of this work must maintain attribution to the author(s) and the title of the work, journal citation and DOI.
Published under licence by IOP Publishing Ltd 1
ICRICA-2021 IOP Publishing
Journal of Physics: Conference Series 2216 (2022) 012045 doi:10.1088/1742-6596/2216/1/012045
the same time, GPRS is used as a long-distance wireless communication method to realize wireless
communication between a remote terminal and a centralized controller. This method proposes a solution
for the intelligent control of street lamps, and facilitates the management of urban street lamp lighting
systems. However, because the cost of ZigBee communication is relatively expensive, especially when
the number of street lamps is huge, the capital investment is large, and because the road environment is
complex, the anti-interference ability of ZigBee communication is poor, so its communication quality
is difficult to guarantee. Lecces[5] et al. designed a street lamp control system with ambient lighting as a
reference factor. Compared with the traditional street lamp control system, it makes the street lamp
system easier to manage and has a certain degree of intelligence. However, the system is extremely
susceptible to interference from factors such as automobile lighting, tree occlusion, air particles, etc.,
and is not suitable for complex and diversified road environments.
This article comprehensively uses the Internet of Things and other technical means to research and
design a smart street lamp centralized control system based on STM32 and LoRa. STM32 is used as the
control host and combined with various environmental monitoring modules to achieve a fully
controllable "on-demand lighting" operation mode, while centralized. The control device communicates
with the control platform through a computer network to realize remote control and management of
street lights. LoRa is an unlicensed spectrum, and it will not cause excessive economic burden when the
street lamp communication data continues to increase. This centralized control system can improve the
management level of urban intelligent street lighting system, reduce management, operation and
maintenance costs, and avoid the waste of lighting energy, save resources, and promote related lighting
without reducing urban lighting design standards and affecting lighting equipment. The functional
transformation and management innovation of the department create favorable conditions for urban
reform and development.
Modbus
module
Sensing
powered by
The centralized control device mainly includes STM32 control host, two TTL/485 conversion
modules, GPS positioning module, light monitoring module, temperature and humidity monitoring
module, particulate matter monitoring module, traffic flow monitoring module, LoRa communication
2
ICRICA-2021 IOP Publishing
Journal of Physics: Conference Series 2216 (2022) 012045 doi:10.1088/1742-6596/2216/1/012045
module, LED display and power supply module, The STM32 control host is built with STM32 series
ARM microcontrollers as the core supplemented by LCD display screens and peripheral circuits. The
Modbus RTU communication protocol is used between the control host and each sensor module to
collect the information of each monitoring module in turn. According to the collected environmental
data, the control strategy algorithm is used to calculate and output the command to adjust the brightness
of the street lamp, so as to achieve reasonable results by referring to the environmental data. "Lighting
on demand". Managers can adjust control strategies according to actual needs to better meet the needs
of the real environment. The control host is connected with the LoRa communication module for
wireless communication with the single-lamp control device to realize remote control of the single-lamp
control device and information collection of the working state of the street lamp. At the same time, the
control host is connected to the network switch through the network module to access the computer
network, sends display information to the LED display screen connected to the network switch, and
communicates remotely with the remote Web management platform through the computer network.
Professional
FPB DWT ITM peripheral bus
(external)
Dedicated
peripheral bus APB ROM
(internal) i/f Table
I‐code bus
Bus matrix
D‐code
SW/ SW/
AHB‐AP System bus
JTAG JTAG‐DP
3
ICRICA-2021 IOP Publishing
Journal of Physics: Conference Series 2216 (2022) 012045 doi:10.1088/1742-6596/2216/1/012045
Cortex-M3 is a low-power processor, originally designed to meet the requirements of fast interrupt
response embedded applications, so its interrupt latency is excellent in similar products. At the same
time, it adopts SWD/JTAG debugging mode, which reduces the system overhead of debugging.[6] At
the same time, the centralized controller in this control system adopts the μC/OS-III operating system,[7]
which is convenient for the management of system resources, shortens the development cycle of the
system, and makes the system more reliable and stable. In short, in addition to rich peripherals for people
to use, this controller also has many advantages such as strong performance, higher code density, bit-
band operation, nestable terminals, low cost, and low power consumption. Its overall performance can
fully meet the requirements of centralized street lamp controllers in any environment.
3.2.Communication module
Commonly used communication methods for street lamp control systems in the market mainly include
power carrier, ZigBee, GPRS, LoRa, NB-IoT and so on.[8] Considering that LoRa communication
technology has the following four characteristics: ①The transmission distance is long, and its effective
transmission distance can reach 20KM in theory. ②LoRa is an authorization-free spectrum, and the
communication cost has advantages over other wireless communication technologies. ③Low power
consumption, further reducing the resource consumption of the entire control system. ④ There are many
nodes in the network, and the network mode is more flexible. Therefore, the local communication
method of this system adopts LoRa wireless communication technology.
The LoRa communication module in this system uses the RS232/485-LORA of AMSAMOTION,
which supports RS485/RS232 serial communication and adopts half-duplex transmission mode. The
transmission distance in the actual environment can reach 7km, in an unobstructed open environment
Up to 10km, if a signal amplifier is added, the communication distance can be increased by another 2km.
Its communication frequency range is 137-525MHZ, with a high sensitivity of -148dBm and a power
amplifier of +20dBm. This LoRa module not only has the characteristics of small size, high sensitivity,
low power consumption and other common modules, but also has the following characteristics: ①Adopt
advanced modulation technology and have the characteristics of long-distance anti-interference.
②Multiple wireless power and multiple serial port baud rates can make communication more flexible.
③Data can be encrypted during communication to ensure the security of data transmission. ④ It has
two communication methods, point-to-point and point-to-many, to meet the control requirements of the
system. Figure 4 shows the working model of the LoRa module in this system.
LoRa LoRa
communication communication
module module
Wireless
communication
Centralized
Single lamp controller
controller
RS485 RS485
3.3.Sensing module
The sensor module mainly includes a temperature and humidity monitoring module, a light monitoring
module, a particulate matter monitoring module, a traffic flow monitoring module, and a GPS
positioning module.
①The temperature and humidity sensor adopts RS-WS-N-01-1, which is a high-precision, stable
communication temperature and humidity monitoring module. The temperature measurement range is:
4
ICRICA-2021 IOP Publishing
Journal of Physics: Conference Series 2216 (2022) 012045 doi:10.1088/1742-6596/2216/1/012045
-40℃~80℃, the humidity measurement range is 0~100%RH, and the working voltage range is: 10~30
DC. The sensor adopts RS485 data transmission and is composed of an inductive dry and wet element
and a high-performance CMOS microprocessor connection. It has the advantages of ultra-fast response,
high accuracy, strong anti-interference, safety and reliability.
②The light monitoring module adopts GHHB-002-485, which can directly output the numbers
through the 16batAD converter, omitting the complicated calculation process. By setting the threshold,
when the ambient lighting around the street lamp changes, it will be converted to output high and low
levels. The circuit diagram is shown in Figure 5 below. This type of sensor has the characteristics of low
power consumption, high precision, high sensitivity, and high stability, which meets the requirements
of centralized control systems.
D4
LED
D3
LED R3 R4 R5
10K 10K 1K
3+
R2 1
C1 R1 2- port
104 1K 10K
4
port
GND
C2
RL VCC 1
104 GND 2
D0
3
GND
③The particle monitoring module adopts GHHB-008-485, which can obtain the value of
PM2.5/PM10 in the environment where the equipment is located. The laser scattering principle is
adopted to ensure that the detectable range is 0-999μg/m3. GHHB-008-485 has the following
characteristics: ①Long life, can work continuously for 16000h under normal temperature and pressure.
②Strong anti-interference ability. ③Mute design, the noise is as low as 17dB under normal conditions.
④Low power consumption and high precision.
④The vehicle flow monitoring module adopts K-LC6 and adopts a narrow beam angle K-band with
VCO radar sensor. The detectable distance for vehicles can usually be greater than 62 meters, and its
characteristics of stability and low power consumption can meet the needs of system functions.
⑤The GPS positioning module adopts ATGM332D-5N. Figure 6 below is the functional diagram
of this module. ATGM332D-5N based on Zhongke Micro's fourth-generation low-power GNSS SOC
single chip AT6558 supports single-system positioning of BDS/GPS/GLONASS satellite navigation
systems, as well as any combination of multi-system joint positioning receiver modules, and built-in
antenna detection The circuit realizes the antenna short-circuit protection function. The external antenna
carried by this module adopts an environmentally-friendly ABS shell, which can achieve waterproof,
flame-retardant and high temperature resistance, and adapt to extreme environments. At the same time,
a 4mm ceramic substrate is used internally, and the surface is plated with silver, which can effectively
resist oxidation and increase the service life of the module. The chip uses a two-stage amplifying and
filtering circuit, which can achieve rapid positioning while ensuring the strength of the signal and the
stability of the transmission. The outer layer of the chip adopts tinplate shielding cover, which makes
the module have strong anti-interference ability.
5
ICRICA-2021 IOP Publishing
Journal of Physics: Conference Series 2216 (2022) 012045 doi:10.1088/1742-6596/2216/1/012045
Receive
antenna
SAWExternal LAN AT6558 Power
RF front‐ Multi‐tone interference management
RF_IN suppression main power
end integration:
integrated DCDC、LDO Backup power
NA BDS/GPS/GLONASS/
Clock
Antenna Galileo
management
detection Multi‐system signal Reset
TCXO and reset
processing engine
Peripheral
ROM interface ON/OFF
integration: 1PPS
ATGM332D‐5N 32bit RISC SPI, UART, I2C,
Serial UART/I2C/SPI
Low‐power GPIO
FLASH
CPU core
Battery
RAM backup RTC
and RAM RTC
6
ICRICA-2021 IOP Publishing
Journal of Physics: Conference Series 2216 (2022) 012045 doi:10.1088/1742-6596/2216/1/012045
The PC terminal can view the data sent by the centralized controller on the Web platform through
the host computer, so that it can remotely monitor the working status of the street lights, and can also
observe the relevant data of the road environment, fault alarms, etc. in real time. The PC terminal is
convenient for the staff to find the faults of the street lights in time and accurately, avoiding the waste
of resources and lag caused by manpower inspections. The staff can also adjust the specific control
strategy of the street light through the PC according to the actual needs, or directly send a command to
the single light controller to change the specific working state of the street light.
4.System implementation
7
ICRICA-2021 IOP Publishing
Journal of Physics: Conference Series 2216 (2022) 012045 doi:10.1088/1742-6596/2216/1/012045
Start
T
Whether each module is
working normally, whether
Can you receive the returned
data? Process the received data
T
Whether to receive the
remote control center
Data frame sent?
8
ICRICA-2021 IOP Publishing
Journal of Physics: Conference Series 2216 (2022) 012045 doi:10.1088/1742-6596/2216/1/012045
Finish
command, send street light according T
response frame record the
command to the control
format operation, and
through LoRa command and sends
feedback
module a response frame
F
Under the integrated control strategy, the centralized controller first collects GPS module data,
converts the received latitude and longitude into specific sunrise and sunset times, and uses them as the
basic conditions for street lamp control to avoid prematurely lighting or delayed lighting caused by fixed
switching lights. At the same time, the threshold of light and the threshold of particles are set, so that
the street lamp can work in time when encountering extreme weather. Secondly, when the street lamp
is in working condition, the centralized controller will adjust the brightness level of the street lamp in
time to ensure the reasonableness of the lighting brightness when the light intensity, traffic flow and
particle concentration change. The centralized controller also uploads the system's operation log and the
working status of street lights to the cloud every day, and analyzes the working status of the street lights
in the cloud, and continuously optimizes the coefficients of the algorithm to enhance the intelligence of
the street light control algorithm.
9
ICRICA-2021 IOP Publishing
Journal of Physics: Conference Series 2216 (2022) 012045 doi:10.1088/1742-6596/2216/1/012045
Where Throuthput is the throughput, Ldata is the length of the data frame, IPheader is the header of the
IP datagram, UDPheader is the header of the UDP message, Tdifs is the gap between short frames, Tsifs is
the gap between general frames, and Tack represents the confirmation time , represents the average
delay of the data frame. It can be seen from the above formula that the throughput of the entire network
actually represents the relationship between the bit error rate and the rate. Therefore, dynamically
selecting the appropriate transmission rate according to the actual specific environmental conditions
combined with the technical characteristics of LoRa, while meeting the requirements for communication
rate and communication quality, is of great significance to the reduction of power consumption and
work efficiency of the entire system.[11]
This paper proposes an adaptive rate algorithm based on LoRa, the core of which is to obtain the
real-time changing state of the wireless channel (CSI). Generally, there are two methods for obtaining
status information: closed-loop type (direct measurement of channel information) and open-loop type
(based on statistical information). Considering that the open-loop algorithm is based on the parameter
statistics (throughput, frame error rate, confirmation frame) of the data transmitted in a certain period of
time in the wireless channel as the basis for calculating the status information, it has a certain hysteresis.
However, the LoRa data transmission rate is low, and the communication time is short, and the open-
loop algorithm cannot be used to accurately analyze the current channel situation. So what this design
adopts is based on the closed-loop method, namely through the current channel state parameters to
directly evaluate and select the appropriate transmission rate. At the same time, combined with the
technical characteristics of LoRa, the communication rate can be automatically selected according to
different environments. This algorithm uses the handshake mechanism (RTS/CTS). First, the receiver
will calculate the signal strength value (RSSI) of the channel at the moment. The calculation method is
shown in formula (2).
Rssi PacketRssi PacketSnr 0 .25 164 (2)
Where Rssi is the signal strength value, PacketRssi is the noise ratio of the data packet received by the
node, PacketSnr is the signal strength of a single data packet, and -164 is the compensation value. After
calculating q, select the most suitable rate according to the pre-set signal strength and rate
correspondence table, and tell this to the sender as the best rate, and the sender and receiver will transmit
data at this rate. This algorithm optimizes the LoRa network to ensure communication efficiency while
reducing the power consumption of the entire system. The process diagram of the algorithm is shown in
Figure 11 below:
① In the initial state, A sends a connection request
packet to B at a specified rate
10
ICRICA-2021 IOP Publishing
Journal of Physics: Conference Series 2216 (2022) 012045 doi:10.1088/1742-6596/2216/1/012045
lamp control strategies, and adjusting the status of regional street lamps. As shown in Figure 12 below,
the background management system consists of three parts.
The left menu bar can choose to implement functions such as street lamp monitoring, strategy
management, fault alarm, historical data management, lamp management and so on, which can meet the
functional needs of most users. The middle part will show the specific distribution location of street
lights, which can help the administrator understand the working status of the street lights in the whole
area. The right side of the interface displays street lamp alarm information, including street lamp location,
alarm time, fault type, etc., combined with the map display, you can quickly find the location of the
damaged street lamp, which is convenient for timely maintenance.
5.Conclusion
This article focuses on the smart street lamp centralized control system based on STMF103 and LoRa,
which mainly combines the design of the Internet of Things technology and wireless communication
technology. Compared with the traditional street lamp control method, this design mainly has the
following four points: (1) This centralized control system uses the longitude and latitude of the street
lamp as the basic condition for switching the lamp in terms of controlling the street lamp, and combines
geographical location, traffic flow, environmental brightness, changes in parameters such as particulate
matter automatically adjust the brightness of street lights to achieve "on-demand lighting" and save a lot
of power resources. (2) The centralized controller is connected with the remote Web platform, and the
working status and fault alarm information of street lights can be viewed remotely.
(3) The LoRa communication method is adopted between the centralized controller and the single
lamp controller. Compared with other communication methods, this method has the characteristics of
low power consumption, long communication distance, strong anti-interference, and low cost. Therefore,
this communication method is very suitable for A scene with a huge number of street lights. (4) A variety
of control strategies are provided, and the administrator can freely choose the street lamp control strategy
algorithm according to the actual needs, which is more in line with the actual needs. The system has
four control strategies to choose from, and the system executes a comprehensive control strategy by
default.
Generally speaking, the centralized control system has reasonable structure and complete functions,
can meet the needs of any environment, and has actual commercial value and application value.
ACKNOWLEDGMENTS
The completion of the paper is attributed to many people’s support. First and foremost, I want to extend
my heartfelt gratitude to my supervisor, Yanhua Yang. He gives me much help and advice during the
whole process of my writing. My thanks also go to the authors whose books and articles have given me
inspiration in my writing of the paper.
11
ICRICA-2021 IOP Publishing
Journal of Physics: Conference Series 2216 (2022) 012045 doi:10.1088/1742-6596/2216/1/012045
REFERENCES
[1] HE Junjian, ZHU Zhaoyou, WANG Fugui & LI Junhua. (2019).Illumination Control of Intelligent
Street Lamps Based on Fuzzy Decision.(eds.)Proceedings of 2019 International Conference
on Intelligent Transportation, Big Data & Smart City(ICITBS 2019)(pp.536-539).Conference
Publishing Services.
[2] Li Shanchuan, Zhang Wei & Li Yunxin. (2021).Research on the Application of Wireless
Communication Technology Based on Computer Technology in Intelligent Street Lamp
Design. Journal of Physics: Conference Series (2), doi:10.1088/1742-6596/1992/2/022098.
[3] Zhou Baozhu, Liu Yuheng, Xie Yu, Wang Junpeng, Hao Zeqi & Meng Jian.(2021).Research and
Application of Intelligent Street Lamp Platform Based on Ubiquitous Internet of Things.
Journal of Physics: Conference Series(1), doi:10.1088/1742-6596/1920/1/012068.
[4] Wang Zirong. (2021).Greenhouse data acquisition system based on ZigBee wireless sensor network
to promote the development of agricultural economy. Environmental Technology &
Innovation(prepublish), doi:10.1016/J.ETI.2021.101689.
[5] Leccese, F.. (2012). Remote-control system of high efficiency and intelligent street lighting using
a zigbee network of devices and sensors. IEEE Transactions on Power Delivery, 28(1), 21-28.
[6] Fernandez Lara, RuizdeAzua Joan Adria, Calveras Anna & Camps Adriano.(2021).On-Demand
Satellite Payload Execution Strategy for Natural Disasters Monitoring Using LoRa:
Observation Requirements and Optimum Medium Access Layer Mechanisms. Remote
Sensing (19), doi:10.3390/RS13194014.
[7] Ameloot Thomas, Van Torre Patrick & Rogier Hendrik. (2021).Variable Link Performance Due to
Weather Effects in a Long-Range, Low-Power LoRa Sensor Network.. Sensors (Basel,
Switzerland) (9), doi:10.3390/S21093128.
[8] Kufakunesu, R., Hancke, G. P., & Abu-Mahfouz, A. M.. (2020). A survey on adaptive data rate
optimization in lorawan: recent solutions and major challenges. Sensors, 20(18).
[9] Alset Utkarsh, Mehta Hrishikesh & Kulkarni Atul.(2021).Evaluation of Antenna Dependent
Wireless Communication Based on LoRa For Clear Line of Sight (CLOS) And Non-Clear
Line of Sight (NC-CLOS) Applications. Journal of Physics: Conference Series(3),
doi:10.1088/1742-6596/1964/3/032001.
[10] Reda, H. T., Daely, P. T., Kharel, J., & Shin, S. Y.. (2017). On the application of iot: meteorological
information display system based on lora wireless communication. IETE Technical Review,
1-10.
[11] Qing-hai ZHANG & Po LI. (2017). Design and Implementation of an Intelligent Street Lamp
Network Node Based on 6LoWPAN Technology.(eds.)Proceedings of 2017 International
Conference on Computer, Electronics and Communication Engineering(CECE2017)(pp.17-
22).DEStech Publications.
12