CN115454196A - Reference voltage control device, method and storage medium - Google Patents

Reference voltage control device, method and storage medium Download PDF

Info

Publication number
CN115454196A
CN115454196A CN202211213708.6A CN202211213708A CN115454196A CN 115454196 A CN115454196 A CN 115454196A CN 202211213708 A CN202211213708 A CN 202211213708A CN 115454196 A CN115454196 A CN 115454196A
Authority
CN
China
Prior art keywords
voltage value
reference voltage
value
resistor
pin
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.)
Pending
Application number
CN202211213708.6A
Other languages
Chinese (zh)
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.)
Guangdong Jinlaite Intelligent Technology Co ltd
Original Assignee
Guangdong Jinlaite Intelligent Technology Co ltd
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 Guangdong Jinlaite Intelligent Technology Co ltd filed Critical Guangdong Jinlaite Intelligent Technology Co ltd
Priority to CN202211213708.6A priority Critical patent/CN115454196A/en
Publication of CN115454196A publication Critical patent/CN115454196A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05FSYSTEMS FOR REGULATING ELECTRIC OR MAGNETIC VARIABLES
    • G05F1/00Automatic systems in which deviations of an electric quantity from one or more predetermined values are detected at the output of the system and fed back to a device within the system to restore the detected quantity to its predetermined value or values, i.e. retroactive systems
    • G05F1/10Regulating voltage or current
    • G05F1/625Regulating voltage or current wherein it is irrelevant whether the variable actually regulated is ac or dc
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0029Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits
    • H02J7/00306Overdischarge protection
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0047Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with monitoring or indicating devices or circuits
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0063Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with circuits adapted for supplying loads from the battery
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/007Regulation of charging or discharging current or voltage
    • H02J7/00712Regulation of charging or discharging current or voltage the cycle being controlled or terminated in response to electric parameters
    • H02J7/007182Regulation of charging or discharging current or voltage the cycle being controlled or terminated in response to electric parameters in response to battery voltage
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P25/00Arrangements or methods for the control of AC motors characterised by the kind of AC motor or by structural details
    • H02P25/16Arrangements or methods for the control of AC motors characterised by the kind of AC motor or by structural details characterised by the circuit arrangement or by the kind of wiring

Abstract

The application discloses reference voltage control device, method and storage medium, the reference voltage control device includes: the MCU is respectively electrically connected with the driving module, the power supply module and the charging management module, a first reference voltage value, a second reference voltage value and a third reference voltage value are preset in the MCU, the MCU is used for detecting the first voltage value of the driving module, detecting the second voltage value of the power supply module and detecting the third voltage value of the charging management module, so that the MCU controls the running state of the driving module according to the first reference voltage value, the second reference voltage value, the first voltage value and the second voltage value and controls the running state of the charging management module according to the third reference voltage value and the third voltage value. Because a plurality of reference voltage values are preset in the MCU of the reference voltage control device, the running states of different functional modules in the electronic equipment can be controlled according to different reference voltage values through one MCU, so that the electronic equipment can keep stable work, and the production cost and the maintenance cost are reduced.

Description

