Solar energy based on STM32 MCU: LED street light solution

Publisher:csZhouLatest update time:2015-04-13 Source: eechinaKeywords:STM32 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
As fossil energy is decreasing and the problem of global warming caused by excessive greenhouse gas emissions is becoming more and more important, people are actively developing various types of renewable energy on the one hand, and advocating green environmental protection technologies for energy conservation and emission reduction on the other. Solar energy, as an inexhaustible clean energy, has become an important representative of many renewable energy sources; in the field of lighting, LED solid-state lighting with long life, energy saving, safety, green environmental protection, rich colors and miniaturization has also been recognized as an important way to save energy and protect the environment in the world. Solar-LED street lights integrate the advantages of both, using clean energy and high-efficiency LEDs to achieve green lighting. The solar-LED street light solution introduced in this article can automatically detect ambient light to control the working state of the street light, the maximum power point tracking (MPPT) ensures the maximum efficiency of the solar panel, constant current control of the LED, and has battery status output and user-settable LED working time and other functions.
System structure and implementation principle
Currently, street lamps generally use a high-pressure sodium lamp structure powered by mains electricity. The electronic drive part of the high-pressure sodium lamp needs to convert the mains electricity from AC to DC and then invert it to AC to drive, resulting in low system efficiency; and because it uses mains electricity, it is necessary to lay complex and expensive pipelines. Solar-LED street lights do not have the above problems. Since solar panels output DC power and LEDs are also DC-driven light sources, the combination of the two can improve the efficiency of the entire system; the use of solar energy also eliminates the cost of laying cables and related projects.


Figure 1: Solar-LED street light system structure principle. 

Figure 1 is a schematic diagram of the structure of a solar-LED street light. When a solar panel is exposed to sunlight, its internal PN junction will form new electron-hole pairs, which can generate DC current in a circuit; this current flows into the controller and charges the battery in some way. The battery will be charged during the day and provide energy to the LED at night. The operation of the LED is carried out by the controller. While ensuring the constant current operation of the LED, the controller will also monitor the status of the LED and control the working time. In case of continuous rainy days and insufficient battery power, the controller will send a control signal to start the external mains power supply system (not included in the controller) to ensure the normal operation of the LED. The external mains power supply system is only used as a backup energy source and will only be used when the battery power is insufficient. The battery is charged entirely by solar energy to ensure the maximum use of solar energy.

Figure 2: Controller structure block diagram 
Figure 2 is the controller structure block diagram. After the solar panel comes in, it will first pass through a switch MOS tube KCHG to connect to the DC/DC converter (battery charging circuit), and the output of this converter is connected to both ends of the battery (in the actual circuit, it will first pass through a fuse and then connect to the battery). Adding KCHG has two functions: one is to prevent the reverse charging current from the battery when the solar cell output is low; the other is to protect the circuit when the polarity of the solar panel is reversed. The DC/DC converter adopts a buck topology. The selection of the topology must not only consider the maximum power point voltage of the solar panel and the maximum voltage of the battery, but also take into account efficiency and cost. The battery and LED are also connected through a DC/DC converter (LED drive circuit). Constant current control is used for the LED. Considering the fluctuation range of the battery voltage and the working voltage range of the LED, the flyback topology is used in the design circuit to ensure constant current output. The efficiency of the flyback topology is generally not as high as that of a simple boost or buck circuit. If the efficiency of the system is to be improved, a boost or buck circuit can be used by optimizing the relationship between the battery voltage and the LED voltage to improve efficiency and possibly further reduce costs.
The control of the entire controller is achieved through an MCU. The main tasks of the MCU include the following: first, the MPPT algorithm is used to optimize the working efficiency of the solar panel; second, the appropriate charging mode is used for different battery states; third, the constant current output of the LED drive circuit is ensured; fourth, the day and night are judged and used to switch the battery charging and discharging mode; and finally, monitoring protection, temperature monitoring, status output, and user control input detection (DIP1~4) are provided. The selection of the MCU is mainly to meet the needs of ADC, GPIO, and external interrupts, without the need to pursue speed alone. Table 1 lists the usage of MCU peripherals in the actual circuit. Considering the need for future expansion, the main control chip uses STM32F101RXT6 (the latest STM32 series MCU of STMicroelectronics, using the Cortex-M3 core). [page]

Table 1: MCU peripheral allocation. 
The auxiliary power supply of the controller is directly converted from the battery. The battery input obtains 12V through a linear power supply (L78L12) to supply the logic circuit and PWM switch signal amplification; 3.3V is obtained through 12V to connect the switching power supply (L5970D), which mainly powers the MCU and peripheral circuits. The reason for using a switching power supply is to improve the conversion efficiency (reduce battery power consumption) and to provide sufficient load when the system is expanded in the future. Of course, in order to reduce costs, a linear power supply can be used to achieve this.
Main functions
of the controller The main functions of the controller include two aspects: battery charging and battery powering LEDs.
1. Battery charging
When the system detects that the ambient light is sufficient, the controller will enter the charging mode. There are two important voltage values ​​for battery charging: deep discharge voltage and floating charge voltage. The former represents the state where the battery power is exhausted under normal use, while the latter represents the maximum limit voltage of the battery charging. These parameters should be found in the battery product manual. In the design circuit, for the 12V battery, the deep discharge voltage is set to 11V and the floating charge voltage is set to 13.8V (both are voltage values ​​at room temperature, and the two values ​​in the software have added corresponding temperature compensation). The specific charging mode is shown in Table 2. Table 2

