CN116761296B - Solar street lamp controller for adjusting brightness of LED (light-emitting diode) based on time and battery voltage - Google Patents

Solar street lamp controller for adjusting brightness of LED (light-emitting diode) based on time and battery voltage Download PDF

Info

Publication number
CN116761296B
CN116761296B CN202311029304.6A CN202311029304A CN116761296B CN 116761296 B CN116761296 B CN 116761296B CN 202311029304 A CN202311029304 A CN 202311029304A CN 116761296 B CN116761296 B CN 116761296B
Authority
CN
China
Prior art keywords
resistor
pin
chip
voltage
capacitor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202311029304.6A
Other languages
Chinese (zh)
Other versions
CN116761296A (en
Inventor
李超群
彭曼曼
李军民
祝凤金
王险峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Mingda Electric Appliance Co ltd
Original Assignee
Shandong Mingda Electric Appliance Co ltd
Heze University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong Mingda Electric Appliance Co ltd, Heze University filed Critical Shandong Mingda Electric Appliance Co ltd
Priority to CN202311029304.6A priority Critical patent/CN116761296B/en
Publication of CN116761296A publication Critical patent/CN116761296A/en
Application granted granted Critical
Publication of CN116761296B publication Critical patent/CN116761296B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B45/00Circuit arrangements for operating light-emitting diodes [LED]
    • H05B45/10Controlling the intensity of the light
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02MAPPARATUS FOR CONVERSION BETWEEN AC AND AC, BETWEEN AC AND DC, OR BETWEEN DC AND DC, AND FOR USE WITH MAINS OR SIMILAR POWER SUPPLY SYSTEMS; CONVERSION OF DC OR AC INPUT POWER INTO SURGE OUTPUT POWER; CONTROL OR REGULATION THEREOF
    • H02M3/00Conversion of DC power input into DC power output
    • H02M3/02Conversion of DC power input into DC power output without intermediate conversion into AC
    • H02M3/04Conversion of DC power input into DC power output without intermediate conversion into AC by static converters
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02MAPPARATUS FOR CONVERSION BETWEEN AC AND AC, BETWEEN AC AND DC, OR BETWEEN DC AND DC, AND FOR USE WITH MAINS OR SIMILAR POWER SUPPLY SYSTEMS; CONVERSION OF DC OR AC INPUT POWER INTO SURGE OUTPUT POWER; CONTROL OR REGULATION THEREOF
    • H02M3/00Conversion of DC power input into DC power output
    • H02M3/02Conversion of DC power input into DC power output without intermediate conversion into AC
    • H02M3/04Conversion of DC power input into DC power output without intermediate conversion into AC by static converters
    • H02M3/10Conversion of DC power input into DC power output without intermediate conversion into AC by static converters using discharge tubes with control electrode or semiconductor devices with control electrode
    • H02M3/145Conversion of DC power input into DC power output without intermediate conversion into AC by static converters using discharge tubes with control electrode or semiconductor devices with control electrode using devices of a triode or transistor type requiring continuous application of a control signal
    • H02M3/155Conversion of DC power input into DC power output without intermediate conversion into AC by static converters using discharge tubes with control electrode or semiconductor devices with control electrode using devices of a triode or transistor type requiring continuous application of a control signal using semiconductor devices only
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B45/00Circuit arrangements for operating light-emitting diodes [LED]
    • H05B45/30Driver circuits
    • H05B45/345Current stabilisation; Maintaining constant current
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/16Controlling the light source by timing means

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The application relates to the technical field of solar street lamp controllers, in particular to a solar street lamp controller capable of adjusting LED brightness based on time and battery voltage. The main control power supply circuit comprises a lithium battery, a 5V voltage reduction module and a 3.3V voltage reduction module. The solar charging circuit comprises a charging main circuit and a charging control circuit, and the charging main circuit is electrically connected with the charging control circuit. The LED brightness adjusting circuit comprises a constant current control circuit and a street lamp port. The main control circuit comprises an MCU, a current and voltage measuring circuit and a clock circuit, wherein the current and voltage measuring circuit, the clock circuit and the MCU are connected. The brightness of the LED can be changed along with the time and the voltage value of the battery, so that the battery can be utilized more efficiently; the voltage threshold value for extinguishing the LEDs is set, so that the phenomenon of cyclic opening and closing of the LEDs caused by voltage rise due to the extinction of the LEDs can be avoided.

Description

一种基于时间和电池电压调节LED亮度的太阳能路灯控制器A solar street light controller that adjusts LED brightness based on time and battery voltage

技术领域Technical field

本发明涉及太阳能路灯控制器技术领域,具体涉及一种基于时间和电池电压调节LED亮度的太阳能路灯控制器。The invention relates to the technical field of solar street light controllers, and in particular to a solar street light controller that adjusts LED brightness based on time and battery voltage.

背景技术Background technique

目前,市面上的太阳能路灯开灯时间控制主要依靠光照传感器,即光照小于一定阈值后路灯打开,而路灯亮度主要是通过设置某亮度持续时间来设置。上述依靠光照传感器和某一亮度持续时间来确定路灯亮度的路灯,不易满足在限定某些日期和时钟时间段内路灯都为某一亮度的功能。另外,目前的太阳能路灯在调节亮度时,没有考虑电池的电量,在电池电量剩余较少的时候路灯仍以最大亮度运行,导致电池电量很快消耗完,使路灯熄灭,电池运用不合理。Currently, the lighting time control of solar street lights on the market mainly relies on light sensors, that is, the street lights turn on when the light is less than a certain threshold, and the brightness of the street lights is mainly set by setting a certain brightness duration. The above-mentioned street lights that rely on light sensors and a certain brightness duration to determine the brightness of the street lights cannot easily meet the function of limiting the street lights to a certain brightness within certain dates and clock time periods. In addition, the current solar street lights do not consider the battery power when adjusting the brightness. When the battery power is low, the street lights still operate at the maximum brightness, causing the battery power to be consumed quickly, causing the street lights to go out and unreasonable battery usage.

发明内容Contents of the invention

本发明意在提供一种基于时间和电池电压调节LED亮度的太阳能路灯控制器,以解决目前太阳能路灯的亮度无法满足限定日期和时间段路灯亮度固定和电池运用不合理导致路灯熄灭的问题。The present invention is intended to provide a solar street light controller that adjusts LED brightness based on time and battery voltage, so as to solve the problem that the brightness of current solar street lights cannot meet the fixed brightness of the street light within a limited date and time period and the unreasonable use of the battery causes the street light to go out.

为达到上述目的,本发明采用如下技术方案:一种基于时间和电池电压调节LED亮度的太阳能路灯控制器,包括主控电路、太阳能充电电路、LED亮度调节电路和主控供电电路;所述主控电路包括MCU电路、电流电压测量电路、时钟电路,所述电流电压测量电路和时钟电路均与MCU电性连接;所述太阳能充电电路包括充电主电路和充电控制电路,所述充电主电路和充电控制电路电性连接;所述主控供电电路包括锂电池、5V降压模块和3.3V降压模块,所述5V降压模块和3.3V降压模块用于调控锂电池的电路电压;所述主控供电电路用于主控电路供电;所述LED亮度调节电路包括恒流控制电路和路灯端口,所述恒流控制电路和路灯端口电性连接;所述主控电路用于获取充电主电路的电压和锂电池电压,并根据充电主电路的电压和锂电池电压控制充电主电路对锂电池的充电电压和电流;所述主控电路用于获取时间电路的日期和时间,并根据日期、时间和锂电池电压调控LED亮度调节电路。In order to achieve the above object, the present invention adopts the following technical solution: a solar street light controller that adjusts LED brightness based on time and battery voltage, including a main control circuit, a solar charging circuit, an LED brightness adjustment circuit and a main control power supply circuit; the main control circuit The control circuit includes an MCU circuit, a current and voltage measurement circuit, and a clock circuit. The current and voltage measurement circuit and the clock circuit are electrically connected to the MCU; the solar charging circuit includes a charging main circuit and a charging control circuit, and the charging main circuit and The charging control circuit is electrically connected; the main control power supply circuit includes a lithium battery, a 5V step-down module and a 3.3V step-down module. The 5V step-down module and the 3.3V step-down module are used to regulate the circuit voltage of the lithium battery; so The main control power supply circuit is used to power the main control circuit; the LED brightness adjustment circuit includes a constant current control circuit and a street light port, and the constant current control circuit and the street light port are electrically connected; the main control circuit is used to obtain the charging main The voltage of the circuit and the voltage of the lithium battery, and control the charging voltage and current of the lithium battery by the main charging circuit according to the voltage of the main charging circuit and the voltage of the lithium battery; the main control circuit is used to obtain the date and time of the time circuit, and according to the date , time and lithium battery voltage control LED brightness adjustment circuit.

优选的,作为一种改进,所述主控电路根据日期、时间和锂电池电压调控LED亮度调节电路具体包括:所述主控电路根据日期获取对应的预设日期的全部预设时间段数据,然后判断当前时间对应的预设时间段,并获取预设时间段对应的预设电压区间值,并根据预设电压区间值执行路灯亮度;所述锂电池电压减去预设的电压阈值小于预设的电池保护电压时主控电路控制路灯熄灭,所述主控电路在锂电池电压减去预设的电压阈值大于预设的电池保护电压时控制打开路灯。Preferably, as an improvement, the main control circuit regulates the LED brightness adjustment circuit according to the date, time and lithium battery voltage, specifically including: the main control circuit obtains all the preset time period data of the corresponding preset date according to the date, Then determine the preset time period corresponding to the current time, obtain the preset voltage interval value corresponding to the preset time period, and perform street light brightness according to the preset voltage interval value; the lithium battery voltage minus the preset voltage threshold is less than the preset voltage interval value. When the battery protection voltage is set to a preset battery protection voltage, the main control circuit controls the street light to turn off. The main control circuit controls the street light to turn on when the lithium battery voltage minus the preset voltage threshold is greater than the preset battery protection voltage.

优选的,作为一种改进,所述MCU电路包括主控芯片U1、晶振X1、开关SW1、电阻R1、电阻R2、电阻R3、电阻R4、电容C1、电容C2、电容C3和4P排针H1,所述主控芯片U1为STM32F103C8T6微控制器;所述电流电压测量电路包括INA226电流电压测量芯片U2、INA226电流电压测量芯片U3、电阻R5、电阻R6、电阻R7和电阻R8;所述时钟电路包括DS3231SN时钟芯片U4、电阻R9、电阻R10、纽扣电池B1。Preferably, as an improvement, the MCU circuit includes a main control chip U1, a crystal oscillator X1, a switch SW1, a resistor R1, a resistor R2, a resistor R3, a resistor R4, a capacitor C1, a capacitor C2, a capacitor C3 and a 4P pin header H1. The main control chip U1 is an STM32F103C8T6 microcontroller; the current and voltage measurement circuit includes INA226 current and voltage measurement chip U2, INA226 current and voltage measurement chip U3, resistor R5, resistor R6, resistor R7 and resistor R8; the clock circuit includes DS3231SN clock chip U4, resistor R9, resistor R10, button battery B1.

优选的,作为一种改进,所述主控芯片U1的5号引脚连接电容C1第一端、电阻R1第一端和晶振X1第一端,所述主控芯片U1的6号引脚连接电容C2第一端、电阻R1第二端和晶振X1第二端,所述电容C1第二端、电容C2第二端接地;所述主控芯片U1的7号引脚接电阻R2第一端、电容C3第一端和开关SW1第一端,所述电阻R2第二端接3.3V电源,所述电容C3第二端和开关SW1第二端接地,所述主控芯片U1的20号和44号引脚分别接电阻R3和电阻R4的第一端,所述电阻R3和电阻R4的第二端接地,所述主控芯片U1的34号和37号引脚分别接4P排针H1的2号和3号引脚,4P排针H1的1号和4号引脚分别接3.3V电源和地,所述主控芯片U1的1号、24号、36号、48号引脚均接3.3V电源,所述主控芯片U1的23号、47号引脚接地;所述INA226电流电压测量芯片U2的4号引脚接主控芯片U1的22号引脚、电阻R5第一端,所述INA226电流电压测量芯片U2的5号引脚接主控芯片U1的21号引脚和电阻R6第一端,电阻R5第二端、电阻R6第二端、INA226电流电压测量芯片U2的6号引脚接3.3V电,INA226电流电压测量芯片U2的1号和7号引脚接地,INA226电流电压测量芯片U2的8号和10号引脚相连接,所述INA226电流电压测量芯片U3的4号引脚接主控芯片U1的22号引脚、电阻R7第一端,所述INA226电流电压测量芯片U3的5号引脚接主控芯片U1的21号引脚、电阻R8第一端,电阻R7第二端、电阻R8第二端、INA226电流电压测量芯片U3的6号引脚接3.3V电,所述INA226电流电压测量芯片U3的1号和7号引脚接地,所述INA226电流电压测量芯片U3的8号和10号引脚相连接;DS3231SN时钟芯片U4的15号引脚接主控芯片U1的43号引脚、电阻R9第一端,DS3231SN时钟芯片U4的16号引脚接主控芯片U1的42号引脚、电阻R10第一端,DS3231SN时钟芯片U4的14号引脚接纽扣电池B1正极,电阻R9第二端、电阻R10第二端、DS3231SN时钟芯片U4的2号引脚接3.3V电,纽扣电池B1负极、DS3231SN时钟芯片U4的13号引脚接地。Preferably, as an improvement, the No. 5 pin of the main control chip U1 is connected to the first end of the capacitor C1, the first end of the resistor R1 and the first end of the crystal oscillator X1, and the No. 6 pin of the main control chip U1 is connected to The first end of capacitor C2, the second end of resistor R1 and the second end of crystal oscillator X1, the second end of capacitor C1 and the second end of capacitor C2 are connected to ground; the No. 7 pin of the main control chip U1 is connected to the first end of resistor R2 , the first end of the capacitor C3 and the first end of the switch SW1, the second end of the resistor R2 is connected to the 3.3V power supply, the second end of the capacitor C3 and the second end of the switch SW1 are connected to ground, and the No. 20 and No. 20 of the main control chip U1 Pin No. 44 is connected to the first end of resistor R3 and resistor R4 respectively. The second end of resistor R3 and resistor R4 is connected to ground. Pin No. 34 and pin No. 37 of main control chip U1 are respectively connected to the pin header H1 of 4P. Pins 2 and 3, pins 1 and 4 of the 4P pin header H1 are connected to the 3.3V power supply and ground respectively, and pins 1, 24, 36 and 48 of the main control chip U1 are all connected 3.3V power supply, pins 23 and 47 of the main control chip U1 are connected to ground; pin 4 of the INA226 current and voltage measurement chip U2 is connected to pin 22 of the main control chip U1 and the first end of the resistor R5. The No. 5 pin of the INA226 current and voltage measurement chip U2 is connected to the No. 21 pin of the main control chip U1 and the first end of the resistor R6, the second end of the resistor R5, the second end of the resistor R6, and the 6 pin of the INA226 current and voltage measurement chip U2. Pin No. is connected to 3.3V power, No. 1 and No. 7 pins of the INA226 current and voltage measurement chip U2 are connected to ground, No. 8 and No. 10 pins of the INA226 current and voltage measurement chip U2 are connected, and the No. 8 and No. 10 pins of the INA226 current and voltage measurement chip U2 are connected. Pin No. 4 is connected to pin No. 22 of the main control chip U1 and the first end of the resistor R7. Pin No. 5 of the INA226 current and voltage measurement chip U3 is connected to pin No. 21 of the main control chip U1 and the first end of the resistor R8. , the second end of the resistor R7, the second end of the resistor R8, and the No. 6 pin of the INA226 current and voltage measurement chip U3 are connected to 3.3V. The No. 1 and No. 7 pins of the INA226 current and voltage measurement chip U3 are connected to the ground. The INA226 Pins 8 and 10 of the current and voltage measurement chip U3 are connected; pin 15 of the DS3231SN clock chip U4 is connected to pin 43 of the main control chip U1 and the first end of the resistor R9, and pin 16 of the DS3231SN clock chip U4 is connected. The pin is connected to the No. 42 pin of the main control chip U1 and the first end of the resistor R10. The No. 14 pin of the DS3231SN clock chip U4 is connected to the positive electrode of the button battery B1. The second end of the resistor R9, the second end of the resistor R10 and the DS3231SN clock chip U4 are connected. Pin 2 is connected to 3.3V power, the negative electrode of button battery B1, and pin 13 of DS3231SN clock chip U4 are connected to ground.

优选的,作为一种改进,所述充电主电路包括光伏板、电阻R11、电阻R12、电阻R13、场效应管Q1、MOS管D1、MOS管D2、功率电感L1和电容C4;所述充电控制电路包括6N136隔离光耦U5、NPN三极管Q2、PNP三极管Q3、隔离电源J1、电阻R14、电阻R15、电阻R16、电阻R17、电阻R18和电阻R19。Preferably, as an improvement, the charging main circuit includes a photovoltaic panel, resistor R11, resistor R12, resistor R13, field effect transistor Q1, MOS tube D1, MOS tube D2, power inductor L1 and capacitor C4; the charging control The circuit includes 6N136 isolation optocoupler U5, NPN transistor Q2, PNP transistor Q3, isolated power supply J1, resistor R14, resistor R15, resistor R16, resistor R17, resistor R18 and resistor R19.

优选的,作为一种改进,所述光伏板正极连接采样电阻R11第一端R11+、INA226电流电压测量芯片U2的8号和10号引脚,采样电阻R11第二端R11-连接INA226电流电压测量芯片U2的9号引脚、MOS管Q1漏极,所述MOS管Q1源极和栅极连接电阻R12的两端,所述MOS管Q1源极与肖特基二极管D1正极连接,所述肖特基二极管D1负极连接功率电感L1第一端、所述肖特基二极管D2负极,所述功率电感L1第二端连接采样电阻R13第一端R13+、INA226电流电压测量芯片U3的8号和10号引脚和电容C4正极,所述采样电阻R13第二端R13-连接INA226电流电压测量芯片U3的9号引脚、锂电池正极,所述电容C4负极、肖特基二极管D2正极、电池负极连接光伏板负极;所述6N136隔离光耦U5的2号引脚与电阻R14第一端连接,所述电阻R14第二端接3.3V电源,所述6N136隔离光耦U5的3号引脚接主控芯片1号引脚,所述隔离电源J1的1号引脚接地、电容C5第一端,所述隔离电源J1的2号引脚接5V电源正极、电容C5第二端,所述隔离电源J1的3号引脚接电容C6第一端、电阻R18第一端、6N136隔离光耦U5的5号引脚、PNP三极管Q3的集电极,所述隔离电源J1的4号引脚接电容C6第二端、电阻R18第二端、NPN三极管Q2的集电极、电阻R15第一端,所述电阻R15第二端接6N136隔离光耦U5的6号引脚、电阻R16第一端、电阻R17第一端,所述电阻R16第二端接三极管Q3基极,所述电阻R17第二端接三极管Q2基极,所述三极管Q2的发射极接三极管Q3的发射极、电阻R19第一端,所述电阻R19第二端接MOS管Q1漏极。Preferably, as an improvement, the anode of the photovoltaic panel is connected to the first terminal R11 + of the sampling resistor R11 and pins No. 8 and 10 of the INA226 current and voltage measurement chip U2, and the second terminal R11 - of the sampling resistor R11 is connected to the current and voltage of the INA226 Measure pin 9 of the chip U2 and the drain of the MOS tube Q1. The source and gate of the MOS tube Q1 are connected to both ends of the resistor R12. The source of the MOS tube Q1 is connected to the anode of the Schottky diode D1. The cathode of the Schottky diode D1 is connected to the first end of the power inductor L1 and the cathode of the Schottky diode D2. The second end of the power inductor L1 is connected to the first end R13 + of the sampling resistor R13 and No. 8 of the INA226 current and voltage measurement chip U3. And pin No. 10 and the positive electrode of capacitor C4, the second end R13 of the sampling resistor R13 - is connected to pin No. 9 of the INA226 current and voltage measurement chip U3, the positive electrode of the lithium battery, the negative electrode of the capacitor C4, the positive electrode of Schottky diode D2, The negative electrode of the battery is connected to the negative electrode of the photovoltaic panel; the No. 2 pin of the 6N136 isolation optocoupler U5 is connected to the first end of the resistor R14, the second end of the resistor R14 is connected to the 3.3V power supply, and the No. 3 pin of the 6N136 isolation optocoupler U5 The No. 1 pin of the main control chip is connected to the main control chip. The No. 1 pin of the isolated power supply J1 is connected to the ground and the first end of the capacitor C5. The No. 2 pin of the isolated power supply J1 is connected to the positive electrode of the 5V power supply and the second end of the capacitor C5. Therefore, Pin No. 3 of the isolated power supply J1 is connected to the first end of the capacitor C6, the first end of the resistor R18, pin No. 5 of the 6N136 isolation optocoupler U5, and the collector of PNP transistor Q3. Pin No. 4 of the isolated power supply J1 Connect the second end of capacitor C6, the second end of resistor R18, the collector of NPN transistor Q2, and the first end of resistor R15. The second end of resistor R15 is connected to pin 6 of 6N136 isolation optocoupler U5 and the first end of resistor R16. , the first end of resistor R17, the second end of resistor R16 is connected to the base of transistor Q3, the second end of resistor R17 is connected to the base of transistor Q2, the emitter of transistor Q2 is connected to the emitter of transistor Q3, and the third end of resistor R19 One end of the resistor R19 is connected to the drain of the MOS transistor Q1.

优选的,作为一种改进,所述恒流控制电路包括SY7203DBC升压恒流芯片U8、调流电阻R20、功率电感L4、肖特基二极管D4、电容C12和电容C13。Preferably, as an improvement, the constant current control circuit includes SY7203DBC boost constant current chip U8, current regulating resistor R20, power inductor L4, Schottky diode D4, capacitor C12 and capacitor C13.

优选的,作为一种改进,所述SY7203DBC升压恒流芯片U8的2号引脚接路灯接口端子负极、调流电阻R20第一端,所述调流电阻R20第二端接地,所述SY7203DBC升压恒流芯片U8的4号和5号引脚连接后接功率电感L4第一端、肖特基二极管D4正极,所述SY7203DBC升压恒流芯片U8的7号引脚接功率电感L4第二端、电容C12第一端、锂电池正极,所述电容C12第二端接地,所述SY7203DBC升压恒流芯片U8的8号引脚接肖特基二极管D4负极、电容C13第一端、路灯接口端子正极,所述电容C13第二端接地,所述SY7203DBC升压恒流芯片U8的8号引脚接主控芯片U1的11号引脚PA1。Preferably, as an improvement, the No. 2 pin of the SY7203DBC boost constant current chip U8 is connected to the negative electrode of the street light interface terminal and the first end of the current regulating resistor R20. The second end of the current regulating resistor R20 is connected to the ground. The SY7203DBC Pins 4 and 5 of the boost constant current chip U8 are connected to the first terminal of the power inductor L4 and the anode of the Schottky diode D4. Pin 7 of the SY7203DBC boost constant current chip U8 is connected to the first terminal of the power inductor L4. Two terminals, the first terminal of capacitor C12, the positive electrode of the lithium battery, the second terminal of the capacitor C12 is connected to ground, the No. 8 pin of the SY7203DBC boost constant current chip U8 is connected to the cathode of Schottky diode D4, the first terminal of capacitor C13, The positive electrode of the street light interface terminal, the second end of the capacitor C13 is connected to ground, and the No. 8 pin of the SY7203DBC boost constant current chip U8 is connected to the No. 11 pin PA1 of the main control chip U1.

优选的,作为一种改进,所述5V降压模块包括XL1509-5稳压芯片U6、电容 C14、电容C7、电容C8、肖特基二极管D3和功率电感L3;所述3.3V降压模块包括RT9193-33GB稳压芯片U7、电容C9、电容C10和电容C11。Preferably, as an improvement, the 5V step-down module includes XL1509-5 voltage stabilizing chip U6, capacitor C14, capacitor C7, capacitor C8, Schottky diode D3 and power inductor L3; the 3.3V step-down module includes RT9193-33GB voltage regulator chip U7, capacitor C9, capacitor C10 and capacitor C11.

优选,作为一种改进,所述锂电池正极、电容C14正极、电容C7第一端接XL1509-5稳压芯片U6的1号引脚,所述稳压芯片U6的2号引脚接功率电感L3第一端、肖特基二极管D4负极,所述XL1509-5稳压芯片U6的3号引脚接功率电感L3第二端、电容C8正极,所述XL1509-5稳压芯片U6的5号、6号、7号、8号引脚相连接后与锂电池负极、电容C14负极、电容C7第二端、肖特基二极管D3正极、电容C8负极相连接;所述RT9193-33GB稳压芯片U7的1号和3号引脚接电容C9正极、功率电感L3第二端,所述RT9193-33GB稳压芯片U7的2号引脚接接电容C9负极、锂电池负极,所述RT9193-33GB稳压芯片U7的4号引脚接电容C10第一端,所述电容C10第二端接地,所述RT9193-33GB稳压芯片U7的5号引脚接电容C11的正极,所述电容C11的负极接地。Preferably, as an improvement, the positive electrode of the lithium battery, the positive electrode of the capacitor C14, and the first terminal of the capacitor C7 are connected to the No. 1 pin of the XL1509-5 voltage stabilizing chip U6, and the No. 2 pin of the voltage stabilizing chip U6 is connected to the power inductor. The first terminal of L3 and the negative terminal of Schottky diode D4. The No. 3 pin of the XL1509-5 voltage stabilizing chip U6 is connected to the second terminal of the power inductor L3 and the positive terminal of the capacitor C8. The No. 5 pin of the XL1509-5 voltage stabilizing chip U6 is connected. , pins No. 6, 7, and 8 are connected to the negative electrode of the lithium battery, the negative electrode of capacitor C14, the second terminal of capacitor C7, the positive electrode of Schottky diode D3, and the negative electrode of capacitor C8; the RT9193-33GB voltage stabilizing chip The No. 1 and No. 3 pins of U7 are connected to the positive electrode of capacitor C9 and the second terminal of power inductor L3. The No. 2 pin of the RT9193-33GB voltage stabilizing chip U7 is connected to the negative electrode of capacitor C9 and the negative electrode of lithium battery. The RT9193-33GB Pin No. 4 of the voltage stabilizing chip U7 is connected to the first terminal of the capacitor C10, and the second terminal of the capacitor C10 is connected to ground. Pin No. 5 of the RT9193-33GB voltage stabilizing chip U7 is connected to the positive electrode of the capacitor C11. The negative terminal is connected to ground.

本方案有益效果:Beneficial effects of this program:

(1)本发明的控制器可使LED路灯亮度随着时钟时间与电池电压值改变,使LED亮度调节和电池利用更加合理。(1) The controller of the present invention can make the brightness of the LED street light change with the clock time and battery voltage value, making the LED brightness adjustment and battery utilization more reasonable.

(2)本发明的控制器可通过设置LED路灯熄灭电压阈值的方法,在锂电池过放保护前熄灭路灯,以保存少量电量供控制器使用,避免控制器使用的时钟芯片因断电导致时间不准。(2) The controller of the present invention can extinguish the street lights before the lithium battery over-discharge protection by setting the LED street light extinguishing voltage threshold, so as to save a small amount of power for the controller to use and avoid the clock chip used by the controller causing time loss due to power outage. Not allowed.

(3)本发明的控制器可通过软件设置的方式来避免因电池达到路灯熄灭阈值路灯熄灭时,电压回升导致的LED路灯循环开关。(3) The controller of the present invention can avoid the LED street light cycle switching caused by the voltage rebound when the battery reaches the street light extinguishing threshold and the street light goes out through software settings.

附图说明Description of drawings

图1为本发明的主控电路图。Figure 1 is a main control circuit diagram of the present invention.

图2为本发明的电流电压测量电路图。Figure 2 is a circuit diagram of the current and voltage measurement of the present invention.

图3为本发明的时钟电路图。Figure 3 is a clock circuit diagram of the present invention.

图4为本发明的太阳能充电电路图。Figure 4 is a solar charging circuit diagram of the present invention.

图5为本发明的太阳能充电驱动控制电路图。Figure 5 is a solar charging drive control circuit diagram of the present invention.

图6为本发明的主控供电电路。Figure 6 shows the main control power supply circuit of the present invention.

图7为本发明的LED驱动与亮度调节电路图。Figure 7 is a circuit diagram of the LED driving and brightness adjustment circuit of the present invention.

图8为本发明的LED亮度调节流程图。Figure 8 is a flow chart of LED brightness adjustment according to the present invention.

图9为本发明的到达电池保护电压后关闭LED路灯的实施过程的流程图。Figure 9 is a flow chart of the implementation process of turning off the LED street light after reaching the battery protection voltage according to the present invention.

具体实施方式Detailed ways

下面通过具体实施方式进一步详细说明:The following is further detailed through specific implementation methods:

实施例:Example:

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of the present invention.

如图1-3所示,图中展示了主控电路图,主控电路包括MCU最小系统电路、电流电压测量电路、时钟电路;所述MCU最小系统电路包括STM32F103C8T6主控芯片U1、晶振X1、开关SW1、电阻R1、电阻R2、电阻R3、电阻R4、电容C1、电容C2、电容C3、4P排针H1;所述电流电压测量电路包括INA226电流电压测量芯片U2、INA226电流电压测量芯片U3、电阻R5、电阻R6、电阻R7、电阻R8;所述时钟电路包括DS3231SN时钟芯片U4、电阻R9、电阻R10、纽扣电池B1。其中:主控芯片U1的5号引脚连接电容C1第一端、电阻R1第一端、晶振X1第一端,主控芯片U1的6号引脚连接电容C2第一端、电阻R1第二端、晶振X1第二端,电容C1第二端、电容C2第二端接地;主控芯片U1的7号引脚接电阻R2第一端、电容C3第一端、开关SW1第一端,电阻R2第二端接3.3V电,电容C3第二端、开关SW1第二端接地,主控芯片U1的20号和44号引脚分别接电阻R3和电阻R4的第一端,电阻R3和电阻R4的第二端接地,主控芯片U1的34号和37号引脚分别接4P排针H1的2号和3号引脚,4P排针H1的1号和4号引脚分别接3.3V电源和地,主控芯片U1的1号、24号、36号、48号引脚接3.3V电源,主控芯片U1的23号、47号引脚接地;INA226电流电压测量芯片U2的4号引脚接主控芯片U1的22号引脚、电阻R5第一端,芯片U2的5号引脚接主控芯片U1的21号引脚、电阻R6第一端,电阻R5第二端、电阻R6第二端、芯片U2的6号引脚接3.3V电,芯片U2的1号和7号引脚接地,芯片U2的8号和10号引脚相连接,INA226电流电压测量芯片U3的4号引脚接主控芯片U1的22号引脚、电阻R7第一端,芯片U3的5号引脚接主控芯片U1的21号引脚、电阻R8第一端,电阻R7第二端、电阻R8第二端、芯片U3的6号引脚接3.3V电,芯片U3的1号和7号引脚接地,芯片U3的8号和芯片U3的10号引脚相连接;DS3231SN时钟芯片U4的15号引脚接主控芯片U1的43号引脚、电阻R9第一端,时钟芯片U4的16号引脚接主控芯片U1的42号引脚、电阻R10第一端,时钟芯片U4的14号引脚接纽扣电池B1正极,电阻R9第二端、电阻R10第二端、时钟芯片U4的2号引脚接3.3V电,纽扣电池B1负极、时钟芯片U4的13号引脚接地。As shown in Figure 1-3, the main control circuit diagram is shown. The main control circuit includes the MCU minimum system circuit, current and voltage measurement circuit, and clock circuit. The MCU minimum system circuit includes the STM32F103C8T6 main control chip U1, crystal oscillator X1, switch SW1, resistor R1, resistor R2, resistor R3, resistor R4, capacitor C1, capacitor C2, capacitor C3, 4P pin header H1; the current and voltage measurement circuit includes INA226 current and voltage measurement chip U2, INA226 current and voltage measurement chip U3, and resistor R5, resistor R6, resistor R7, resistor R8; the clock circuit includes DS3231SN clock chip U4, resistor R9, resistor R10, and button battery B1. Among them: Pin No. 5 of the main control chip U1 is connected to the first terminal of the capacitor C1, the first terminal of the resistor R1, and the first terminal of the crystal oscillator X1. Pin No. 6 of the main control chip U1 is connected to the first terminal of the capacitor C2 and the second terminal of the resistor R1. terminal, the second terminal of crystal oscillator The second terminal of R2 is connected to 3.3V power, the second terminal of capacitor C3 and the second terminal of switch SW1 are connected to ground. Pins 20 and 44 of the main control chip U1 are connected to the first terminals of resistor R3 and resistor R4 respectively. Resistor R3 and resistor The second end of R4 is connected to ground. Pins 34 and 37 of the main control chip U1 are connected to pins 2 and 3 of the 4P pin header H1 respectively. Pins 1 and 4 of the 4P pin header H1 are connected to 3.3V respectively. Power supply and ground, pins 1, 24, 36 and 48 of the main control chip U1 are connected to the 3.3V power supply, pins 23 and 47 of the main control chip U1 are connected to ground; pins 4 of the INA226 current and voltage measurement chip U2 The pin is connected to the No. 22 pin of the main control chip U1 and the first end of the resistor R5. The No. 5 pin of the chip U2 is connected to the No. 21 pin of the main control chip U1 and the first end of the resistor R6. The second end of the resistor R5 and the resistor The second end of R6 and pin 6 of chip U2 are connected to 3.3V power. Pins 1 and 7 of chip U2 are connected to ground. Pins 8 and 10 of chip U2 are connected. INA226 current and voltage measurement chip U3’s 4 Pin No. 22 is connected to pin No. 22 of the main control chip U1 and the first end of the resistor R7. Pin No. 5 of the chip U3 is connected to pin No. 21 of the main control chip U1 and the first end of the resistor R8. The second end of the resistor R7 is connected to pin No. 21 of the main control chip U1. The second end of resistor R8 and pin 6 of chip U3 are connected to 3.3V power. Pins 1 and 7 of chip U3 are connected to ground. Pin 8 of chip U3 is connected to pin 10 of chip U3; DS3231SN clock chip U4 The No. 15 pin of the main control chip U1 is connected to the No. 43 pin of the main control chip U1 and the first end of the resistor R9. The No. 16 pin of the clock chip U4 is connected to the No. 42 pin of the main control chip U1 and the first end of the resistor R10. The clock chip U4 Pin 14 is connected to the positive electrode of button battery B1, the second end of resistor R9, the second end of resistor R10, and pin 2 of clock chip U4 are connected to 3.3V power, the negative electrode of button battery B1, and pin 13 of clock chip U4 are connected to ground. .

如图4-5所示,图中展示了太阳能充电电路,包括充电主电路和充电控制电路;所述充电主电路包括光伏板、锂电池、电阻R11、电阻R12、电阻R13、场效应管Q1、MOS管D1、MOS管D2、功率电感L1、电容C4;所述充电控制电路包括6N136隔离光耦U5、NPN三极管Q2、PNP三极管Q3、隔离电源J1、电阻R14、电阻R15、电阻R16、电阻R17、电阻R18、电阻R19。对于充电主电路部分,光伏板正极连接采样电阻R11第一端R11+、INA226电流电压测量芯片U2的8号和10号引脚,采样电阻R11第二端R11-连接INA226电流电压测量芯片U2的9号引脚、MOS管Q1漏极,MOS管Q1源极和栅极连接电阻R12的两端,MOS管Q1源极与肖特基二极管D1正极连接,肖特基二极管D1负极连接功率电感L1第一端、肖特基二极管D2负极,功率电感L1第二端连接采样电阻R13第一端R13+、INA226电流电压测量芯片U3的8号和10号引脚和电容C4正极,采样电阻R13第二端R13-连接INA226电流电压测量芯片U3的9号引脚、锂电池正极,电容C4负极、肖特基二极管D2正极、电池负极连接光伏板负极。对于充电控制电路部分,6N136隔离光耦U5的2号引脚与电阻R14第一端连接,电阻R14第二端接3.3V电源,隔离光耦U5的3号引脚接主控芯片1号引脚,隔离电源J1的1号引脚接地、电容C5第一端,隔离电源J1的2号引脚接5V电源正极、电容C5第二端,隔离电源J1的3号引脚接电容C6第一端、电阻R18第一端、6N136隔离光耦U5的5号引脚、PNP三极管Q3的集电极,隔离电源J1的4号引脚接电容C6第二端、电阻R18第二端、NPN三极管Q2的集电极、电阻R15第一端,电阻R15第二端接隔离光耦U5的6号引脚、电阻R16第一端、电阻R17第一端,电阻R16第二端接三极管Q3基极,电阻R17第二端接三极管Q2基极,三极管Q2的发射极接三极管Q3的发射极、电阻R19第一端,R19第二端接MOS管Q1漏极。As shown in Figure 4-5, the figure shows the solar charging circuit, including the main charging circuit and the charging control circuit; the main charging circuit includes photovoltaic panels, lithium batteries, resistors R11, resistors R12, resistors R13, and field effect transistors Q1 , MOS tube D1, MOS tube D2, power inductor L1, capacitor C4; the charging control circuit includes 6N136 isolated optocoupler U5, NPN transistor Q2, PNP transistor Q3, isolated power supply J1, resistor R14, resistor R15, resistor R16, resistor R17, resistor R18, resistor R19. For the main charging circuit part, the positive electrode of the photovoltaic panel is connected to the first terminal R11 + of the sampling resistor R11 and pins 8 and 10 of the INA226 current and voltage measurement chip U2. The second terminal R11 - of the sampling resistor R11 is connected to the INA226 current and voltage measurement chip U2. Pin No. 9, the drain of MOS tube Q1, the source and gate of MOS tube Q1 are connected to both ends of resistor R12, the source of MOS tube Q1 is connected to the anode of Schottky diode D1, and the cathode of Schottky diode D1 is connected to power inductor L1 The first end, the cathode of Schottky diode D2, the second end of the power inductor L1 is connected to the first end R13 + of the sampling resistor R13, pins 8 and 10 of the INA226 current and voltage measurement chip U3 and the positive electrode of the capacitor C4, and the sampling resistor R13 The two terminals R13 - are connected to pin 9 of the INA226 current and voltage measurement chip U3, the positive electrode of the lithium battery, the negative electrode of the capacitor C4, the positive electrode of the Schottky diode D2, and the negative electrode of the battery are connected to the negative electrode of the photovoltaic panel. For the charging control circuit part, the No. 2 pin of the 6N136 isolation optocoupler U5 is connected to the first end of the resistor R14, the second end of the resistor R14 is connected to the 3.3V power supply, and the No. 3 pin of the isolation optocoupler U5 is connected to the No. 1 pin of the main control chip. Pin No. 1 of the isolated power supply J1 is connected to the ground and the first terminal of the capacitor C5. Pin No. 2 of the isolated power supply J1 is connected to the positive pole of the 5V power supply and the second terminal of the capacitor C5. Pin No. 3 of the isolated power supply J1 is connected to the first terminal of the capacitor C6. terminal, the first terminal of resistor R18, the No. 5 pin of 6N136 isolation optocoupler U5, and the collector of PNP transistor Q3. The No. 4 pin of the isolated power supply J1 is connected to the second terminal of capacitor C6, the second terminal of resistor R18, and the NPN transistor Q2. The collector, the first end of resistor R15, the second end of resistor R15 is connected to pin 6 of isolation optocoupler U5, the first end of resistor R16, the first end of resistor R17, the second end of resistor R16 is connected to the base of transistor Q3, the resistor The second end of R17 is connected to the base of transistor Q2, the emitter of transistor Q2 is connected to the emitter of transistor Q3, and the first end of resistor R19, and the second end of R19 is connected to the drain of MOS tube Q1.

还包括主控供电电路,如图6所示,图中展示了主控供电电路,包括5V降压模块和3.3V降压模块;所述5V降压模块包括XL1509-5稳压芯片U6、电容C14、电容C7、电容C8、肖特基二极管D3、功率电感L3;所述3.3V降压模块包括RT9193-33GB稳压芯片U7、电容C9、电容C10、电容C11。其中:锂电池正极、电容C14正极、电容C7第一端接稳压芯片U6的1号引脚,稳压芯片U6的2号引脚接功率电感L3第一端、肖特基二极管D4负极,稳压芯片U6的3号引脚接功率电感L3第二端、电容C8正极,稳压芯片U6的5号、6号、7号、8号引脚相连接后与锂电池负极、电容C14负极、电容C7第二端、肖特基二极管D3正极、电容C8负极相连接;RT9193-33GB稳压芯片U7的1号和3号引脚接电容C9正极、功率电感L3第二端,稳压芯片U7的2号引脚接接电容C9负极、锂电池负极,稳压芯片U7的4号引脚接电容C10第一端,电容C10第二端接地,稳压芯片U7的5号引脚接电容C11的正极,电容C11的负极接地。It also includes a main control power supply circuit, as shown in Figure 6, which shows the main control power supply circuit, including a 5V step-down module and a 3.3V step-down module; the 5V step-down module includes XL1509-5 voltage stabilizing chip U6, capacitor C14, capacitor C7, capacitor C8, Schottky diode D3, power inductor L3; the 3.3V step-down module includes RT9193-33GB voltage stabilizing chip U7, capacitor C9, capacitor C10, and capacitor C11. Among them: the positive electrode of the lithium battery, the positive electrode of capacitor C14, and the first terminal of capacitor C7 are connected to the No. 1 pin of the voltage stabilizing chip U6, and the No. 2 pin of the voltage stabilizing chip U6 is connected to the first terminal of the power inductor L3 and the negative electrode of the Schottky diode D4. Pin 3 of the voltage stabilizing chip U6 is connected to the second terminal of the power inductor L3 and the positive electrode of the capacitor C8. Pins 5, 6, 7 and 8 of the voltage stabilizing chip U6 are connected to the negative electrode of the lithium battery and the negative electrode of the capacitor C14. , the second terminal of capacitor C7, the positive terminal of Schottky diode D3, and the negative terminal of capacitor C8 are connected; pins 1 and 3 of RT9193-33GB voltage stabilizing chip U7 are connected to the positive terminal of capacitor C9, the second terminal of power inductor L3, and the voltage stabilizing chip The No. 2 pin of U7 is connected to the negative electrode of capacitor C9 and the negative electrode of the lithium battery. The No. 4 pin of the voltage stabilizing chip U7 is connected to the first terminal of the capacitor C10. The second terminal of the capacitor C10 is connected to ground. The No. 5 pin of the voltage stabilizing chip U7 is connected to the capacitor. The positive terminal of C11 and the negative terminal of capacitor C11 are connected to ground.

锂电池都有过放保护功能,即电池电压小于一定值后电池会停止放电,如果电池到达过放保护,控制器也会断电,对于使用时钟芯片的控制器,时钟芯片会因为断电导致后续时间不准。因此需要在锂电池过放保护前熄灭路灯,以保存少量电量供控制器使用。因此可设置LED路灯熄灭电压值的控制器就尤为重要。Lithium batteries have an over-discharge protection function, that is, the battery will stop discharging after the battery voltage is lower than a certain value. If the battery reaches the over-discharge protection, the controller will also power off. For controllers that use clock chips, the clock chip will cause damage due to power outage. The follow-up time is uncertain. Therefore, it is necessary to turn off the street lights before the lithium battery is over-discharged to protect a small amount of power for use by the controller. Therefore, a controller that can set the extinguishing voltage value of LED street lights is particularly important.

当锂电池电压值小于预设的电池保护电压时,LED路灯需要熄灭,以避免电池过放,由于锂电池内阻影响,路灯熄灭会使锂电池端电压上升,使电池电压大于预设的电池保护电压,如果不进行相关设计,LED路灯会循环进行路灯点亮与熄灭。为了防止电压回升带来的电力系统的接通与关断问题,目前常使用的方法为硬件电路法,即增加一些电子元器件,利用电气特性避免电压回升导致的循环开关问题,常用的电路有施密特触发电路。但是硬件电路法需要增加电子元器件,存在成本高的问题。因此,需开发LED亮度可随着时间与电池电压值改变的路灯,使LED亮度调节和电池利用更加合理。需开发软件程序,利用软件设置,来解决LED循环点亮和关闭的问题,从而在实现相同功能的同时,降低硬件使用成本。具体地,主控电路根据日期获取对应的预设日期的全部预设时间段数据,然后判断当前时间对应的预设时间段,每个时间段内都设置一些电压区间,当电池电压处于哪个设置的电压区间内就执行相应区间内的路灯亮度;在程序中引入电压阈值,所述锂电池电压减去预设的电压阈值小于预设的电池保护电压时主控电路控制路灯熄灭,所述主控电路在锂电池电压减去预设的电压阈值大于预设的电池保护电压时控制打开路灯。When the lithium battery voltage is lower than the preset battery protection voltage, the LED street light needs to be turned off to avoid over-discharge of the battery. Due to the influence of the internal resistance of the lithium battery, turning off the street light will cause the lithium battery terminal voltage to rise, making the battery voltage greater than the preset battery protection voltage. , if no relevant design is carried out, LED street lights will cycle on and off. In order to prevent the on and off problems of the power system caused by the voltage rebound, the currently commonly used method is the hardware circuit method, that is, adding some electronic components and using electrical characteristics to avoid the cyclic switching problem caused by the voltage rebound. Commonly used circuits include Schmitt trigger circuit. However, the hardware circuit method requires additional electronic components, which has the problem of high cost. Therefore, it is necessary to develop street lights whose LED brightness can change with time and battery voltage to make LED brightness adjustment and battery utilization more reasonable. It is necessary to develop a software program and use software settings to solve the problem of LED cycling on and off, so as to achieve the same function while reducing hardware usage costs. Specifically, the main control circuit obtains all the preset time period data of the corresponding preset date according to the date, and then determines the preset time period corresponding to the current time. Some voltage intervals are set in each time period. When the battery voltage is at which setting Within the voltage interval, the street light brightness in the corresponding interval is executed; a voltage threshold is introduced in the program. When the lithium battery voltage minus the preset voltage threshold is less than the preset battery protection voltage, the main control circuit controls the street light to go out. The control circuit controls the street light to be turned on when the lithium battery voltage minus the preset voltage threshold is greater than the preset battery protection voltage.

如图7所示,图中展示了LED亮度调节电路,包括恒流控制电路和路灯端口;所述恒流控制电路包括SY7203DBC升压恒流芯片U8、调流电阻R20、功率电感L4、肖特基二极管D4、电容C12、电容C13。其中:升压恒流芯片U8的2号引脚接路灯接口端子负极、调流电阻R20第一端,调流电阻R20第二端接地,芯片U8的4号和5号引脚连接后接功率电感L4第一端、肖特基二极管D4正极,芯片U8的7号引脚接功率电感L4第二端、电容C12第一端、锂电池正极,电容C12第二端接地,芯片U8的8号引脚接肖特基二极管D4负极、电容C13第一端、路灯接口端子正极,电容C13第二端接地,芯片U8的8号引脚接主控芯片U1的11号引脚PA1。As shown in Figure 7, the figure shows the LED brightness adjustment circuit, including a constant current control circuit and a street light port; the constant current control circuit includes SY7203DBC boost constant current chip U8, current regulating resistor R20, power inductor L4, Schott Base diode D4, capacitor C12, capacitor C13. Among them: Pin 2 of the boost constant current chip U8 is connected to the negative pole of the street light interface terminal, the first end of the current regulating resistor R20, the second end of the current regulating resistor R20 is connected to ground, and the No. 4 and 5 pins of the chip U8 are connected to the power The first terminal of inductor L4 and the positive terminal of Schottky diode D4. Pin 7 of chip U8 is connected to the second terminal of power inductor L4, the first terminal of capacitor C12 and the positive terminal of lithium battery. The second terminal of capacitor C12 is connected to ground. Pin 8 of chip U8 The pin is connected to the cathode of Schottky diode D4, the first terminal of capacitor C13, and the positive terminal of the street light interface terminal. The second terminal of capacitor C13 is connected to ground. Pin 8 of chip U8 is connected to pin 11 of main control chip U1, PA1.

太阳能充电电路实施过程为:如图2,电流电压测量芯片U2和电流电压测量芯片U3分别通过图4中采样电阻R11和R13接收光伏板输出电压和锂电池端电压数据,然后将电压数据传输给图1中的主控芯片U1,主控芯片U1通过分析光伏板输出端电压和锂电池端电压数值,来调节主控芯片U1的10号引脚PA0输出一定占空比的PWM波,该PWM波传输给图5中隔离光耦U5的3号引脚,通过隔离光耦U5来控制图5隔离电源J1给R19第二端输出相同占空比的PWM波,R19第二端与图4中MOS管Q1的漏极连接,来控制充电电路的接通与断开的频率,从而控制锂电池的充电电流与充电电压。The implementation process of the solar charging circuit is as follows: As shown in Figure 2, the current and voltage measurement chip U2 and the current and voltage measurement chip U3 receive the photovoltaic panel output voltage and lithium battery terminal voltage data through the sampling resistors R11 and R13 in Figure 4 respectively, and then transmit the voltage data to Figure 4 The main control chip U1 in 1 adjusts the No. 10 pin PA0 of the main control chip U1 to output a PWM wave with a certain duty cycle by analyzing the output terminal voltage of the photovoltaic panel and the voltage value of the lithium battery terminal. The PWM wave transmits Give pin 3 of the isolated optocoupler U5 in Figure 5, and use the isolated optocoupler U5 to control the isolated power supply J1 in Figure 5 to output a PWM wave with the same duty cycle to the second end of R19. The second end of R19 is the same as the MOS tube in Figure 4. The drain connection of Q1 controls the frequency of on and off of the charging circuit, thereby controlling the charging current and charging voltage of the lithium battery.

LED亮度调节电路实施过程为:如图2,电流电压测量芯片U3检测锂电池的端电压,然后将电压数据传输给图1中的主控芯片U1,图3中的时钟芯片U4将实时时钟传输给图1中的主控芯片U1;主控芯片U1获取电压和时钟数据后,如图8,首先进行日期和时间段比对,判断当前时间落入哪个日期、时间段内,日期和时间段可根据当地不同日期的日出和日落时间划分多个,当前时间段在哪个设置好的时间段内,就执行相应时间段内的后续操作,例如当前时刻在日期、时间段1内,则后续执行日期、时间段1下面的程序;每个时间段下都设置一些电池电压区间,根据当前的电池端电压所处的电压区间来确定主控芯片U1的11号引脚PA1输出多大的占空比的PWM波,例如电量充足则可以让PWM有较大占空比使路灯更亮,电压降低达到另一个电压区间时,使主控芯片U1的11号引脚PA1输出较小占空比的PWM波使路灯更节能,若电压达到路灯熄灭阈值,则主控芯片U1的11号引脚PA1不输出PWM波,路灯熄灭;主控芯片U1的11号引脚PA1输出的PWM波与图7恒流芯片U8的9号引脚相连接,恒流芯片U8根据PWM占空比来确定路灯接口端子所接路灯的电流,从而调节路灯亮度。The implementation process of the LED brightness adjustment circuit is as follows: As shown in Figure 2, the current and voltage measurement chip U3 detects the terminal voltage of the lithium battery, and then transmits the voltage data to the main control chip U1 in Figure 1, and the clock chip U4 in Figure 3 transmits the real-time clock After obtaining the voltage and clock data for the main control chip U1 in Figure 1, as shown in Figure 8, first compare the date and time period to determine which date and time period the current time falls within. It can be divided into multiple ones according to the sunrise and sunset times of different local dates. If the current time period is within the set time period, the subsequent operations in the corresponding time period will be performed. For example, if the current time is within date and time period 1, then the subsequent operations will be performed. Execute the program under date and time period 1; set some battery voltage intervals under each time period, and determine the output duty of pin 11 PA1 of the main control chip U1 according to the voltage interval where the current battery terminal voltage is. Compared with the PWM wave, for example, if the power is sufficient, the PWM can have a larger duty cycle to make the street lights brighter. When the voltage drops to another voltage range, pin 11 PA1 of the main control chip U1 will output a smaller duty cycle. The PWM wave makes the street light more energy-saving. If the voltage reaches the street light extinguishing threshold, the No. 11 pin PA1 of the main control chip U1 will not output the PWM wave and the street light will go out. The PWM wave output by the No. 11 pin PA1 of the main control chip U1 is the same as Figure 7 The No. 9 pin of the constant current chip U8 is connected. The constant current chip U8 determines the current of the street light connected to the street light interface terminal according to the PWM duty cycle, thereby adjusting the brightness of the street light.

主控供电电路实施过程为:锂电池采用3S锂电池供电,锂电池电压通过图6的XL1509-5.0E1稳压芯片U6将电路电压降至5V,再经过RT9193-33GU5稳压芯片电路降压至3.3V,从而为主控芯片U1和电子元器件提供稳定3.3V电源。The implementation process of the main control power supply circuit is: the lithium battery is powered by a 3S lithium battery. The lithium battery voltage is reduced to 5V through the XL1509-5.0E1 voltage stabilizing chip U6 in Figure 6, and then is reduced to 3.3V, thereby providing a stable 3.3V power supply for the main control chip U1 and electronic components.

电池电压小于预设的电池保护电压后关闭LED路灯的实施过程如图9所示:电流电压测量芯片U3检测锂电池的端电压,然后将电压数据传输给图1中的主控芯片U1,图3中的时钟芯片U4将实时时钟传输给图1中的主控芯片U1;主控芯片U1判断当前是白天还是夜间,如果是白天,设置阈值F为0,然后控制芯片U1的11号引脚不输出PWM波,路灯熄灭;如果是夜间,首先用电池端电压减去电压阈值F,此时电压阈值F由于经过白天时间的赋值,F=0,即如果电池端电压减去0大于预设的电池保护电压值,则根据当前时刻在日期、时间段、电池端电压来确定主控芯片U1的11号引脚PA1输出多大的占空比的PWM波;当路灯系统运行至电池端电压减去0小于预设的电池保护电压值时,控制芯片U1的11号引脚不输出PWM波,路灯熄灭,由于路灯的熄灭会导致端电压上升,如果此时电压阈值F不变,则下次程序循环运行时,电池端电压减去电压阈值F又会大于预设的电池保护电压,路灯又会点亮,会出现点亮与熄灭的交替运行,因此,路灯熄灭即PWM等于0后,改变电压阈值F的值,例如设置F=0.2,则即使电池端电压有一些上升,电池端电压减去新电压阈值F后仍然小于预设的电池保护电压,则主控芯片U1的11号引脚PA1仍然不输出PWM波,路灯保持熄灭,直到第二天电池进行充电而且电压阈值在白天重置为0,路灯系统完成一整天的循环。The implementation process of turning off the LED street light after the battery voltage is lower than the preset battery protection voltage is shown in Figure 9: The current and voltage measurement chip U3 detects the terminal voltage of the lithium battery, and then transmits the voltage data to the main control chip U1 in Figure 1, Figure The clock chip U4 in 3 transmits the real-time clock to the main control chip U1 in Figure 1; the main control chip U1 determines whether it is day or night. If it is day, set the threshold F to 0, and then controls pin 11 of the chip U1 No PWM wave is output, and the street lights go out; if it is night, first subtract the voltage threshold F from the battery terminal voltage. At this time, the voltage threshold F is assigned due to day time, F=0, that is, if the battery terminal voltage minus 0 is greater than the preset The battery protection voltage value is determined based on the date, time period and battery terminal voltage at the current moment to determine the PWM wave with a duty cycle output by pin 11 of the main control chip U1; when the street light system is running to the battery terminal voltage decreases When 0 is less than the preset battery protection voltage value, pin 11 of the control chip U1 does not output the PWM wave, and the street light goes out. Since the street light goes out, the terminal voltage will rise. If the voltage threshold F does not change at this time, the next time When the program is running in a loop, the battery terminal voltage minus the voltage threshold F will be greater than the preset battery protection voltage, and the street light will light up again, and there will be an alternating operation of light on and off. Therefore, when the street light goes out, that is, after the PWM is equal to 0, the The value of the voltage threshold F, for example, set F=0.2, then even if the battery terminal voltage has increased somewhat, the battery terminal voltage minus the new voltage threshold F is still less than the preset battery protection voltage, then pin 11 of the main control chip U1 PA1 still does not output PWM waves, and the street light remains off until the battery is charged the next day and the voltage threshold is reset to 0 during the day, and the street light system completes a full day cycle.

需要指出的是,图1、2、3、5、6、7中芯片周围的数字,其实际上为芯片的引脚编号,这些引脚编号由芯片厂家定义,主要是为了方便清楚简要的区分引脚的位置,方便开发者寻找对应的引脚进行连接使用,并非是常规说明书附图中的零部件标号。It should be pointed out that the numbers around the chip in Figures 1, 2, 3, 5, 6, and 7 are actually the pin numbers of the chip. These pin numbers are defined by the chip manufacturer, mainly to facilitate clear and concise distinction. The location of the pins is convenient for developers to find the corresponding pins for connection and use. It is not the component numbers in the drawings of the conventional instructions.

以上所述的仅是本发明的实施例,方案中公知的具体技术方案和/或特性等常识在此未作过多描述。应当指出,本申请中电子元器件的最优规格参数在附图做了标注,对于本领域的技术人员来说,在不脱离本发明技术方案的前提下,还可以作出若干简单变形、改进和替换,这些变形应视为本申请的等同方案,在本发明中,除非另有明确的规定和限定,术语“安装”、“相连”、“连接”、“固定” 等术语应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体地连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通。对于本领域的普通技术人员而言,可以根据具体情况理解上述术语在本发明中的具体含义。本申请要求的保护范围应当以其权利要求的内容为准,说明书中的具体实施方式等记载可以用于解释权利要求的内容。The above are only embodiments of the present invention, and common knowledge such as specific technical solutions and/or characteristics that are known in the scheme are not described in detail here. It should be pointed out that the optimal specifications and parameters of the electronic components in this application are marked in the drawings. For those skilled in the art, several simple deformations, improvements and modifications can be made without departing from the technical solution of the present invention. Replacement, these modifications should be regarded as equivalent solutions of the present application. In the present invention, unless otherwise expressly provided and limited, the terms "installation", "connection", "connection", "fixing" and other terms 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 direct connection, an indirect connection through an intermediate medium, or an internal connection between two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances. The scope of protection claimed in this application shall be based on the content of the claims, and the specific implementation modes and other records in the description may be used to interpret the content of the claims.

Claims (9)

1.一种基于时间和电池电压调节LED亮度的太阳能路灯控制器,其特征在于:包括主控电路、太阳能充电电路、LED亮度调节电路和主控供电电路;所述主控电路包括MCU电路、电流电压测量电路、时钟电路,所述电流电压测量电路和时钟电路均与MCU电性连接;所述太阳能充电电路包括充电主电路和充电控制电路,所述充电主电路和充电控制电路电性连接;所述主控供电电路包括锂电池、5V降压模块和3.3V降压模块,所述5V降压模块和3.3V降压模块用于调控锂电池的电路电压;所述主控供电电路用于主控电路供电;所述LED亮度调节电路包括恒流控制电路和路灯端口,所述恒流控制电路和路灯端口电性连接;所述主控电路用于获取充电主电路的电压和锂电池电压,并根据充电主电路的电压和锂电池电压控制充电主电路对锂电池的充电电压和电流;所述主控电路用于获取时间电路的日期和时间,并根据日期、时间和锂电池电压调控LED亮度调节电路;所述主控电路根据日期、时间和锂电池电压调控LED亮度调节电路具体包括:所述主控电路根据日期获取对应的预设日期的全部预设时间段数据,然后判断当前时间对应的预设时间段,并获取预设时间段对应的预设电压区间值,根据锂电池电压获取该时间段对应的预设电压区间值,根据预设电压区间值对应的PWM占空比来执行路灯亮度;如果是白天,设置阈值F为0,主控电路控制路灯熄灭;如果是夜间,所述主控电路在锂电池电压减去预设的电压阈值F大于预设的电池保护电压时控制打开路灯,所述主控电路在锂电池电压减去预设的电压阈值F小于预设的电池保护电压时,控制路灯熄灭,并设置阈值F为0.2,直到第二天电池进行充电,阈值F重置为0。1. A solar street light controller that adjusts LED brightness based on time and battery voltage, characterized by: including a main control circuit, a solar charging circuit, an LED brightness adjustment circuit and a main control power supply circuit; the main control circuit includes an MCU circuit, Current and voltage measurement circuit, clock circuit, the current and voltage measurement circuit and clock circuit are electrically connected to the MCU; the solar charging circuit includes a charging main circuit and a charging control circuit, the charging main circuit and the charging control circuit are electrically connected ; The main control power supply circuit includes a lithium battery, a 5V step-down module and a 3.3V step-down module. The 5V step-down module and the 3.3V step-down module are used to regulate the circuit voltage of the lithium battery; the main control power supply circuit is used Powered by the main control circuit; the LED brightness adjustment circuit includes a constant current control circuit and a street light port, and the constant current control circuit and the street light port are electrically connected; the main control circuit is used to obtain the voltage of the charging main circuit and the lithium battery voltage, and controls the charging voltage and current of the lithium battery by the charging main circuit according to the voltage of the charging main circuit and the lithium battery voltage; the main control circuit is used to obtain the date and time of the time circuit, and control the charging voltage and current of the lithium battery according to the date, time and lithium battery voltage. Regulating the LED brightness adjustment circuit; the main control circuit regulates the LED brightness adjustment circuit according to the date, time and lithium battery voltage. Specifically, the main control circuit obtains all the preset time period data of the corresponding preset date according to the date, and then determines The preset time period corresponding to the current time, and obtain the preset voltage interval value corresponding to the preset time period, obtain the preset voltage interval value corresponding to the time period according to the lithium battery voltage, and obtain the PWM duty corresponding to the preset voltage interval value Recently, the street light brightness is executed; if it is daytime, the threshold F is set to 0, and the main control circuit controls the street light to turn off; if it is night, the main control circuit performs battery protection when the lithium battery voltage minus the preset voltage threshold F is greater than the preset voltage threshold F. When the voltage of the lithium battery is lower than the preset voltage threshold F, the main control circuit controls the street light to turn off, and sets the threshold F to 0.2 until the battery is charged the next day. , the threshold F is reset to 0. 2.根据权利要求1所述的一种基于时间和电池电压调节LED亮度的太阳能路灯控制器,其特征在于:所述MCU电路包括主控芯片U1、晶振X1、开关SW1、电阻R1、电阻R2、电阻R3、电阻R4、电容C1、电容C2、电容C3和4P排针H1,所述主控芯片U1为STM32F103C8T6微控制器;所述电流电压测量电路包括INA226电流电压测量芯片U2、INA226电流电压测量芯片U3、电阻R5、电阻R6、电阻R7和电阻R8;所述时钟电路包括DS3231SN时钟芯片U4、电阻R9、电阻R10、纽扣电池B1。2. A solar street light controller for adjusting LED brightness based on time and battery voltage according to claim 1, characterized in that: the MCU circuit includes a main control chip U1, a crystal oscillator X1, a switch SW1, a resistor R1, and a resistor R2. , resistor R3, resistor R4, capacitor C1, capacitor C2, capacitor C3 and 4P pin header H1, the main control chip U1 is an STM32F103C8T6 microcontroller; the current and voltage measurement circuit includes INA226 current and voltage measurement chip U2, INA226 current and voltage Measurement chip U3, resistor R5, resistor R6, resistor R7 and resistor R8; the clock circuit includes DS3231SN clock chip U4, resistor R9, resistor R10, and button battery B1. 3.根据权利要求2所述的一种基于时间和电池电压调节LED亮度的太阳能路灯控制器,其特征在于:所述主控芯片U1的5号引脚连接电容C1第一端、电阻R1第一端和晶振X1第一端,所述主控芯片U1的6号引脚连接电容C2第一端、电阻R1第二端和晶振X1第二端,所述电容C1第二端、电容C2第二端接地;所述主控芯片U1的7号引脚接电阻R2第一端、电容C3第一端和开关SW1第一端,所述电阻R2第二端接3.3V电源,所述电容C3第二端和开关SW1第二端接地,所述主控芯片U1的20号和44号引脚分别接电阻R3和电阻R4的第一端,所述电阻R3和电阻R4的第二端接地,所述主控芯片U1的34号和37号引脚分别接4P排针H1的2号和3号引脚,4P排针H1的1号和4号引脚分别接3.3V电源和地,所述主控芯片U1的1号、24号、36号、48号引脚均接3.3V电源,所述主控芯片U1的23号、47号引脚接地;所述INA226电流电压测量芯片U2的4号引脚接主控芯片U1的22号引脚、电阻R5第一端,所述INA226电流电压测量芯片U2的5号引脚接主控芯片U1的21号引脚和电阻R6第一端,电阻R5第二端、电阻R6第二端、INA226电流电压测量芯片U2的6号引脚接3.3V电,INA226电流电压测量芯片U2的1号和7号引脚接地,INA226电流电压测量芯片U2的8号和10号引脚相连接,所述INA226电流电压测量芯片U3的4号引脚接主控芯片U1的22号引脚、电阻R7第一端,所述INA226电流电压测量芯片U3的5号引脚接主控芯片U1的21号引脚、电阻R8第一端,电阻R7第二端、电阻R8第二端、INA226电流电压测量芯片U3的6号引脚接3.3V电,所述INA226电流电压测量芯片U3的1号和7号引脚接地,所述INA226电流电压测量芯片U3的8号和10号引脚相连接;DS3231SN时钟芯片U4的15号引脚接主控芯片U1的43号引脚、电阻R9第一端,DS3231SN时钟芯片U4的16号引脚接主控芯片U1的42号引脚、电阻R10第一端,DS3231SN时钟芯片U4的14号引脚接纽扣电池B1正极,电阻R9第二端、电阻R10第二端、DS3231SN时钟芯片U4的2号引脚接3.3V电,纽扣电池B1负极、DS3231SN时钟芯片U4的13号引脚接地。3. A solar street light controller for adjusting LED brightness based on time and battery voltage according to claim 2, characterized in that: the No. 5 pin of the main control chip U1 is connected to the first end of the capacitor C1 and the first end of the resistor R1. One end and the first end of crystal oscillator X1, pin 6 of the main control chip U1 is connected to the first end of capacitor C2, the second end of resistor R1 and the second end of crystal oscillator Both ends are grounded; pin 7 of the main control chip U1 is connected to the first end of the resistor R2, the first end of the capacitor C3 and the first end of the switch SW1, the second end of the resistor R2 is connected to the 3.3V power supply, and the capacitor C3 The second terminal and the second terminal of switch SW1 are connected to ground. Pins 20 and 44 of the main control chip U1 are respectively connected to the first terminals of resistor R3 and resistor R4. The second terminals of resistor R3 and resistor R4 are connected to ground. Pins 34 and 37 of the main control chip U1 are respectively connected to pins 2 and 3 of the 4P pin header H1, and pins 1 and 4 of the 4P pin header H1 are connected to the 3.3V power supply and ground respectively, so Pins 1, 24, 36, and 48 of the main control chip U1 are all connected to the 3.3V power supply, and pins 23 and 47 of the main control chip U1 are connected to ground; the INA226 current and voltage measurement chip U2 Pin No. 4 is connected to pin No. 22 of the main control chip U1 and the first end of the resistor R5. Pin No. 5 of the INA226 current and voltage measurement chip U2 is connected to pin No. 21 of the main control chip U1 and the first end of the resistor R6. , the second end of resistor R5, the second end of resistor R6, and pin 6 of INA226 current and voltage measurement chip U2 are connected to 3.3V, pins 1 and 7 of INA226 current and voltage measurement chip U2 are connected to ground, and INA226 current and voltage measurement chip Pins 8 and 10 of U2 are connected. Pin 4 of the INA226 current and voltage measurement chip U3 is connected to pin 22 of the main control chip U1 and the first end of the resistor R7. The INA226 current and voltage measurement chip U3 The No. 5 pin of the main control chip U1 is connected to the No. 21 pin of the main control chip U1, the first end of the resistor R8, the second end of the resistor R7, the second end of the resistor R8, and the No. 6 pin of the INA226 current and voltage measurement chip U3 is connected to the 3.3V power. Pins 1 and 7 of the INA226 current and voltage measurement chip U3 are connected to ground, pins 8 and 10 of the INA226 current and voltage measurement chip U3 are connected; pin 15 of the DS3231SN clock chip U4 is connected to the main control chip Pin No. 43 of U1 and the first end of resistor R9. Pin No. 16 of DS3231SN clock chip U4 is connected to pin No. 42 of the main control chip U1 and the first end of resistor R10. Pin No. 14 of DS3231SN clock chip U4 is connected to the button. The positive terminal of battery B1, the second terminal of resistor R9, the second terminal of resistor R10, and pin 2 of DS3231SN clock chip U4 are connected to 3.3V power. The negative terminal of button battery B1 and pin 13 of DS3231SN clock chip U4 are connected to ground. 4.根据权利要求3所述的一种基于时间和电池电压调节LED亮度的太阳能路灯控制器,其特征在于:所述充电主电路包括光伏板、电阻R11、电阻R12、电阻R13、场效应管Q1、MOS管D1、MOS管D2、功率电感L1和电容C4;所述充电控制电路包括6N136隔离光耦U5、NPN三极管Q2、PNP三极管Q3、隔离电源J1、电阻R14、电阻R15、电阻R16、电阻R17、电阻R18和电阻R19。4. A solar street light controller for adjusting LED brightness based on time and battery voltage according to claim 3, characterized in that: the charging main circuit includes a photovoltaic panel, a resistor R11, a resistor R12, a resistor R13, and a field effect tube. Q1, MOS tube D1, MOS tube D2, power inductor L1 and capacitor C4; the charging control circuit includes 6N136 isolated optocoupler U5, NPN transistor Q2, PNP transistor Q3, isolated power supply J1, resistor R14, resistor R15, resistor R16, Resistor R17, resistor R18 and resistor R19. 5.根据权利要求4所述的一种基于时间和电池电压调节LED亮度的太阳能路灯控制器,其特征在于:所述光伏板正极连接采样电阻R11第一端R11+、INA226电流电压测量芯片U2的8号和10号引脚,采样电阻R11第二端R11-连接INA226电流电压测量芯片U2的9号引脚、MOS管Q1漏极,所述MOS管Q1源极和栅极连接电阻R12的两端,所述MOS管Q1源极与肖特基二极管D1正极连接,所述肖特基二极管D1负极连接功率电感L1第一端、所述肖特基二极管D2负极,所述功率电感L1第二端连接采样电阻R13第一端R13+、INA226电流电压测量芯片U3的8号和10号引脚和电容C4正极,所述采样电阻R13第二端R13-连接INA226电流电压测量芯片U3的9号引脚、锂电池正极,所述电容C4负极、肖特基二极管D2正极、电池负极连接光伏板负极;所述6N136隔离光耦U5的2号引脚与电阻R14第一端连接,所述电阻R14第二端接3.3V电源,所述6N136隔离光耦U5的3号引脚接主控芯片1号引脚,所述隔离电源J1的1号引脚接地、电容C5第一端,所述隔离电源J1的2号引脚接5V电源正极、电容C5第二端,所述隔离电源J1的3号引脚接电容C6第一端、电阻R18第一端、6N136隔离光耦U5的5号引脚、PNP三极管Q3的集电极,所述隔离电源J1的4号引脚接电容C6第二端、电阻R18第二端、NPN三极管Q2的集电极、电阻R15第一端和6N136隔离光耦U5的8号引脚,所述电阻R15第二端接6N136隔离光耦U5的6号引脚、电阻R16第一端、电阻R17第一端,所述电阻R16第二端接三极管Q3基极,所述电阻R17第二端接三极管Q2基极,所述三极管Q2的发射极接三极管Q3的发射极、电阻R19第一端,所述电阻R19第二端接MOS管Q1漏极。5. A solar street light controller for adjusting LED brightness based on time and battery voltage according to claim 4, characterized in that: the positive electrode of the photovoltaic panel is connected to the first end R11 + of the sampling resistor R11 and the INA226 current and voltage measurement chip U2 Pins No. 8 and 10, the second end R11 of the sampling resistor R11 - is connected to the No. 9 pin of the INA226 current and voltage measurement chip U2, the drain of the MOS tube Q1, the source and gate of the MOS tube Q1 are connected to the resistor R12 At both ends, the source of the MOS transistor Q1 is connected to the anode of the Schottky diode D1, the cathode of the Schottky diode D1 is connected to the first end of the power inductor L1 and the cathode of the Schottky diode D2, and the power inductor L1 is connected to the cathode of the power inductor L1. The two ends are connected to the first end R13 + of the sampling resistor R13, pins 8 and 10 of the INA226 current and voltage measurement chip U3 and the positive electrode of the capacitor C4. The second end R13 - of the sampling resistor R13 is connected to the 9 pin of the INA226 current and voltage measurement chip U3. Pin No., the positive electrode of the lithium battery, the negative electrode of the capacitor C4, the positive electrode of the Schottky diode D2, and the negative electrode of the battery are connected to the negative electrode of the photovoltaic panel; the No. 2 pin of the 6N136 isolation optocoupler U5 is connected to the first end of the resistor R14, and the The second end of the resistor R14 is connected to the 3.3V power supply, the No. 3 pin of the 6N136 isolation optocoupler U5 is connected to the No. 1 pin of the main control chip, the No. 1 pin of the isolation power supply J1 is connected to the ground, and the first end of the capacitor C5 is connected. Pin No. 2 of the isolated power supply J1 is connected to the positive electrode of the 5V power supply and the second terminal of the capacitor C5. Pin No. 3 of the isolated power supply J1 is connected to the first terminal of the capacitor C6, the first terminal of the resistor R18, and the 5 terminal of the 6N136 isolation optocoupler U5. Pin No. 4 and the collector of PNP transistor Q3. Pin No. 4 of the isolation power supply J1 is connected to the second end of capacitor C6, the second end of resistor R18, the collector of NPN transistor Q2, the first end of resistor R15 and the isolation light of 6N136. Pin 8 of coupling U5, the second terminal of resistor R15 is connected to pin 6 of 6N136 isolation optocoupler U5, the first terminal of resistor R16, the first terminal of resistor R17, the second terminal of resistor R16 is connected to the base of transistor Q3 pole, the second end of the resistor R17 is connected to the base of the transistor Q2, the emitter of the transistor Q2 is connected to the emitter of the transistor Q3, and the first end of the resistor R19, the second end of the resistor R19 is connected to the drain of the MOS tube Q1. 6.根据权利要求3所述的一种基于时间和电池电压调节LED亮度的太阳能路灯控制器,其特征在于:所述恒流控制电路包括SY7203DBC升压恒流芯片U8、调流电阻R20、功率电感L4、肖特基二极管D4、电容C12和电容C13。6. A solar street light controller for adjusting LED brightness based on time and battery voltage according to claim 3, characterized in that: the constant current control circuit includes SY7203DBC boost constant current chip U8, current regulating resistor R20, power Inductor L4, Schottky diode D4, capacitor C12 and capacitor C13. 7.根据权利要求6所述的一种基于时间和电池电压调节LED亮度的太阳能路灯控制器,其特征在于:所述SY7203DBC升压恒流芯片U8的2号引脚接路灯接口端子负极、调流电阻R20第一端,所述调流电阻R20第二端接地,所述SY7203DBC升压恒流芯片U8的4号和5号引脚连接后接功率电感L4第一端、肖特基二极管D4正极,所述SY7203DBC升压恒流芯片U8的7号引脚接功率电感L4第二端、电容C12第一端、锂电池正极,所述电容C12第二端接地,所述SY7203DBC升压恒流芯片U8的8号引脚接肖特基二极管D4负极、电容C13第一端、路灯接口端子正极,所述电容C13第二端接地,所述SY7203DBC升压恒流芯片U8的8号引脚接主控芯片U1的11号引脚PA1。7. A solar street light controller for adjusting LED brightness based on time and battery voltage according to claim 6, characterized in that: the No. 2 pin of the SY7203DBC boost constant current chip U8 is connected to the negative pole of the street light interface terminal, and the adjustment The first end of the current resistor R20, the second end of the current regulating resistor R20 is connected to ground, the No. 4 and No. 5 pins of the SY7203DBC boost constant current chip U8 are connected and then connected to the first end of the power inductor L4 and the Schottky diode D4 Positive electrode, the No. 7 pin of the SY7203DBC boost constant current chip U8 is connected to the second end of the power inductor L4, the first end of the capacitor C12, and the positive electrode of the lithium battery. The second end of the capacitor C12 is connected to the ground. The SY7203DBC boost constant current Pin No. 8 of chip U8 is connected to the cathode of Schottky diode D4, the first terminal of capacitor C13, and the positive terminal of the street light interface terminal. The second terminal of capacitor C13 is connected to ground. Pin No. 8 of the SY7203DBC boost constant current chip U8 is connected to the cathode of Schottky diode D4. Pin No. 11 PA1 of the main control chip U1. 8.根据权利要求7所述的一种基于时间和电池电压调节LED亮度的太阳能路灯控制器,其特征在于:所述5V稳压模块包括XL1509-5稳压芯片U6、电容C14、电容C7、电容C8、肖特基二极管D3和功率电感L3;所述3.3V稳压模块包括RT9193-33GB稳压芯片U7、电容C9、电容C10和电容C11。8. A solar street light controller for adjusting LED brightness based on time and battery voltage according to claim 7, characterized in that: the 5V voltage stabilizing module includes XL1509-5 voltage stabilizing chip U6, capacitor C14, capacitor C7, Capacitor C8, Schottky diode D3 and power inductor L3; the 3.3V voltage stabilizing module includes RT9193-33GB voltage stabilizing chip U7, capacitor C9, capacitor C10 and capacitor C11. 9.根据权利要求8所述的一种基于时间和电池电压调节LED亮度的太阳能路灯控制器,其特征在于:所述锂电池正极、电容C14正极、电容C7第一端接XL1509-5稳压芯片U6的1号引脚,所述稳压芯片U6的2号引脚接功率电感L3第一端、肖特基二极管D3负极,所述XL1509-5稳压芯片U6的3号引脚接功率电感L3第二端、电容C8正极,所述XL1509-5稳压芯片U6的5号、6号、7号、8号引脚相连接后与锂电池负极、电容C14负极、电容C7第二端、肖特基二极管D3正极、电容C8负极相连接;所述RT9193-33GB稳压芯片U7的1号和3号引脚接电容C9正极、功率电感L3第二端,所述RT9193-33GB稳压芯片U7的2号引脚接接电容C9负极、锂电池负极,所述RT9193-33GB稳压芯片U7的4号引脚接电容C10第一端,所述电容C10第二端接地,所述RT9193-33GB稳压芯片U7的5号引脚接电容C11的正极,所述电容C11的负极接地。9. A solar street light controller for adjusting LED brightness based on time and battery voltage according to claim 8, characterized in that: the positive electrode of the lithium battery, the positive electrode of capacitor C14, and the first terminal of capacitor C7 are connected to XL1509-5 for voltage stabilization Pin No. 1 of the chip U6, pin No. 2 of the voltage stabilizing chip U6 is connected to the first end of the power inductor L3 and the negative electrode of the Schottky diode D3, and pin No. 3 of the XL1509-5 voltage stabilizing chip U6 is connected to the power The second terminal of inductor L3 and the positive terminal of capacitor C8. The No. 5, No. 6, No. 7 and No. 8 pins of the XL1509-5 voltage stabilizing chip U6 are connected to the negative terminal of the lithium battery, the negative terminal of capacitor C14 and the second terminal of capacitor C7. , the positive electrode of Schottky diode D3 and the negative electrode of capacitor C8 are connected; the No. 1 and No. 3 pins of the RT9193-33GB voltage stabilizing chip U7 are connected to the positive electrode of the capacitor C9 and the second terminal of the power inductor L3. The RT9193-33GB voltage stabilizing chip The No. 2 pin of the chip U7 is connected to the negative electrode of the capacitor C9 and the negative electrode of the lithium battery. The No. 4 pin of the RT9193-33GB voltage stabilizing chip U7 is connected to the first end of the capacitor C10. The second end of the capacitor C10 is connected to the ground. The RT9193 -The No. 5 pin of the 33GB voltage stabilizing chip U7 is connected to the positive electrode of the capacitor C11, and the negative electrode of the capacitor C11 is connected to the ground.
CN202311029304.6A 2023-08-16 2023-08-16 Solar street lamp controller for adjusting brightness of LED (light-emitting diode) based on time and battery voltage Active CN116761296B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311029304.6A CN116761296B (en) 2023-08-16 2023-08-16 Solar street lamp controller for adjusting brightness of LED (light-emitting diode) based on time and battery voltage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311029304.6A CN116761296B (en) 2023-08-16 2023-08-16 Solar street lamp controller for adjusting brightness of LED (light-emitting diode) based on time and battery voltage

Publications (2)

Publication Number Publication Date
CN116761296A CN116761296A (en) 2023-09-15
CN116761296B true CN116761296B (en) 2023-11-03

Family

ID=87949988

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311029304.6A Active CN116761296B (en) 2023-08-16 2023-08-16 Solar street lamp controller for adjusting brightness of LED (light-emitting diode) based on time and battery voltage

Country Status (1)

Country Link
CN (1) CN116761296B (en)

Citations (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR200328264Y1 (en) * 2003-07-03 2003-09-26 금오기전 주식회사 An intelligent photovoltaic street lamp control unit which actively copes with a change in weather
JP2009022079A (en) * 2007-07-10 2009-01-29 Sanyo Electric Co Ltd Method of charging lithium-ion secondary battery
CN201213324Y (en) * 2008-05-29 2009-03-25 保定市宝新世纪路灯厂 Multifunctional controller for solar energy lamp
KR20110029767A (en) * 2009-09-16 2011-03-23 월드탑텍(주) Hybrid solar street light
CN202231648U (en) * 2011-10-11 2012-05-23 上海理工大学 Maximum power tracking device of photovoltaic cell
CN103118456A (en) * 2012-12-14 2013-05-22 浙江明烁电子科技有限公司 Acousto-optical double control timed control circuit and floodlight
CN203219571U (en) * 2013-04-10 2013-09-25 温州大学 A solar-powered LED light control device
CN203504819U (en) * 2013-09-13 2014-03-26 重庆永翕光电科技有限公司 Solar energy street lamp control system
CN105042494A (en) * 2015-08-27 2015-11-11 烟台旭泰新能源科技有限公司 Integrated light following solar street lamp and light following automatic lifting system and method
CN206038764U (en) * 2016-08-22 2017-03-22 上海松岳电源科技有限公司 Battery cell acquisition circuit's quiescent power dissipation detection device
CN107887956A (en) * 2017-12-18 2018-04-06 苏州沃柯雷克智能系统有限公司 It is a kind of to avoid battery from crossing the protection circuit put and battery supply set
CN108092387A (en) * 2017-11-15 2018-05-29 广东德洛斯照明工业有限公司 A kind of LED street lamp control device and its control method
CN108366449A (en) * 2018-01-24 2018-08-03 广东德洛斯照明工业有限公司 A kind of photoelectric integral roam lamp control device and method
CN108565907A (en) * 2018-02-06 2018-09-21 青岛天盈华智科技有限公司 A kind of charge/discharge control method, device, equipment and system
CN109511196A (en) * 2018-10-18 2019-03-22 四川华体照明科技股份有限公司 A kind of intelligence adjusts the method and street lamp of LED solar street light brightness
CN110068364A (en) * 2019-03-26 2019-07-30 杭州电子科技大学 A kind of Wetland Environment monitoring number adopts circuit
CN209200767U (en) * 2018-12-05 2019-08-02 浙江永基智能科技有限公司 A kind of low-voltage dc power supply remote monitoring system
CN215345152U (en) * 2021-08-05 2021-12-28 中山市科越照明有限公司 A 3.2V Adaptive Intelligent PWM Solar Street Light Controller
CN113922478A (en) * 2021-10-19 2022-01-11 探骊动力科技(重庆)有限公司 Control method of voltage-reducing flash integrated controller
CN114900924A (en) * 2022-05-16 2022-08-12 珠海市云峰灯饰制品有限公司 Solar street lamp brightness control method and system

Patent Citations (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR200328264Y1 (en) * 2003-07-03 2003-09-26 금오기전 주식회사 An intelligent photovoltaic street lamp control unit which actively copes with a change in weather
JP2009022079A (en) * 2007-07-10 2009-01-29 Sanyo Electric Co Ltd Method of charging lithium-ion secondary battery
CN201213324Y (en) * 2008-05-29 2009-03-25 保定市宝新世纪路灯厂 Multifunctional controller for solar energy lamp
KR20110029767A (en) * 2009-09-16 2011-03-23 월드탑텍(주) Hybrid solar street light
CN202231648U (en) * 2011-10-11 2012-05-23 上海理工大学 Maximum power tracking device of photovoltaic cell
CN103118456A (en) * 2012-12-14 2013-05-22 浙江明烁电子科技有限公司 Acousto-optical double control timed control circuit and floodlight
CN203219571U (en) * 2013-04-10 2013-09-25 温州大学 A solar-powered LED light control device
CN203504819U (en) * 2013-09-13 2014-03-26 重庆永翕光电科技有限公司 Solar energy street lamp control system
CN105042494A (en) * 2015-08-27 2015-11-11 烟台旭泰新能源科技有限公司 Integrated light following solar street lamp and light following automatic lifting system and method
CN206038764U (en) * 2016-08-22 2017-03-22 上海松岳电源科技有限公司 Battery cell acquisition circuit's quiescent power dissipation detection device
CN108092387A (en) * 2017-11-15 2018-05-29 广东德洛斯照明工业有限公司 A kind of LED street lamp control device and its control method
CN107887956A (en) * 2017-12-18 2018-04-06 苏州沃柯雷克智能系统有限公司 It is a kind of to avoid battery from crossing the protection circuit put and battery supply set
CN108366449A (en) * 2018-01-24 2018-08-03 广东德洛斯照明工业有限公司 A kind of photoelectric integral roam lamp control device and method
CN108565907A (en) * 2018-02-06 2018-09-21 青岛天盈华智科技有限公司 A kind of charge/discharge control method, device, equipment and system
CN109511196A (en) * 2018-10-18 2019-03-22 四川华体照明科技股份有限公司 A kind of intelligence adjusts the method and street lamp of LED solar street light brightness
CN209200767U (en) * 2018-12-05 2019-08-02 浙江永基智能科技有限公司 A kind of low-voltage dc power supply remote monitoring system
CN110068364A (en) * 2019-03-26 2019-07-30 杭州电子科技大学 A kind of Wetland Environment monitoring number adopts circuit
CN215345152U (en) * 2021-08-05 2021-12-28 中山市科越照明有限公司 A 3.2V Adaptive Intelligent PWM Solar Street Light Controller
CN113922478A (en) * 2021-10-19 2022-01-11 探骊动力科技(重庆)有限公司 Control method of voltage-reducing flash integrated controller
CN114900924A (en) * 2022-05-16 2022-08-12 珠海市云峰灯饰制品有限公司 Solar street lamp brightness control method and system

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
太阳能LED路灯控制系统的设计;黎云汉;;软件工程师(第05期);全文 *
太阳能路灯智能控制系统设计;田锦明;邵长杰;刘鹏飞;;山西电子技术(第01期);全文 *
智能化太阳能LED路灯的设计;宫杰;刘珊;鲍建宇;;中国科技投资(第14期);全文 *

Also Published As

Publication number Publication date
CN116761296A (en) 2023-09-15

Similar Documents

Publication Publication Date Title
US20190140462A1 (en) Power supply device and lighting system
CN102695319B (en) LED stepless light regulating circuit
CN103533717A (en) Electronic equipment based on direct current supply communication and control method thereof
CN102595726B (en) Emergency lighting circuit and emergency lighting system
CN106612577B (en) A kind of power switch degree of lightening LED light controller and its control method
CN116761296B (en) Solar street lamp controller for adjusting brightness of LED (light-emitting diode) based on time and battery voltage
CN201937925U (en) LED constant current driver with function of voltage reduction
CN201622822U (en) Backlight regulating circuit
CN106793295A (en) A kind of microcontroller power supply switch lightens LED Switching Power Supply and its control method
CN203554757U (en) Electronic device based on DC power-supplying communication
CN202385369U (en) Light-operated desk lamp
CN206247231U (en) Solar lighting lamp system
CN216357392U (en) Output current control circuit and system
CN109922568A (en) Universal-type solar can control system
CN204392646U (en) A kind of time control high-power LED driving power source
CN112105122B (en) Constant current control and overdischarge protection circuit of lithium battery LED lamp
CN213243577U (en) Input constant-current light-operated booster circuit
CN103997225B (en) A kind of low idling consumption control method and control circuit
CN219478165U (en) A cultural lamp control circuit and its cultural lamp
CN205430716U (en) Built -in low -voltage protection's LED control circuit
CN222073433U (en) Battery cell electric quantity indicating circuit and printed circuit board
CN217335969U (en) LED drive circuit
CN211352549U (en) Solar lamp controller based on Internet of things
CN221930185U (en) LED lamp and LED lamp delay switch control circuit
CN217063316U (en) Lead-acid storage battery power supply LED lighting lamp circuit with resistance-capacitance voltage reduction charging protection and LED constant current driving function

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20241211

Address after: No. 999, Jinan Road, Heze Development Zone, Shandong Province 274000

Patentee after: SHANDONG MINGDA ELECTRIC APPLIANCE CO.,LTD.

Country or region after: China

Address before: No.2269, Daxue Road, Heze City, Shandong Province 274015

Patentee before: HEZE University

Country or region before: China

Patentee before: SHANDONG MINGDA ELECTRIC APPLIANCE CO.,LTD.