Reference voltage control device, method and storage medium
Technical Field
The present invention relates to the field of electronic circuit technologies, and in particular, to a reference voltage control apparatus, method, and storage medium.
Background
Electronic equipment generally is equipped with a plurality of functional modules, and different functional modules are at the during operation, and electronic equipment's voltage state can change in certain extent, and the fluctuation of voltage can cause certain influence to electronic equipment's functional module work. Therefore, it is necessary to detect the voltage value of the electronic device, and in the prior art, a reference voltage is usually set in the MCU of the electronic device, and the voltage value of the electronic device is compared with the reference voltage, so as to control the operation of the electronic device according to the comparison result, thereby enabling the electronic device to operate stably. However, when the electronic device needs to use a plurality of reference voltages to detect a plurality of functional modules, a plurality of MCUs need to be provided, which is costly.
Disclosure of Invention
The embodiment of the application provides a method, a device and a storage medium for switching, detecting and controlling a plurality of groups of reference voltages, when electronic equipment needs to utilize a plurality of reference voltages to realize voltage detection on a plurality of functional modules, a plurality of reference voltage values are preset in an MCU (microprogrammed control unit), the MCU can be used for controlling the running states of different functional modules in the electronic equipment according to different reference voltage values, the electronic equipment can be enabled to keep stable work, and the production cost and the maintenance cost are reduced.
In a first aspect, an embodiment of the present application provides a reference voltage control apparatus, including:
a drive module;
the power supply module is electrically connected with the driving module;
the charging management module is electrically connected with the power supply module;
the MCU is respectively electrically connected with the driving module, the power supply module and the charging management module, a first reference voltage value, a second reference voltage value and a third reference voltage value are preset in the MCU, the MCU is used for detecting the first voltage value of the driving module, detecting the second voltage value of the power supply module and detecting the third voltage value of the charging management module, so that the MCU controls the running state of the driving module according to the first reference voltage value, the second reference voltage value, the first voltage value and the second voltage value and controls the running state of the charging management module according to the third reference voltage value and the third voltage value.
According to the reference voltage control device of the embodiment of the first aspect of the application, at least the following beneficial effects are achieved: the MCU is respectively electrically connected with the driving module, the power supply module and the charging management module, a first reference voltage value, a second reference voltage value and a third reference voltage value are preset in the MCU, the MCU is used for detecting the first voltage value of the driving module, detecting the second voltage value of the power supply module and detecting the third voltage value of the charging management module, so that the MCU controls the running state of the driving module according to the first reference voltage value, the second reference voltage value, the first voltage value and the second voltage value and controls the running state of the charging management module according to the third reference voltage value and the third voltage value. The application provides a plurality of reference voltage values have been preset to reference voltage control device's MCU, the electronic equipment that is provided with reference voltage control device of this application can realize the running state according to different reference voltage value control different function modules in the electronic equipment through a MCU, compare in the correlation technique through setting up a plurality of MCU and realize that a plurality of reference voltages carry out the technical scheme that detects to a plurality of function modules, can make electronic equipment keep stable work, reduction in production cost and cost of maintenance.
According to some embodiments of the first aspect of the present application, the MCU is provided with a first pin and a second pin, the driving module includes a motor, a first resistor, a second resistor, a third resistor, and an MOS transistor, the MOS transistor is electrically connected to the motor and the third resistor, the first pin is electrically connected to the first resistor and the second resistor, and the second pin is electrically connected to the third resistor.
According to some embodiments of the first aspect of the present application, the MCU is provided with a third pin, the power module includes a battery, a fourth resistor and a fifth resistor, and the third pin is electrically connected to the fourth resistor and the fifth resistor, respectively.
According to some embodiments of the first aspect of the present application, the MCU is provided with a fourth pin and a fifth pin, the charging management module includes a sixth resistor, a seventh resistor, and an IC charger, the IC charger is provided with an external power input terminal and a signal input terminal, the fourth pin is electrically connected to the sixth resistor and the seventh resistor, respectively, the fifth pin is electrically connected to the signal input terminal, and the external power input terminal is used for connecting an external power source.
In a second aspect, an embodiment of the present application provides a reference voltage control method, which is applied to the MCU of the reference voltage control apparatus in the first aspect, and includes:
acquiring a first voltage value, wherein the first voltage value is a working voltage value of the driving module;
acquiring a second voltage value, wherein the second voltage value is a power supply voltage value of the power supply module;
acquiring a third voltage value, wherein the third voltage value is an external power supply voltage value of the charging management module;
controlling the running state of the driving module according to the first reference voltage value, the second reference voltage value, the first voltage value and the second voltage value;
and controlling the running state of the charging management module according to the third reference voltage value and the third voltage value.
According to the reference voltage control method of the embodiment of the second aspect of the application, at least the following beneficial effects are achieved: the reference voltage control method of the MCU applied to the reference voltage control device is characterized in that the voltage value of each functional module is obtained, the voltage value of each functional module is compared with the corresponding reference voltage value to obtain a comparison result, and the running states of different functional modules in the electronic equipment are controlled according to the comparison result. The application provides a reference voltage control method applied to an MCU of a reference voltage control device, which can control the running states of different functional modules in electronic equipment according to different reference voltage values through one MCU, and compared with the technical scheme that a plurality of reference voltages are set to detect a plurality of functional modules in the related art, the reference voltage control method can ensure that the electronic equipment can keep stable work, and reduces the production cost and the maintenance cost.
According to some embodiments of the second aspect of the present application, the controlling the operation state of the driving module according to the first reference voltage value, the second reference voltage value, the first voltage value and the second voltage value comprises:
determining a target duty ratio value according to the first reference voltage value and the first voltage value, and controlling the second pin to output the target duty ratio value;
and controlling the running state of the motor according to the comparison result of the second reference voltage value and the second voltage value.
According to some embodiments of the second aspect of the present application, the determining a target duty cycle value from the first reference voltage value and the first voltage value and controlling the second pin to output the target duty cycle value comprises:
calculating a target difference value, and when the target difference value is greater than a preset voltage fluctuation threshold value, acquiring a target voltage fluctuation interval, wherein the target difference value is the difference value between the first voltage value and the first reference voltage value, and the target voltage fluctuation interval is determined according to the first reference voltage value and the preset voltage fluctuation threshold value;
determining a target duty ratio value corresponding to the target voltage fluctuation interval;
and controlling the second pin to output the target duty ratio value.
According to some embodiments of the second aspect of the present application, the controlling the operation state of the motor according to the comparison result of the second reference voltage value and the second voltage value includes:
and when the second voltage value is smaller than the second reference voltage value, controlling the motor to be in a closed state.
According to some embodiments of the second aspect of the present application, the controlling the operation state of the charge management module according to the third reference voltage value and the third voltage value comprises:
and when the third voltage value is greater than the third reference voltage value, controlling the input end of the external power supply to be in a closed state.
In a third aspect, the present application provides a computer-readable storage medium storing computer-executable instructions for causing a computer to execute the reference voltage control method according to the second aspect.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
FIG. 1 is a block diagram of a reference voltage control apparatus according to an embodiment of the present application;
fig. 2 is a schematic circuit diagram of a reference voltage control apparatus according to an embodiment of the present application;
FIG. 3 is a flow chart of steps of a method for reference voltage control according to an embodiment of the present application;
FIG. 4 is a flowchart illustrating steps provided in one embodiment of the present application for controlling the operational status of a driver module;
FIG. 5 is a flowchart of the steps provided by one embodiment of the present application to determine a target duty cycle value;
FIG. 6 is a flowchart illustrating steps provided by one embodiment of the present application to control the operational status of a power module;
fig. 7 is a flowchart illustrating steps for controlling an operating status of a charging management module according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
It will be appreciated that, although functional block divisions are performed in apparatus schematics, with logical sequences shown in flowcharts, in some cases, the steps shown or described may be performed in a different order than the block divisions in the apparatus, or in the flowcharts. The terms "first," "second," and the like in the description, in the claims, or in the foregoing drawings, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The application provides a reference voltage control device, a method and a storage medium, which are respectively electrically connected with a driving module 100, a power module 200 and a charging management module 300 through an MCU400, wherein the MCU400 is preset with a first reference voltage value, a second reference voltage value and a third reference voltage value, the MCU400 is used for detecting the first voltage value of the driving module 100, detecting the second voltage value of the power module 200 and detecting the third voltage value of the charging management module 300, so that the MCU400 controls the running state of the driving module 100 according to the first reference voltage value, the second reference voltage value, the first voltage value and the second voltage value and controls the running state of the charging management module 300 according to the third reference voltage value and the third voltage value. Because a plurality of reference voltage values are preset in MCU400 of the reference voltage control device provided by the application, the electronic equipment provided with the reference voltage control device can realize the control of the running states of different functional modules in the electronic equipment according to different reference voltage values through one MCU400, so that the electronic equipment can keep stable work, and the production cost and the maintenance cost are reduced.
The embodiments of the present application will be further explained with reference to the drawings.
Referring to fig. 1, fig. 1 is a schematic circuit structure diagram of a reference voltage control apparatus according to an embodiment of the present application, where the reference voltage control apparatus includes:
a drive module 100;
the power module 200, the power module 200 is electrically connected with the driving module 100;
the charging management module 300, the charging management module 300 is electrically connected with the power module 200;
the MCU400, the MCU400 is respectively electrically connected to the driving module 100, the power module 200 and the charging management module 300, the MCU400 has a first reference voltage value, a second reference voltage value and a third reference voltage value in advance, the MCU400 is configured to detect the first voltage value of the driving module 100, detect the second voltage value of the power module 200, and detect the third voltage value of the charging management module 300, so that the MCU400 controls the operating state of the driving module 100 according to the first reference voltage value, the second reference voltage value, the first voltage value and the second voltage value, and controls the operating state of the charging management module 300 according to the third reference voltage value and the third voltage value.
It should be noted that, in the embodiments of the present application, specific values of the first reference voltage value, the second reference voltage value, and the third reference voltage value are not limited, and may be adjusted according to actual requirements of the electronic device.
It can be understood that the MCU400 presets a first reference voltage value, a second reference voltage value, and a third reference voltage value, the MCU400 is configured to obtain the first voltage value of the driving module 100, the second voltage value of the power module 200, and the third voltage value of the charging management module 300, control the operating state of the driving module 100 according to the first reference voltage value, the second reference voltage value, the first voltage value, and the second voltage value, and control the operating state of the charging management module 300 according to the third reference voltage value and the third voltage value. Because a plurality of reference voltage values are preset in the MCU400 of the reference voltage control device, the electronic equipment provided with the reference voltage control device can realize the control of the running states of different functional modules in the electronic equipment according to different reference voltage values through one MCU400, so that the electronic equipment can keep stable work, and the production cost and the maintenance cost are reduced.
Referring to fig. 2, in some embodiments of the present application, the MCU400 is provided with a first pin 1 and a second pin 2, the driving module 100 includes a motor M1, a first resistor R1, a second resistor R2, a third resistor R3, and a MOS transistor Q1, the MOS transistor Q1 is electrically connected to the motor M1 and the third resistor R3, the first pin 1 is electrically connected to the first resistor R1 and the second resistor R2, and the second pin 2 is electrically connected to the third resistor R3.
It can be understood that, under the condition that the motor M1 operates, the first resistor R1 and the second resistor R2 generate a divided voltage and output a first voltage value, and the MCU400 compares the first voltage value obtained by the first pin 1 with the first reference voltage value to obtain a comparison result, and controls the operating state of the motor M1 according to the comparison result. Through the duty ratio value of controlling second pin 2 output, MOS transistor Q1 adjusts the voltage value of output according to the duty ratio value of second pin 2 output, and the voltage value of MOS transistor Q1 output satisfies the condition that motor M1 can the steady operation for motor M1 keeps steady operation, improves user experience and feels.
Referring to fig. 2, in some embodiments of the present application, the MCU400 is provided with a third pin 3, the power module 200 includes a battery 210, a fourth resistor R4 and a fifth resistor R5, and the third pin 3 is electrically connected to the fourth resistor R4 and the fifth resistor R5, respectively.
It can be understood that, under the condition that the power module 200 provides the power voltage, the fourth resistor R4 and the fifth resistor R5 generate the divided voltage and output the second voltage value, and the MCU400 compares the second voltage value obtained through the third pin 3 with the second reference voltage value to obtain a comparison result, and controls the operating state of the motor M1 according to the comparison result. For example, when the second voltage value is smaller than the second reference voltage value, which indicates that the power supply voltage of the battery 210 is insufficient, the motor M1 is controlled to be in the off state, so that the loss of the power supply voltage of the battery 210 is reduced, the battery 210 is overdischarged and protected, and the battery 210 is effectively protected.
Referring to fig. 2, in some embodiments of the present application, the MCU400 is provided with a fourth pin 4 and a fifth pin 5, the charge management module 300 includes a sixth resistor R6, a seventh resistor R7 and an IC charger 310, the IC charger 310 is provided with an external power input terminal (not shown) and a signal input terminal 312, the fourth pin 4 is electrically connected to the sixth resistor R6 and the seventh resistor R7, respectively, the fifth pin 5 is electrically connected to the signal input terminal 312, and the external power input terminal (not shown) is used for connecting an external power source.
It can be understood that, when an external power input terminal (not shown in the figure) of the IC charger 310 receives an external power, the sixth resistor R6 and the seventh resistor R7 generate a divided voltage and output a third voltage value, the MCU400 compares the third voltage value obtained by the fourth pin 4 with the third reference voltage value to obtain a comparison result, and controls the operation state of the charging management module 300 according to the comparison result. For example, when the third voltage value is greater than the third reference voltage value, which indicates that the power voltage value of the external power supply is higher, the voltage value of the control signal input terminal 312 implements that the charging management module 300 is in the off state, so that the charging management module 300 stops charging the storage battery 210, thereby avoiding the problem that the storage battery 210 is damaged due to the abnormal power voltage of the external power supply.
It should be noted that, the number of each resistor and the specific resistance value of each resistor are not limited in the embodiment of the present application, the number of the resistors may be increased or decreased according to actual requirements, and the specific resistance value of the resistor may be adjusted according to specific conditions of the electronic device provided with the reference voltage control device, which is not described herein in detail. The embodiment of the application also does not limit the specific type of the MOS transistor Q1, and the MOS transistor Q1 may be an N-channel enhancement type transistor, an N-channel depletion type transistor, or a P-channel depletion type transistor, and those skilled in the art may select the transistor according to actual needs.
Referring to fig. 3, an embodiment of the present application provides a reference voltage control method, which is applied to the MCU400 of the reference voltage control apparatus of the first aspect, and the reference voltage control method includes, but is not limited to, the following steps:
step S100, acquiring a first voltage value, wherein the first voltage value is a working voltage value of the driving module 100;
step S200, acquiring a second voltage value, wherein the second voltage value is a power supply voltage value of the power supply module 200;
step S300, obtaining a third voltage value, where the third voltage value is an external power supply voltage value of the charging management module 300;
step S400, controlling the operation state of the driving module 100 according to the first reference voltage value, the second reference voltage value, the first voltage value, and the second voltage value;
in step S500, the operation state of the charge management module 300 is controlled according to the third reference voltage value and the third voltage value.
It can be understood that the voltage values of the functional modules are obtained, the voltage values of the functional modules are compared with the corresponding reference voltage values to obtain comparison results, and the operating states of different functional modules in the electronic equipment are controlled according to the comparison results, so that the electronic equipment can keep stable operation. The MCU400 can control the running states of different functional modules according to different reference voltages, so that the electronic equipment can keep stable work, and the production cost and the maintenance cost are reduced.
It should be noted that, in the embodiment of the present application, specific time for acquiring the first voltage value, the second voltage value, and the third voltage value is not limited, and the first voltage value, the second voltage value, and the third voltage value may be acquired simultaneously, and the driving module 100, the power module 200, and the charging management module 300 are controlled simultaneously according to different voltage values and corresponding reference voltage values, respectively. For example, in the case that the first voltage value is obtained and the operation state of the driving module 100 is controlled according to the first voltage value and the first reference voltage value, the second voltage value is obtained after the preset time period, and the third voltage value is obtained after the preset time period is obtained after the operation state of the driving module 100 is controlled according to the second voltage value and the second reference voltage value.
It should be noted that, the embodiment of the present application does not limit the specific value of the preset time period, and the preset time period may be 10ms.
In addition, the reference voltage control method provided by the embodiment of the application may further include the following steps:
when the first voltage value is smaller than a preset no-load threshold value, determining that the driving module 100 is in a no-load state;
when the first voltage value is greater than the preset short-circuit threshold, it is determined that the driving module 100 is in a short-circuit state.
It can be understood that, by detecting the fault state of the driving module 100, the electronic device provided with the reference voltage control apparatus according to the embodiment of the present application can be maintained in time, so as to reduce the influence of no-load or short circuit of the driving module 100 on the electronic device, and prolong the service life of the electronic device.
In addition, referring to fig. 4, in an embodiment, the step S400 in the embodiment shown in fig. 3 further includes, but is not limited to, the following steps:
step S410, determining a target duty ratio value according to the first reference voltage value and the first voltage value, and controlling the second pin 2 to output the target duty ratio value;
in step S420, the operation state of the motor M1 is controlled according to the comparison result of the second reference voltage value and the second voltage value.
It is understood that the first voltage value is obtained, the first voltage value is compared with the first reference voltage value to obtain a comparison result, the target duty ratio value is determined according to the comparison result, and the second pin 2 is controlled to output the target duty ratio value. The target duty ratio value is output through the second pin 2, the output voltage value is adjusted by the MOS transistor Q1 according to the target duty ratio value, and the voltage value output by the MOS transistor Q1 meets the condition that the motor M1 can stably operate, so that the motor M1 keeps stably operating.
It can be understood that the second voltage value is obtained, the second voltage value is compared with the second reference voltage value to obtain a comparison result, and the motor M1 is controlled to be in the on state or the off state according to the comparison result, for example, when the second voltage value is smaller than the second reference voltage value, it indicates that the power voltage of the storage battery 210 is insufficient, the motor M1 is controlled to be in the off state, the loss of the power voltage of the storage battery 210 is reduced, the storage battery 210 is over-discharged protected, and the storage battery 210 is effectively protected.
In addition, referring to fig. 5, in an embodiment, the step S410 in the embodiment shown in fig. 4 further includes, but is not limited to, the following steps:
step S411, calculating a target difference value, and when the target difference value is larger than a preset voltage fluctuation threshold value, acquiring a target voltage fluctuation interval, wherein the target difference value is the difference value between a first voltage value and a first reference voltage value, and the target voltage fluctuation interval is determined according to the first reference voltage value and the preset voltage fluctuation threshold value;
step S412, determining a target duty ratio value corresponding to the target voltage fluctuation interval;
in step S413, the second pin 2 is controlled to output the target duty value.
It should be noted that, the MCU400 preset a preset voltage fluctuation threshold, the embodiment of the present application does not limit a specific value of the preset voltage fluctuation threshold, and the specific value of the preset voltage fluctuation threshold may be adjusted according to actual requirements of the electronic device.
It can be understood that a difference between the first reference voltage value and the first voltage value, that is, a target difference, is calculated, when the target difference is greater than a preset voltage fluctuation threshold, it indicates that the first voltage value is unstable, and the unstable voltage value may cause the motor M1 to work and fluctuate, and a target voltage fluctuation interval is obtained, where the target voltage fluctuation interval is an interval obtained by adding or subtracting the preset voltage fluctuation threshold to or from the first reference voltage value, and indicates a voltage value range in which the motor is maintained to work stably, and a target duty ratio value corresponding to the target voltage fluctuation interval is determined and the second pin 2 is controlled to output the target duty ratio value. The target duty ratio value is output through the second pin 2, and the output voltage value is adjusted by the MOS transistor Q1 according to the target duty ratio value, so that the working voltage value of the motor M1 is maintained in the target voltage fluctuation interval, and stable work is kept.
In addition, referring to fig. 6, in an embodiment, the step S420 in the embodiment shown in fig. 4 further includes, but is not limited to, the following steps:
in step S421, when the second voltage value is smaller than the second reference voltage value, the motor M1 is controlled to be in a shutdown state.
It can be understood that, when the second voltage value is smaller than the second reference voltage value, it indicates that the power supply voltage of the storage battery 210 is insufficient, and the motor M1 is controlled to be in the off state, so as to reduce the loss of the power supply voltage of the storage battery 210, implement the over-discharge protection on the storage battery 210, and effectively protect the storage battery 210.
In addition, referring to fig. 7, in an embodiment, the step S500 in the embodiment shown in fig. 3 further includes, but is not limited to, the following steps:
in step S510, when the third voltage value is greater than the third reference voltage value, the external power input terminal 311 is controlled to be in a closed state.
It can be understood that, when the third voltage value is greater than the third reference voltage value, which indicates that the power voltage value of the external power supply is higher, the external power supply input terminal 311 is controlled to be in the off state, so that the charging management module 300 stops charging the storage battery 210, thereby avoiding the problem that the storage battery 210 is damaged due to abnormal power voltage of the external power supply.
Furthermore, an embodiment of the present application also provides a computer-readable storage medium, which stores computer-executable instructions, which are executed by a processor or a controller, and can cause the processor to execute the reference voltage control method applied to the MCU of the reference voltage control device in the above embodiments, for example, execute the method step S100 in fig. 3 described above. It will be understood by those of ordinary skill in the art that all or some of the steps, systems, and methods disclosed above may be implemented as software, firmware, hardware, or suitable combinations thereof. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.
While the preferred embodiments of the present invention have been described in detail, it will be understood by those skilled in the art that the foregoing and various other changes, omissions and deviations in the form and detail thereof may be made without departing from the scope of this invention.

