Street light controller, street light and street light system
By introducing microcontrollers and multi-channel light source control circuits into street light controllers, the problem of street lights' strong dependence on gateways is solved, independent control and fine lighting are achieved, and the independent operation capabilities and energy management efficiency of street lights are improved.
Patent Information
- Application Number
- CN201710893313.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2017-09-27
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2037-09-27
AI Technical Summary
The existing street light control method is highly dependent on the gateway and has poor independent control capabilities. This causes the street light to lose control when the gateway or server fails, affecting lighting demand and energy efficiency.
A street light controller is designed, which includes a microcontroller, communication interface circuit, switch control circuit and light adjustment circuit. It receives server instructions through the microcontroller and independently controls multiple light sources on the street light to avoid the impact of gateway failure.
It realizes the independent control capability of street lights, avoids control failure caused by external faults, improves the scientificity and precision of lighting, and saves energy.
Smart Images

Figure CN107592714B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of street lamp control, and in particular to a street lamp controller, a street lamp and a street lamp system. Background Art
[0002] In the existing street light control methods, most of the time, staff use servers and gateways to uniformly turn on or off street lights in a set area. However, this method of relying on gateways to control street lights means that when the gateway or server fails, the street lights will lose control, which not only affects people's normal lighting needs, but also wastes energy.
[0003] There is no effective solution yet for the problem that the existing street light control method is highly dependent on the gateway and has poor independent control capability. Summary of the invention
[0004] In view of this, an object of the present invention is to provide a street lamp controller, a street lamp and a street lamp system to independently control the working state of the light source on the street lamp and improve the independent control capability of the street lamp.
[0005] In the first aspect, an embodiment of the present invention provides a street lamp controller, including a microcontroller, and a communication interface circuit, a switch control circuit and a light adjustment circuit connected to the microcontroller; the communication interface circuit is connected to an external server through a gateway; a plurality of control ports are provided on the switch control circuit, and the plurality of control ports are respectively connected to the multi-way light sources on the street lamp; a plurality of adjustment ports are provided on the light adjustment circuit, and the plurality of adjustment ports are respectively connected to the multi-way light sources on the street lamp; the communication interface circuit is used to receive control instructions sent by the server, and send the control instructions to the microcontroller; the microcontroller is used to save the control instructions, and send control signals to the switch control circuit and the light adjustment circuit; the switch control circuit is used to receive control signals, and control the opening or closing of the multi-way light sources on the street lamp through the plurality of control ports; the light adjustment circuit is used to receive control signals, and adjust the light brightness of the multi-way light sources on the street lamp through the plurality of adjustment ports.
[0006] In combination with the first aspect, an embodiment of the present invention provides a first possible implementation of the first aspect, wherein the above-mentioned street light controller also includes a serial port circuit connected to the microcontroller; the serial port circuit is connected to an external server through a gateway; the serial port circuit is used to receive a debugging signal sent by the server and send the debugging signal to the microcontroller.
[0007] In combination with the first aspect, an embodiment of the present invention provides a second possible implementation of the first aspect, wherein the above-mentioned street light controller also includes a power supply module; the power supply module is connected to the microcontroller; the power supply module is used to convert the voltage and current of the external power supply into an operating voltage and operating current matching the microcontroller.
[0008] In combination with the second possible implementation of the first aspect, an embodiment of the present invention provides a third possible implementation of the first aspect, wherein the above-mentioned street light controller also includes a power sensor; the power sensor is respectively connected to the switch control circuit, the power module and the microcontroller; the power sensor is used to collect the first power input to the light source through the switch control circuit, and the second power input to the microcontroller through the power module, and send the first power and the second power to the microcontroller.
[0009] In combination with the second possible implementation of the first aspect, the embodiment of the present invention provides a fourth possible implementation of the first aspect, wherein the street light controller further includes a protection circuit; the protection circuit is arranged between the power sensor and the external power supply.
[0010] In combination with the third possible implementation of the first aspect, an embodiment of the present invention provides a fifth possible implementation of the first aspect, wherein the above-mentioned power sensor includes a current acquisition unit, a voltage acquisition unit, a power calculation unit and a communication unit; the current acquisition unit is used to collect the first current input to the light source through the switch control circuit, and the second current input to the microcontroller through the power module; the voltage acquisition unit is used to collect the first voltage input to the light source through the switch control circuit, and the second voltage input to the microcontroller through the power module; the power calculation unit is used to receive the first current, the second current, the first voltage and the second voltage, and output the first power and the second power; the communication unit is used to send the first power and the second power to the microcontroller.
[0011] In combination with the first aspect, an embodiment of the present invention provides a sixth possible implementation of the first aspect, wherein the above-mentioned switch control circuit includes a switch drive unit and a switch unit; the switch drive unit is connected to the microcontroller; the switch unit is connected to multiple light sources on the street lamp; the microcontroller is also used to send a control signal to the switch drive unit so that the switch drive unit drives the switch unit to control the turning on or off of the light source.
[0012] In combination with the first aspect, the embodiment of the present invention provides a seventh possible implementation of the first aspect, wherein the above-mentioned light adjustment circuit includes a pulse width adjustment circuit, or a current adjustment circuit.
[0013] In a second aspect, an embodiment of the present invention provides a street lamp, which includes the above-mentioned street lamp controller and a street lamp body; a plurality of light sources are arranged on the street lamp body; the light sources include LED light sources.
[0014] In a third aspect, an embodiment of the present invention provides a street lamp system, which includes the above-mentioned street lamp and a server.
[0015] The embodiments of the present invention bring the following beneficial effects:
[0016] A street lamp controller, a street lamp and a street lamp system provided by an embodiment of the present invention receive control instructions sent by a server through a communication interface circuit; save the control instructions through a microcontroller, and send control signals to a switch control circuit and a light adjustment circuit; respectively control the turning on or off of multiple light sources on the street lamp through the switch control circuit; respectively adjust the light brightness of the multiple light sources on the street lamp through the light adjustment circuit; in this way, the street lamp controller can independently control the working state of the light source on the street lamp, avoiding the problem of losing control of the street lamp when an external gateway or server fails, thereby improving the independent control capability of the street lamp.
[0017] At the same time, in the above method, the street lamp controller can control the working status of multiple light sources on the street lamp respectively. When different light sources are facing different roads, the lighting conditions on different roads can be adjusted respectively, which can make the street lamp control method more scientific and precise.
[0018] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention are realized and obtained by the structures particularly pointed out in the description, claims and drawings.
[0019] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0021] Figure 1 A schematic diagram of the structure of a street light controller provided by an embodiment of the present invention;
[0022] Figure 2 A schematic diagram of the structure of another street light controller provided by an embodiment of the present invention;
[0023] Figure 3 A structural block diagram of a street lamp provided by an embodiment of the present invention;
[0024] Figure 4 A structural block diagram of a street lamp system provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0025] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0026] Taking into account the problems that the existing street lamp control method is highly dependent on the gateway and has poor independent control capabilities, the embodiments of the present invention provide a street lamp controller, a street lamp and a street lamp system; the technology can be applied to the control scenarios of outdoor street lamps, garden lamps and indoor lighting lamps; in particular, it can be applied to the control scenarios where each street lamp is provided with multiple light sources (for example, LED light sources, high-pressure mercury lamp light sources or sodium lamp light sources, etc.); the technology can be implemented using relevant software or hardware, and is described below through an embodiment.
[0027] See also Figure 1 The schematic diagram of the structure of a street light controller shown in the figure; the street light controller comprises a microcontroller 10, and a communication interface circuit 11, a switch control circuit 12 and a light adjustment circuit 13 connected to the microcontroller 10;
[0028] The communication interface circuit 11 is connected to an external server through a gateway; the switch control circuit 12 is provided with a plurality of control ports, and the plurality of control ports are respectively connected to the multi-channel light sources on the street lamp; the light adjustment circuit 13 is provided with a plurality of adjustment ports, and the plurality of adjustment ports are respectively connected to the multi-channel light sources on the street lamp;
[0029] The communication interface circuit 11 is used to receive control instructions sent by the server and send the control instructions to the microcontroller; the microcontroller 10 is used to save the control instructions and send control signals to the switch control circuit and the light adjustment circuit; the switch control circuit 12 is used to receive control signals and control the opening or closing of multiple light sources on the street lamp through multiple control ports; the light adjustment circuit 13 is used to receive control signals and adjust the brightness of the multiple light sources on the street lamp through multiple adjustment ports.
[0030] The above-mentioned street light controller can be installed on the lamp pole of each street light and connected to the multiple light sources on the street light; taking the example that each street light includes two light sources, usually, one light source faces the motor vehicle lane and the other light source faces the non-motor vehicle lane or the sidewalk; the control instructions sent by the above-mentioned server may include a specific working mode for each light source; the microcontroller can control the working state of each light source separately according to the working mode of each light source.
[0031] The above-mentioned microcontroller can be implemented by a single-chip microcomputer or a digital signal processing DSP chip; the above-mentioned communication interface circuit can be a wired communication interface circuit, for example, a WAN (Wide Area Network) interface circuit or a LAN (Local Area Network) interface circuit.
[0032] The above communication interface circuit may also be a wireless communication interface circuit, for example, a Wi-Fi (WIreless-Fidelity) communication interface circuit and a GPRS (General Packet Radio Service) communication interface circuit, etc. The above communication interface circuit may also be used to receive query, configuration and other information sent by the gateway, and to send status information required by the gateway.
[0033] A street lamp controller provided by an embodiment of the present invention receives a control instruction sent by a server through a communication interface circuit; saves the control instruction through a microcontroller and sends a control signal to a switch control circuit and a light adjustment circuit; controls the turning on or off of multiple light sources on the street lamp through the switch control circuit; and adjusts the light brightness of the multiple light sources on the street lamp through the light adjustment circuit; in this way, the street lamp controller can independently control the working state of the light source on the street lamp, avoiding the problem of losing control of the street lamp when an external gateway or server fails, thereby improving the independent control capability of the street lamp.
[0034] At the same time, in the above method, the street lamp controller can control the working status of multiple light sources on the street lamp respectively. When different light sources are facing different roads, the lighting conditions on different roads can be adjusted respectively, which can make the street lamp control method more scientific and precise.
[0035] See also Figure 2 The schematic diagram of another street light controller is shown in FIG. Figure 1 The street light controller is implemented on the basis of the street light controller shown in ; the street light controller includes a microcontroller 10, and a communication interface circuit 11, a switch control circuit 12 and a light adjustment circuit 13 connected to the microcontroller 10;
[0036] The street lamp controller also includes a serial port circuit 14 connected to the microcontroller; the serial port circuit 14 is connected to an external server through a gateway; the serial port circuit 14 is used to receive a debugging signal sent by the server and send the debugging signal to the microcontroller. The serial port circuit can be implemented by serial port circuits of RS-232-C, RS-422, RS485, etc.
[0037] For example, when a street light controller or a street light is newly installed or replaced, the server needs to debug the street light controller and the corresponding street light. During the debugging process, the server can directly control the working state of the light source by sending a debugging signal to the street light controller.
[0038] Through the above serial port circuit, a debugging signal can be sent to the street light controller through a wired network, making the transmission of the debugging signal more stable; debugging the street light controller through the above serial port circuit can ensure the reliability and stability of the street light controller and improve production efficiency.
[0039] Furthermore, the street lamp controller further comprises a power module 15; the power module 15 is connected to the microcontroller; the power module is used to convert the voltage and current of the external power supply into an operating voltage and an operating current matching the microcontroller.
[0040] For example, the above-mentioned external voltage can be 220V AC; the working voltage matching the microcontroller is usually 5V, and the working current is DC; at this time, the above-mentioned voltage module can include a voltage stabilizing circuit and a rectifier circuit to convert the voltage of the external voltage into a stable working voltage matching the microcontroller, and convert the AC of the external voltage into DC.
[0041] Furthermore, the above-mentioned street lamp controller also includes a power sensor 16; the power sensor 16 is connected to the switch control circuit, the power module and the microcontroller respectively; the power sensor 16 is used to collect the first power input to the light source through the switch control circuit, and the second power input to the microcontroller through the power module, and send the first power and the second power to the microcontroller.
[0042] The above-mentioned power sensor is a detection device that can collect the power consumption information of the object being measured, and can convert the collected power consumption information into electrical signals or other required forms of information output according to a certain rule to meet the requirements of information transmission, processing, storage, display, recording and control. The above-mentioned power sensor can also collect multiple power consumption parameters of the object being measured, such as current, voltage, power, frequency, power factor, etc., and convert the power consumption parameters into DC current, DC voltage and isolate and output analog signals or digital signals.
[0043] In actual implementation, each street lamp can be used as the measured object, and the power data and opening time of the street lamp within the set time period can be measured and counted; each light source can also be used as the measured object, and the power data and opening time of each light source within the set time period can be measured and counted.
[0044] By counting the power consumption data of street lamps, accurate energy consumption information of street lamps can be obtained, which is convenient for management personnel to adjust the working mode of street lamps, save energy, and extend the life of street lamps. By counting the opening time of street lamps, the service life of light sources can be evaluated, which is convenient for maintenance and management of street lamps.
[0045] Specifically, the above-mentioned power sensor may include a current acquisition unit 161, a voltage acquisition unit 162, a power calculation unit 163 and a communication unit 164;
[0046] The current collection unit 161 is used to collect the first current input to the light source via the switch control circuit, and the second current input to the microcontroller via the power module;
[0047] The voltage collection unit 162 is used to collect the first voltage input to the light source via the switch control circuit, and the second voltage input to the microcontroller via the power module;
[0048] The power calculation unit 163 is used to receive the first current, the second current, the first voltage and the second voltage, and output the first power and the second power;
[0049] The communication unit 164 is used to send the first quantity and the second quantity to the microcontroller.
[0050] Furthermore, the street lamp controller further includes a protection circuit 17; the protection circuit 17 is arranged between the power sensor and the external power supply.
[0051] Taking into account that the external power supply may cause unstable power supply due to changes in the power supply network or load, in order to avoid the problem of circuit damage to the street lamp controller and the light source on the street lamp due to unstable power supply, the above-mentioned protection circuit is set between the external power supply and the circuit sensor. This protection circuit can be used for overcurrent protection, overvoltage protection, overheating protection, no-load protection, short circuit protection, etc.
[0052] Furthermore, the above-mentioned switch control circuit includes a switch driving unit 121 and a switch unit 122; the switch driving unit 121 is connected to a microcontroller; the switch unit 122 is connected to multiple light sources on the street lamp; the microcontroller is also used to send a control signal to the switch driving unit so that the switch driving unit drives the switch unit to control the turning on or off of the light source.
[0053] For example, the switch driving unit includes a driving motor, and the switch unit includes a mechanical or electromagnetic switch; when the switch driving unit receives a control signal sent by the microcontroller, the driving motor drives the switch to open or close according to the control signal.
[0054] Usually, the switching control circuit does not change the power supply parameters of the external power supply. For example, when the external power supply is 220V AC, the switch control circuit outputs 220V AC to each of the multiple light sources.
[0055] Furthermore, the above-mentioned light regulation circuit includes a pulse width regulation circuit, or a current regulation circuit.
[0056] The light source on the street lamp can be an LED light source or an incandescent light source, etc.; when the input pulse width changes or the current size changes, the brightness of the light source changes accordingly; therefore, the microcontroller controls the light regulation current to input a pulse of a specific width or a current of a specific size to the light source, which can control the brightness of the light source.
[0057] Corresponding to the street lamp controller provided in the above embodiment, see Figure 3 The structural block diagram of a street lamp is shown; the street lamp comprises the above-mentioned street lamp controller 30 and also comprises a street lamp body 31; the street lamp body 31 is provided with multiple light sources; the light source comprises an LED light source.
[0058] Figure 3 In the embodiment, a street lamp body including two light sources is taken as an example for description, namely light source 31a and light source 31b.
[0059] The street lamp provided in the embodiment of the present invention has the same technical features as the street lamp controller provided in the above embodiment, and can therefore solve the same technical problems and achieve the same technical effects.
[0060] Corresponding to the street lamp controller and street lamp provided in the above embodiment, see Figure 4 The structural block diagram of a street lamp system is shown; the system includes the above-mentioned street lamp and also includes a server 40.
[0061] In actual implementation, the street lamp body is connected to the server through a gateway; the server can be connected to multiple street lamps at the same time; for example, Figure 4 The example of server 40 connected to four street lamps is used for explanation, including street lamp 41a, street lamp 41b, street lamp 41c and street lamp 41d; among them, street lamp 41a and street lamp 41b are connected to the server through gateway 42a; street lamp 41c and street lamp 41d are connected to the server through gateway 42b.
[0062] The street lamp system provided in the embodiment of the present invention has the same technical features as the street lamp controller and the street lamp provided in the above embodiment, so it can also solve the same technical problems and achieve the same technical effects.
[0063] The street lamp controller, street lamp and street lamp system provided in the embodiments of the present invention apply wireless Internet of Things technology, intelligent control technology and Internet software technology to form an Internet of Things system for street lamps (especially LED street lamps), realizing centralized management of street lamps, automatic inspection, real-time control and detection of each street lamp.
[0064] The existing street light control method has the following disadvantages: (1) After the gateway and server fail, the controller loses control and the entire system is paralyzed, causing disorder and affecting people's production and life. (2) It mainly controls one street light and cannot control multiple street lights at the same time; for example, when two street lights are installed on a street light pole, one is facing the road and the other is facing the sidewalk; in the application scenario where the lights facing the road and the sidewalk need to be controlled separately, only two controllers can be used to control one street light respectively, which increases the cost, makes the construction complicated, and makes the management chaotic. (3) It cannot provide accurate energy consumption data. (4) The production test process is cumbersome, complicated, and costly.
[0065] Compared with the street light control method in the prior art, the street light controller, street light and street light system provided by the embodiment of the present invention, the street light controller can operate independently, is a single body with its own "brain", and does not completely rely on the server and gateway. After the server and gateway have problems, it can operate according to the previous configuration, and there will be no phenomenon of turning on and off lights randomly, which will not affect production and life; the controller has multiple dimming outputs and can control multiple light sources separately. The multiple dimming signals corresponding to the multiple light sources do not interfere with each other. This dimming mode realizes the separate control of multiple lights on one pole; for example, the lights on the driving lane and the lights on the sidewalk can be set with different lighting strategies according to the actual application scenarios, and different lighting time and brightness can be set. This two-way dimming mode saves costs and is easy to install and manage; the street light controller can accurately count energy consumption data. The power sensor includes three parts: signal acquisition (equivalent to the above-mentioned current acquisition unit and voltage acquisition unit), information processing (equivalent to the above-mentioned power calculation unit), and communication (equivalent to the above-mentioned communication unit). The acquisition unit acquires information such as voltage and current, and the processing unit processes the information through precise algorithms to obtain power information, which is sent to the microcontroller MCU through the communication unit. After being processed by relevant algorithms in the MCU, the energy consumption data of the controller is obtained; the street light controller adopts serial port debugging, and the serial port debugging module (equivalent to the above-mentioned serial port circuit) is mainly used for production testing. The running status of the MCU is printed out in real time through the serial port printing. When a problem occurs, the problem can be accurately located, thereby improving the production test efficiency, reducing the production test and subsequent maintenance costs, and accelerating the pace of marketization.
[0066] In addition, in the description of the embodiments of the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0067] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.
[0068] Finally, it should be noted that the above-described embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims
1. A street light controller, characterized in that: It includes a microcontroller, and a communication interface circuit, a switch control circuit and a light adjustment circuit connected to the microcontroller; The communication interface circuit is connected to an external server through a gateway; the switch control circuit is provided with a plurality of control ports, and the plurality of control ports are respectively connected to the multi-channel light sources on the street lamp; the light adjustment circuit is provided with a plurality of adjustment ports, and the plurality of adjustment ports are respectively connected to the multi-channel light sources on the street lamp; The communication interface circuit is used to receive the control instruction sent by the server and send the control instruction to the microcontroller; The microcontroller is used to store the control instructions and send control signals to the switch control circuit and the light adjustment circuit; the switch control circuit is used to receive the control signals and control the opening or closing of multiple light sources on the street lamp through the multiple control ports; the light adjustment circuit is used to receive the control signals and adjust the light brightness of the multiple light sources on the street lamp through the multiple adjustment ports; The control instruction includes the working mode of each light source; the microcontroller is also used to control the working state of each light source according to the working mode of each light source; The microcontroller can run independently. When the microcontroller is disconnected from the server and the gateway, the microcontroller can control multiple light sources separately according to the configuration information previously sent by the gateway; the multiple dimming signals corresponding to the multiple light sources do not interfere with each other, and are used to realize the separate control of multiple lights on one pole; among which, the separate control of multiple lights on one pole indicates that different lighting strategies can be set for the multiple street lights on each lamp pole according to different application scenarios, and the lighting strategies include lighting time and brightness.
2. The street light controller according to claim 1, characterized in that: The street lamp controller also includes a serial port circuit connected to the microcontroller; The serial port circuit is connected to an external server through a gateway; The serial port circuit is used to receive the debugging signal sent by the server, and send the debugging signal to the microcontroller.
3. The street light controller according to claim 1, characterized in that: The street lamp controller also includes a power supply module; The power module is connected to the microcontroller; The power supply module is used to convert the voltage and current of the external power supply into an operating voltage and an operating current that match the microcontroller.
4. The street light controller according to claim 3, characterized in that: The street lamp controller also includes a power sensor; The power sensor is connected to the switch control circuit, the power module and the microcontroller respectively; The power sensor is used to collect a first power quantity input to the light source via the switch control circuit and a second power quantity input to the microcontroller via the power module, and send the first power quantity and the second power quantity to the microcontroller.
5. The street light controller according to claim 4, characterized in that: The street lamp controller also includes a protection circuit; The protection circuit is arranged between the power sensor and the external power supply.
6. The street light controller according to claim 4, characterized in that: The electric quantity sensor comprises a current acquisition unit, a voltage acquisition unit, an electric quantity calculation unit and a communication unit; The current collection unit is used to collect a first current input to the light source via the switch control circuit, and a second current input to the microcontroller via the power module; The voltage collection unit is used to collect a first voltage input to the light source via the switch control circuit, and a second voltage input to the microcontroller via the power module; The power calculation unit is used to receive the first current, the second current, the first voltage and the second voltage, and output the first power and the second power; The communication unit is used to send the first quantity of electricity and the second quantity of electricity to the microcontroller.
7. The street light controller according to claim 1, characterized in that: The switch control circuit includes a switch driving unit and a switch unit; The switch driving unit is connected to the microcontroller; the switch unit is connected to multiple light sources on the street lamp; The microcontroller is further used to send a control signal to the switch driving unit so that the switch driving unit drives the switch unit to control the light source to be turned on or off.
8. The street light controller according to claim 1, characterized in that: The light regulation circuit includes a pulse width regulation circuit or a current regulation circuit.
9. A street lamp, characterized in that: The street lamp comprises the street lamp controller according to any one of claims 1 to 8, and also comprises a street lamp body; The street lamp body is provided with multiple light sources; the light sources include LED light sources.
10. A street light system, characterized in that: The system comprises the street light according to claim 9, and further comprises a server.