: Battery charging mode 
From Table 2, it can be seen that the MPPT algorithm will be used in the trickle charging mode and the constant current charging mode. There are many ways to implement the MPPT algorithm. There are many papers in the industry that have discussed this. In general, each has its own advantages and disadvantages. The relatively simple perturbation observation method (Perturbance and Observation) is used in the design circuit. The basic idea of ​​this control method is to increase or decrease the duty cycle of the charging circuit switch signal PWMCHG, and then observe whether the output power increases or decreases, so as to decide whether to increase or decrease the duty cycle in the next step. Since the output of the solar panel changes relatively slowly and is a single pole, this method can still achieve relatively good results.

2. Battery discharge
When the system detects that the ambient light is insufficient, it will enter the battery power supply mode for LED. The LED current is sampled by the high-current detection chip (TSC101AILT) and sent back to the MCU, which adjusts the duty cycle of the switch signal PWMDRV to obtain a constant output current. In order to achieve the purpose of energy saving, the constant current value of the LED will be adjusted according to the ambient light intensity detected by the system: when the ambient light changes from bright to dark, the output current of the system will also change from small to large accordingly; when the ambient light is completely dark, the output current of the system will also reach the preset maximum value. In addition to controlling the output of the LED by ambient light, the user can also turn on the time control function by setting the state of the switch DIP1~4. The system will control the LED from 5 minutes to 12 hours according to the setting combination of DIP1~4.

In addition, in order to improve the reliability of the system, the design circuit adds a series of software and hardware protection functions for solar panels, batteries and LEDs. Based on this system platform, the system performance can be further optimized by adding intelligent light-emitting diode working mode, adding communication modules and adopting wind-solar complementary systems.
Conclusion of this article
Solar-LED street lights can not only use clean and free solar energy and efficient and environmentally friendly LEDs to illuminate the roads, but also reduce greenhouse gas emissions and achieve the goal of green lighting. This street light system has been successfully implemented at the entrance of the STMicroelectronics building. All street light systems have been running for half a year and are working normally. As the price of solar panels continues to drop and the cost-effectiveness of LEDs increases, I believe this system will be more and more widely used.
Keywords:STM32 Reference address:Solar energy based on STM32 MCU: LED street light solution

Previous article:Introduction to porting QTE and QPE on ARM board
Next article:STM32 GPIO port output speed setting

Recommended ReadingLatest update time:2024-11-16 16:45

8051 MCU implements a single countdown timer with modifiable initial value (and command to start and stop)
Program functions: 1. Send the "Start.E" command via the serial port to start the device. 2. Send "Stop.E" command via the serial port to pause the device. 3. Send "Set init value as 12.E" through the serial port (the number in the command can be given in two digits) to set the initial value for the next timing.
[Microcontroller]
8051 MCU implements a single countdown timer with modifiable initial value (and command to start and stop)
Research and design of SNTP timing server based on STM32
0 Introduction With the rapid development of information technology and network technology, network interconnection has penetrated into all walks of life in the national economy. Network time synchronization has also received more and more attention, especially LAN time synchronization has become increasing
[Microcontroller]
stm32 Notes: Move user-defined keywords from MDK3.8 to MDK4.70A
Moved user keywords from MDK3.8 to MDK4.70A.    Newly installed mdk4.70A, with a size of 2.5G. Modified font color and other configurations. Found that several *.ini configuration files that used to be in keil9.0 and mdk3.8 were gone. At first I thought they were somewhere else, so I used EQ to add a file modificati
[Microcontroller]
stm32 Notes: Move user-defined keywords from MDK3.8 to MDK4.70A
Design of electric hot shear control circuit based on PIC microcontroller
  The system structure of the electric heating shear circuit is shown in Figure 1. It consists of six parts: sensor-ball switch, microcontroller timing detection and processing, working status indication, PWM signal generation and adjustment, electric heating module drive, and power supply.   As shown in Figure 1, th
[Power Management]
Design of electric hot shear control circuit based on PIC microcontroller
Analysis and Evaluation Method of Communication Performance of Single Chip Microcomputer
A prominent feature of modern information network technology is that all devices in the industrial control system 6 are connected into a network, so that they work under the management of a core software (this software may be a distributed operating system or an embedded operating system), forming an organic whole. Th
[Microcontroller]
Detailed Analysis of the Internal Data Memory RAM of MCS-51 MCU
The internal RAM of the 8051 microcontroller has a total of 256 units, which are usually divided into two parts according to their functions: the lower 128 units (unit address 00H ~ 7FH) and the upper 128 units (unit address 80H ~ FFH). The figure shows the configuration diagram of the lower 128 units. Register area
[Microcontroller]
Detailed Analysis of the Internal Data Memory RAM of MCS-51 MCU
The overall design of the single-chip microcomputer performance system based on Proteus
    Many current systems that use single-chip microcomputers to perform music are implemented using development boards combined with simulators. This method is not very complicated and is easy to implement, but it is not very convenient to debug and the cost is also high. This paper proposes a method of playing music
[Microcontroller]
The overall design of the single-chip microcomputer performance system based on Proteus
Infineon Technologies Launches New High-Performance Microcontroller AURIX™ TC4Dx
On November 6, Infineon Technologies AG announced the launch of the AURIX™ TC4Dx microcontroller (MCU), the first product in the latest AURIX TC4x series. Based on 28nm technology, the AURIX TC4Dx provides higher performance and high-speed connectivity. Image source: Infineon Technologies
[Automotive Electronics]
Infineon Technologies Launches New High-Performance Microcontroller AURIX™ TC4Dx
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号