Claims (10)

1. A reference voltage control apparatus, comprising:
a drive module;
the power supply module is electrically connected with the driving module;
the charging management module is electrically connected with the power supply module;
the MCU is respectively electrically connected with the driving module, the power supply module and the charging management module, a first reference voltage value, a second reference voltage value and a third reference voltage value are preset in the MCU, the MCU is used for detecting the first voltage value of the driving module, detecting the second voltage value of the power supply module and detecting the third voltage value of the charging management module, so that the MCU controls the running state of the driving module according to the first reference voltage value, the second reference voltage value, the first voltage value and the second voltage value and controls the running state of the charging management module according to the third reference voltage value and the third voltage value.
2. The reference voltage control device according to claim 1, wherein the MCU has a first pin and a second pin, the driving module includes a motor, a first resistor, a second resistor, a third resistor, and an MOS transistor, the MOS transistor is electrically connected to the motor and the third resistor, the first pin is electrically connected to the first resistor and the second resistor, and the second pin is electrically connected to the third resistor.
3. The reference voltage control device according to claim 2, wherein the MCU has a third pin, the power module includes a battery, a fourth resistor and a fifth resistor, and the third pin is electrically connected to the fourth resistor and the fifth resistor, respectively.
4. The reference voltage control device according to claim 3, wherein the MCU is provided with a fourth pin and a fifth pin, the charge management module comprises a sixth resistor, a seventh resistor and an IC charger, the IC charger is provided with an external power input terminal and a signal input terminal, the fourth pin is electrically connected with the sixth resistor and the seventh resistor respectively, the fifth pin is electrically connected with the signal input terminal, and the external power input terminal is used for connecting an external power supply.
5. A reference voltage control method applied to the MCU of the reference voltage control apparatus according to claim 4, comprising:
acquiring a first voltage value, wherein the first voltage value is a working voltage value of the driving module;
acquiring a second voltage value, wherein the second voltage value is a power supply voltage value of the power supply module;
acquiring a third voltage value, wherein the third voltage value is an external power supply voltage value of the charging management module;
controlling the running state of the driving module according to the first reference voltage value, the second reference voltage value, the first voltage value and the second voltage value;
and controlling the running state of the charging management module according to the third reference voltage value and the third voltage value.
6. The reference voltage control method according to claim 5, wherein the controlling the operation state of the driving module according to the first reference voltage value, the second reference voltage value, the first voltage value, and the second voltage value includes:
determining a target duty ratio value according to the first reference voltage value and the first voltage value, and controlling the second pin to output the target duty ratio value;
and controlling the running state of the motor according to the comparison result of the second reference voltage value and the second voltage value.
7. The method according to claim 6, wherein the determining a target duty cycle value according to the first reference voltage value and the first voltage value and controlling the second pin to output the target duty cycle value comprises:
calculating a target difference value, and when the target difference value is greater than a preset voltage fluctuation threshold value, acquiring a target voltage fluctuation interval, wherein the target difference value is the difference value between the first voltage value and the first reference voltage value, and the target voltage fluctuation interval is determined according to the first reference voltage value and the preset voltage fluctuation threshold value;
determining a target duty ratio value corresponding to the target voltage fluctuation interval;
and controlling the second pin to output the target duty ratio value.
8. The reference voltage control method according to claim 6, wherein the controlling the operation state of the motor according to the comparison result of the second reference voltage value and the second voltage value includes:
and when the second voltage value is smaller than the second reference voltage value, controlling the motor to be in a closed state.
9. The reference voltage control method according to claim 5, wherein the controlling the operation state of the charge management module according to the third reference voltage value and the third voltage value comprises:
and when the third voltage value is greater than the third reference voltage value, controlling the input end of the external power supply to be in a closed state.
10. A computer-readable storage medium characterized by: the computer-readable storage medium stores computer-executable instructions for causing a computer to execute the reference voltage control method according to any one of claims 5 to 9.
CN202211213708.6A 2022-09-30 2022-09-30 Reference voltage control device, method and storage medium Pending CN115454196A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211213708.6A CN115454196A (en) 2022-09-30 2022-09-30 Reference voltage control device, method and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211213708.6A CN115454196A (en) 2022-09-30 2022-09-30 Reference voltage control device, method and storage medium

Publications (1)

Publication Number Publication Date
CN115454196A true CN115454196A (en) 2022-12-09

Family

ID=84309740

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211213708.6A Pending CN115454196A (en) 2022-09-30 2022-09-30 Reference voltage control device, method and storage medium

Country Status (1)

Country Link
CN (1) CN115454196A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN206932015U (en) * 2016-09-30 2018-01-26 深圳市富满电子集团股份有限公司 Lithium battery system
CN110932546A (en) * 2019-12-19 2020-03-27 广东金莱特电器股份有限公司 Constant-power boost output regulating circuit and circuit control method thereof
CN113676090A (en) * 2021-08-21 2021-11-19 深圳市诚芯微科技有限公司 Control system and control method for balancing direct current load voltage
WO2022032438A1 (en) * 2020-08-10 2022-02-17 深圳欣锐科技股份有限公司 Circuit, method and system for charging low-voltage battery

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN206932015U (en) * 2016-09-30 2018-01-26 深圳市富满电子集团股份有限公司 Lithium battery system
CN110932546A (en) * 2019-12-19 2020-03-27 广东金莱特电器股份有限公司 Constant-power boost output regulating circuit and circuit control method thereof
WO2022032438A1 (en) * 2020-08-10 2022-02-17 深圳欣锐科技股份有限公司 Circuit, method and system for charging low-voltage battery
CN113676090A (en) * 2021-08-21 2021-11-19 深圳市诚芯微科技有限公司 Control system and control method for balancing direct current load voltage

Similar Documents

Publication Publication Date Title
US9178372B2 (en) Charging control method for a rechargeable battery and portable computer
KR100881487B1 (en) Method for charging battery, circuit for charging battery and portable electronic equipment including the battery
US8860373B2 (en) Protective circuit and charging device
EP2228884A2 (en) Circuits and methods for battery charging
EP1936774A1 (en) Ac adapter, electronic device, and power supply system
US20180212435A1 (en) Controlling power delivery to a battery
CN1147056C (en) Method and device for electrical supply of mobile apparatus
CN1138985C (en) Calibrating method of rechargeable battery capacity```````
US7679321B2 (en) Power circuit
JP2006331953A (en) Battery protection method and battery protection circuit
US20060145661A1 (en) System and method for operating a multiple charger
US10186882B2 (en) Battery pack and method of driving the same
US6339264B1 (en) Apparatus and method for forecasting output voltage of a battery of a digital camera
CN115454196A (en) Reference voltage control device, method and storage medium
CN111897387A (en) Linear low-dropout voltage conversion circuit and working method thereof, power supply device and working method thereof
CN115833308A (en) Charging control method and electronic equipment
US20190165561A1 (en) Power supply control apparatus, power supply control method, and computer program
CN116418080A (en) Power supply control method, power conversion device, energy storage device and storage medium
CN115714419A (en) Photovoltaic charging control method, device and system
CN214412262U (en) Protection circuit, circuit board and protection system
CN112366781B (en) Output voltage control method and device of charger, electronic equipment and storage medium
CN115411813A (en) Charging control method and system
JP2001195136A (en) Input voltage limitation circuit in battery-driven device and method for operating the device
CN117081185A (en) Charging control method, device, equipment and storage medium
CN113364088A (en) Method and device for charging battery

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