WO2021036619A1 - 电流电压调节方法、装置、设备及存储介质 - Google Patents

电流电压调节方法、装置、设备及存储介质 Download PDF

Info

Publication number
WO2021036619A1
WO2021036619A1 PCT/CN2020/103969 CN2020103969W WO2021036619A1 WO 2021036619 A1 WO2021036619 A1 WO 2021036619A1 CN 2020103969 W CN2020103969 W CN 2020103969W WO 2021036619 A1 WO2021036619 A1 WO 2021036619A1
Authority
WO
WIPO (PCT)
Prior art keywords
value
rated
voltage
current
pwm signal
Prior art date
Application number
PCT/CN2020/103969
Other languages
English (en)
French (fr)
Inventor
许志尤
陈思颖
施铭镛
王亮舒
Original Assignee
潍坊歌尔微电子有限公司
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 潍坊歌尔微电子有限公司 filed Critical 潍坊歌尔微电子有限公司
Publication of WO2021036619A1 publication Critical patent/WO2021036619A1/zh

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

Definitions

  • the present invention relates to the field of electronic technology, and more specifically, to a current and voltage adjustment method, a current and voltage adjustment device, a current and voltage adjustment device, and a computer-readable storage medium.
  • a voltage drive that can output a voltage value of the rated voltage value corresponding to the electronic device, so as to provide the electronic device with a voltage of the rated voltage value.
  • An object of the present invention is to provide a new technical solution for adjusting current and voltage.
  • a current and voltage adjustment method including:
  • the constant current is adjusted using the first PWM signal to input the current of the rated current value to the driven body, and the constant voltage is adjusted using the second PWM signal to supply the driven body Enter the voltage of the rated voltage value.
  • the adjusting the constant voltage using the second PWM signal to input the voltage of the rated voltage value to the driven body includes :
  • the constant voltage is adjusted by the second PWM signal to input the voltage of the rated voltage value to the driven body.
  • the constant current is adjusted by the first PWM signal to input a current of the rated current value to the driven body ,include:
  • the constant current is adjusted by the first PWM signal to input a current of the rated current value to the driven body.
  • the method further includes:
  • the method further includes:
  • the method further includes:
  • the method further includes:
  • the current value of the input constant current and the voltage value of the input constant voltage are respectively detected as the constant current value and the constant voltage value.
  • a current and voltage adjustment device comprising:
  • the obtaining module is used to obtain the constant current value of the input constant current and the constant voltage value of the constant voltage, and obtain the rated current value and the rated voltage value of the driven body, wherein the rated current value is less than or equal to the constant current Value, the rated voltage value is less than or equal to the constant voltage value;
  • a first generating module configured to generate a first PWM signal with a duty cycle of the first ratio according to a first ratio between the rated current value and the constant current value;
  • a second generation module configured to generate a second PWM signal with a duty cycle of the second ratio according to a second ratio between the rated voltage value and the constant voltage value;
  • the adjustment module is used to adjust the constant current using the first PWM signal to input the current of the rated current value to the driven body, and adjust the constant voltage using the second PWM signal to provide The driven body inputs the voltage of the rated voltage value.
  • a current and voltage regulating device including:
  • a memory and a processor the memory is used to store computer instructions, and the processor is used to call the computer instructions from the memory to execute the current and voltage adjustment method as described in the first aspect above.
  • a computer-readable storage medium stores computer instructions, and when the computer instructions in the storage medium are executed by a processor, the implementation as described in the first aspect is The current and voltage adjustment method.
  • a current with a rated current value can be input to the driven body without selecting a current driver whose output current value is the rated current value corresponding to the electronic device.
  • the voltage of the rated voltage value can be input to the driven body without selecting the voltage drive whose output voltage value is the rated voltage value corresponding to the electronic device. That is, the compatibility of electronic devices with voltage drive and current drive is improved.
  • the embodiment of the present invention implements current and voltage adjustment based on a PWM signal, that is, current and voltage adjustment implemented in a digital manner, this makes the operation mode of current and voltage adjustment simpler.
  • the frequency of the PWM signal can be increased through a simple operation method, and accurate current and voltage can be input to the driven body, which provides a basis for inputting accurate current and voltage to the driven body.
  • FIG. 1 is a schematic flowchart of a current and voltage adjustment method provided by an embodiment of the present invention
  • FIG. 2 is a schematic diagram of the relative relationship between a first PWM signal and a second PWM signal provided by an embodiment of the present invention
  • FIG. 3 is a schematic diagram of another relative relationship between a first PWM signal and a second PWM signal according to an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of a current and voltage adjustment device provided by an embodiment of the present invention.
  • Fig. 5 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention.
  • This embodiment provides a current and voltage adjustment method. As shown in FIG. 1, the method includes the following S101-S104:
  • the above-mentioned input constant current is a constant current provided by an external current source.
  • the above-mentioned input constant voltage is a constant voltage provided by an external voltage source.
  • the above-mentioned driven body is the load.
  • the manner of obtaining the rated voltage value and the rated current value in S101 may be implemented through a preset interface, and the obtaining of the constant voltage value and the constant current value may be implemented through detection. That is to say, the current and voltage adjustment method provided in this embodiment further includes the following S201-S203:
  • S201 Provide a first input interface for inputting a rated current value and a second input interface for inputting a rated voltage value that are independent of each other.
  • the above-mentioned first input interface and/or second input interface may be an input box, a drop-down list, a voice input, and the like. Based on this, for example, the operator can input the rated current value and/or the rated voltage value through the input box. For another example, the operator can select the same value as the rated current value and/or the same value as the rated voltage value through the drop-down list. For another example, the operator can voice input the rated current value and/or the rated voltage value.
  • S202 Obtain the value input through the first input interface as the rated current value, and acquire the value input through the second input interface as the rated voltage value.
  • S203 Detect the input current value of the constant current and the input voltage value of the constant voltage respectively, and use them as the constant current value and the constant voltage value.
  • a human-computer interaction interface is provided to realize a customized design.
  • the corresponding prompt message when the detected constant current value is less than the above-mentioned rated current value, the corresponding prompt message can be output to prompt that the input constant current cannot provide rated current to the driven body.
  • the current value of the current when the detected constant voltage value is less than the above-mentioned rated voltage value, a corresponding prompt message can be output to prompt that the input constant voltage cannot provide the voltage of the rated voltage value to the driven body.
  • the duty cycle refers to the ratio between the duration of the high level of the PWM signal and the duration of the cycle in one cycle.
  • the above-mentioned first PWM signal and the above-mentioned second PWM signal can be generated by a double-layer nested PWM generator.
  • the frequency of the first PWM signal and the frequency of the second PWM signal can be set according to actual requirements.
  • the frequency of the first PWM signal and the frequency of the second PWM signal may be 10 Hz.
  • the higher the frequency of the first PWM signal and the frequency of the second PWM signal the higher the accuracy of the final rated voltage value of the voltage input to the driven body and the rated current value of the current input to the driven body. .
  • the specific implementation of using the first PWM signal to adjust the constant current in S104 is as follows: when the first PWM signal is at a high level, the constant current in S101 is turned on, and when the first PWM is at a low level, Turn off the constant current in S101 above. In this way, the current value of the current input to the driven body is the rated current value, and the rated current value is the constant current value multiplied by the duty ratio of the first PWM signal.
  • the specific implementation manner of using the second PWM signal to adjust the constant voltage in S104 is: turning on the constant voltage in S101 when the second PWM signal is at a high level, and turning off when the second PWM signal is at a low level. Turn on the constant current in S101 above.
  • the voltage value of the voltage input to the driven body is the rated voltage value
  • the rated voltage value is the constant voltage value multiplied by the duty ratio of the second PWM signal.
  • the first PWM signal is determined The duty cycle of is 0.6/1, that is, the duty cycle is 0.6. It is determined that the duty cycle of the second PWM signal is 4/5, that is, the duty cycle is 0.8. Then a first PWM signal with a duty cycle of 0.6 is generated, and a second PWM signal with a duty cycle of 0.8 is generated.
  • the first PWM signal to adjust the 1A constant current
  • the 0.6A current input to the driven body can be obtained.
  • the second PWM signal to adjust a constant voltage of 5V
  • a voltage of 4V that is input to the driver can be obtained.
  • the obtained constant current value is 1A
  • the constant voltage value is 5V
  • the rated current value of the driven body is 0.5A
  • the rated voltage value of the driven body is 3V.
  • determine the first PWM The duty cycle of the signal is 0.5/1, that is, the duty cycle is 0.5.
  • the duty cycle of the second PWM signal is 3/5, that is, the duty cycle is 0.6.
  • a first PWM signal with a duty cycle of 0.5 is generated, and a second PWM signal with a duty cycle of 0.6 is generated.
  • the first PWM signal to adjust the 1A constant current
  • the 0.5A current input to the driven body can be obtained.
  • the second PWM signal to adjust the constant voltage of 5V the constant voltage of 3V that is input to the driver can be obtained.
  • a current with a rated current value can be input to the driven body without selecting a current driver whose output current value is the rated current value corresponding to the electronic device.
  • the voltage of the rated voltage value can be input to the driven body without selecting the voltage drive whose output voltage value is the rated voltage value corresponding to the electronic device. That is, the compatibility of electronic devices with voltage drive and current drive is improved.
  • the embodiment of the present invention implements current and voltage adjustment based on a PWM signal, that is, current and voltage adjustment implemented in a digital manner, this makes the operation mode of current and voltage adjustment simpler.
  • the frequency of the PWM signal can be increased through a simple operation method, and accurate current and voltage can be input to the driven body, which provides a basis for inputting accurate current and voltage to the driven body.
  • the driven body Due to the different properties of the driven body, the driven body has different requirements for the required rated current value and rated voltage value. Specifically, when the driven body is an inductive driven body, the driven body has stricter requirements on the rated current value. Therefore, it is necessary to use the second PWM signal to adjust the constant voltage when the above-mentioned first PWM signal is at a high level. Correspondingly, when the driven body is a capacitive driven body, the driven body has stricter requirements on the rated voltage value. Therefore, it is necessary to use the first PWM signal to adjust the constant current when the above-mentioned second PWM signal is at a high level.
  • the second PWM signal in S104 is used to adjust the constant voltage to input the voltage of the rated voltage value to the driven body.
  • the second PWM signal is used to adjust the constant voltage to input the voltage of the rated voltage value to the driven body.
  • the relative relationship between the above-mentioned first PWM signal and the second PWM signal may be as shown in FIG. 2.
  • using the first PWM signal to adjust the constant current in S104 to input a current of a rated current value to the driven body includes:
  • the first PWM signal is used to adjust the constant current to input a current of the rated current value to the driven body.
  • the relative relationship between the above-mentioned first PWM signal and the second PWM signal may be as shown in FIG. 3.
  • the current and voltage adjustment method provided by the present invention, based on any of the foregoing embodiments, further includes the following S301-S303:
  • the specific implementation manner for increasing the duty cycle of the first PWM signal may be to add an amount on the basis of the current duty cycle of the first PWM signal.
  • a specific implementation manner for reducing the duty cycle of the first PWM signal may be to reduce the duty cycle of the first PWM signal by an amount based on the current duty cycle of the first PWM signal.
  • the current and voltage adjustment method provided by the present invention further includes the following S401-S403 on the basis of any of the above-mentioned embodiments:
  • the above-mentioned first prompt information and second prompt information may be different acoustic signals or optical signals.
  • the first prompt message is a red LED lamp that is always on
  • the second prompt message is a green LED lamp that is always on.
  • the operator can use different prompts to adopt corresponding strategies, such as manually increasing or decreasing the duty cycle of the first PWM signal, so that the actual current value of the current actually input to the driven body is rated Current value.
  • the current and voltage adjustment method provided by the present invention further includes the following S501-S503:
  • the specific implementation manner for increasing the duty cycle of the second PWM signal may be to increase the current duty cycle of the second PWM signal by an amount.
  • a specific implementation manner for reducing the duty cycle of the second PWM signal may be to reduce the duty cycle of the second PWM signal by an amount based on the current duty cycle of the second PWM signal.
  • the current and voltage adjustment method provided by the present invention further includes the following S601-S603 on the basis of any of the above-mentioned embodiments:
  • the third prompt information and the fourth prompt information may be different acoustic signals or light signals that are different from the first prompt information and the second prompt information.
  • the third prompt message is a flashing red LED light
  • the second prompt message is a flashing green LED light.
  • the operator can adopt different prompts to adopt corresponding strategies, such as manually increasing or decreasing the duty cycle of the second PWM signal, so that the actual voltage value of the voltage actually input to the driven body is rated Voltage value.
  • the present invention also provides a current and voltage adjustment device 40.
  • the device includes: an acquisition module 41, a first generation module 42, a second generation module 43, and an adjustment module 44. among them:
  • the obtaining module 41 is used to obtain the constant current value of the input constant current and the constant voltage value of the constant voltage, and the rated current value and the rated voltage value of the driven body, wherein the rated current value is less than or equal to the constant current value, and the rated current value is less than or equal to the constant current value.
  • the voltage value is less than or equal to the constant voltage value;
  • the first generating module 42 is configured to generate a first PWM signal with a duty cycle of the first ratio according to the first ratio between the rated current value and the constant current value;
  • the second generating module 43 is configured to generate a second PWM signal with a duty ratio of the second ratio according to the second ratio between the rated voltage value and the constant voltage value;
  • the adjustment module 44 is used for adjusting the constant current by using the first PWM signal to input a current of a rated current value to the driven body, and using the second PWM signal to adjust the constant voltage to input a voltage of the rated voltage value for the driven body.
  • the adjustment module 44 is specifically configured to: when the first PWM signal is at a high level, use the second PWM signal to adjust the constant voltage so as to input the voltage of the rated voltage value to the driven body.
  • the adjustment module 44 is specifically configured to: when the second PWM signal is at a high level, use the first PWM signal to adjust the constant current so as to input a current of a rated current value to the driven body.
  • the acquisition module 41 is also used to: acquire the actual current value of the current actually input to the driven body; when the actual current value is less than the rated current value, increase the duty cycle of the first PWM signal; When the value is greater than the rated current value, the duty ratio of the first PWM signal is reduced.
  • the obtaining module 41 is also used to: obtain the actual voltage value of the voltage actually input to the driven body; when the actual voltage value is less than the rated voltage value, increase the duty cycle of the second PWM signal; When the value is greater than the rated voltage value, the duty cycle of the second PWM signal is reduced.
  • the acquisition module 41 is further used to: acquire the actual current value of the current actually input to the driven body; when the actual current value is greater than the rated current value, output the first prompt message; when the actual current value is less than the rated current When the value is set, output the second prompt message;
  • the acquisition module 41 is further configured to provide a first input interface for inputting a rated current value and a second input interface for inputting a rated voltage value that are independent of each other;
  • the current value of the input constant current and the voltage value of the input constant voltage are respectively detected as the constant current value and the constant voltage value.
  • the present invention also provides an electronic device, which includes the current and voltage adjustment device provided in the foregoing device embodiment.
  • the electronic device 50 includes a memory 51 and a processor 52.
  • the memory 51 is used to store computer instructions
  • the processor 52 is used to call the computer instructions from the memory 51 to execute the method provided in the foregoing method embodiment. Any current and voltage adjustment method.
  • the present invention also provides a computer-readable storage medium, the storage medium stores computer instructions, and when the computer instructions in the storage medium are executed by a processor, any one of the current and voltage adjustment methods provided in the foregoing method embodiments is implemented.
  • the present invention may be a system, a method and/or a computer program product.
  • the computer program product may include a computer-readable storage medium loaded with computer-readable program instructions for enabling a processor to implement various aspects of the present invention.
  • the computer-readable storage medium may be a tangible device that can hold and store instructions used by the instruction execution device.
  • the computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing.
  • Non-exhaustive list of computer-readable storage media include: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM) Or flash memory), static random access memory (SRAM), portable compact disk read-only memory (CD-ROM), digital versatile disk (DVD), memory stick, floppy disk, mechanical encoding device, such as a printer with instructions stored thereon
  • RAM random access memory
  • ROM read-only memory
  • EPROM erasable programmable read-only memory
  • flash memory flash memory
  • SRAM static random access memory
  • CD-ROM compact disk read-only memory
  • DVD digital versatile disk
  • memory stick floppy disk
  • mechanical encoding device such as a printer with instructions stored thereon
  • the computer-readable storage medium used here is not interpreted as the instantaneous signal itself, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (for example, light pulses through fiber optic cables), or through wires Transmission of electrical signals.
  • the computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to various computing/processing devices, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and/or a wireless network.
  • the network may include copper transmission cables, optical fiber transmission, wireless transmission, routers, firewalls, switches, gateway computers, and/or edge servers.
  • the network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network, and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing/processing device .
  • the computer program instructions used to perform the operations of the present invention may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, status setting data, or in one or more programming languages.
  • Source code or object code written in any combination, the programming language includes object-oriented programming languages such as Smalltalk, C++, etc., and conventional procedural programming languages such as "C" language or similar programming languages.
  • Computer-readable program instructions can be executed entirely on the user's computer, partly on the user's computer, executed as a stand-alone software package, partly on the user's computer and partly executed on a remote computer, or entirely on the remote computer or server carried out.
  • the remote computer can be connected to the user's computer through any kind of network-including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (for example, using an Internet service provider to connect to the user's computer) connection).
  • LAN local area network
  • WAN wide area network
  • an electronic circuit such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), can be customized by using the status information of the computer-readable program instructions.
  • the computer-readable program instructions are executed to realize various aspects of the present invention.
  • These computer-readable program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine that makes these instructions when executed by the processor of the computer or other programmable data processing device , A device that implements the functions/actions specified in one or more blocks in the flowcharts and/or block diagrams is produced. It is also possible to store these computer-readable program instructions in a computer-readable storage medium. These instructions make computers, programmable data processing apparatuses, and/or other devices work in a specific manner. Thus, the computer-readable medium storing the instructions includes An article of manufacture, which includes instructions for implementing various aspects of the functions/actions specified in one or more blocks in the flowcharts and/or block diagrams.
  • each block in the flowchart or block diagram may represent a module, program segment, or part of an instruction, and the module, program segment, or part of an instruction contains one or more components for realizing the specified logical function.
  • Executable instructions may also occur in a different order than the order marked in the drawings. For example, two consecutive blocks can actually be executed substantially in parallel, or they can sometimes be executed in the reverse order, depending on the functions involved.
  • each block in the block diagram and/or flowchart, and the combination of the blocks in the block diagram and/or flowchart can be implemented by a dedicated hardware-based system that performs the specified functions or actions Or it can be realized by a combination of dedicated hardware and computer instructions. It is well known to those skilled in the art that realization by hardware, realization by software, and realization by a combination of software and hardware are all equivalent.

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • General Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Automation & Control Theory (AREA)
  • Dc-Dc Converters (AREA)

Abstract

一种电流电压调节方法、装置(40)、设备(50)及存储介质。方法包括:获取输入的恒定电流的恒定电流值和恒定电压的恒定电压值,及获取被驱动体的额定电流值和额定电压值(S101),其中,额定电流值小于或等于恒定电流值,额定电压值小于或等于恒定电压值;根据额定电流值与恒定电流值之间的第一比值,生成占空比为第一比值的第一PWM信号(S102);根据额定电压值与恒定电压值之间的第二比值,生成占空比为第二比值的第二PWM信号(S103);利用第一PWM信号调节恒定电流,以向被驱动体输入额定电流值的电流,及利用第二PWM信号调节恒定电压,以向被驱动体输入额定电压值的电压(S104)。

Description

电流电压调节方法、装置、设备及存储介质 技术领域
本发明涉及电子技术领域,更具体地,涉及一种电流电压调节方法、一种电流电压调节装置、一种电流电压调节设备以及一种计算机可读存储介质。
背景技术
目前,为了使得电子设备能够正常工作,需要选择能够输出电压值为电子设备对应的额定电压值的电压驱动,以向电子设备提供额定电压值的电压。以及选择能够输出电流值为电子设备对应的额定电流值的电流驱动,以向电子设备额定电流值的电流。
但是,由于不同电子设备所需的额定电压值,和/或所需的额定电流值通常不同,因此,针对于不同电子设备,通常需要选择不同的电压驱动和不同的电流驱动。这导致电子设备对电压驱动和电流驱动的兼容性差。
发明内容
本发明的一个目的是提供一种用于调节电流电压的新技术方案。
根据本发明的第一方面,提供了一种电流电压调节方法,所述方法包括:
获取输入的恒定电流的恒定电流值和恒定电压的恒定电压值,及获取被驱动体的额定电流值和额定电压值,其中,所述额定电流值小于或等于所述恒定电流值,所述额定电压值小于或等于所述恒定电压值;
根据所述额定电流值与所述恒定电流值之间的第一比值,生成占空比为所述第一比值的第一PWM信号;
根据所述额定电压值与所述恒定电压值之间的第二比值,生成占空比为所述第二比值的第二PWM信号;
利用所述第一PWM信号调节所述恒定电流,以向所述被驱动体输入所述额定电流值的电流,及利用所述第二PWM信号调节所述恒定电压,以向所述被驱动体输入所述额定电压值的电压。
可选地,在所述被驱动体为电感性被驱动体的情况下,所述利用第二PWM信号调节所述恒定电压,以向所述被驱动体输入所述额定电压值的电压,包括:
在所述第一PWM信号处于高电平的情况下,利用所述第二PWM信号调节所述恒定电压,以向所述被驱动体输入所述额定电压值的电压。
可选地,在所述被驱动体为电容性被驱动体的情况下,所述利用所述第一PWM信号调节所述恒定电流,以向所述被驱动体输入所述额定电流值的电流,包括:
在所述第二PWM信号处于高电平的情况下,利用所述第一PWM信号调节所述恒定电流,以向所述被驱动体输入所述额定电流值的电流。
可选地,所述方法还包括:
获取实际输入至所述被驱动体的电流的实际电流值;
在所述实际电流值小于所述额定电流值时,提高所述第一PWM信号的占空比;
在所述实际电流值大于所述额定电流值时,降低所述第一PWM信号的占空比。
可选地,所述方法还包括:
获取实际输入至所述被驱动体的电压的实际电压值;
在所述实际电压值小于所述额定电压值时,提高所述第二PWM信号的占空比;
在所述实际电压值大于所述额定电压值时,降低所述第二PWM信号的占空比。
可选地,所述方法还包括:
获取实际输入至所述被驱动体的电流的实际电流值;
在所述实际电流值大于所述额定电流值时,输出第一提示信息;
在所述实际电流值小于所述额定电流值时,输出第二提示信息;
和/或,获取实际输入至所述被驱动体的电压的实际电压值;
在所述实际电压值大于所述额定电压值时,输出第三提示信息;
在所述实际电压值小于所述额定电压值时,输出第四提示信息。
可选地,所述方法还包括:
分别提供相互独立的用于输入额定电流值的第一输入接口,以及用于输入额定电压值的第二输入接口;
获取通过所述第一输入接口输入的值作为所述额定电流值,以及获取通过第二输入接口输入的值作为所述额定电压值;
分别检测输入的恒定电流的电流值以及输入的恒定电压的电压值,以作为所述恒定电流值、恒定电压值。
根据本发明的第二方面,提供了一种电流电压调节装置,所述装置包括:
获取模块,用于获取输入的恒定电流的恒定电流值和恒定电压的恒定电压值,及获取被驱动体的额定电流值和额定电压值,其中,所述额定电流值小于或等于所述恒定电流值,所述额定电压值小于或等于所述恒定电压值;
第一生成模块,用于根据所述额定电流值与所述恒定电流值之间的第一比值,生成占空比为所述第一比值的第一PWM信号;
第二生成模块,用于根据所述额定电压值与所述恒定电压值之间的第二比值,生成占空比为所述第二比值的第二PWM信号;
调节模块,用于利用所述第一PWM信号调节所述恒定电流,以向所述被驱动体输入所述额定电流值的电流,及利用所述第二PWM信号调节所述恒定电压,以向所述被驱动体输入所述额定电压值的电压。
根据本发明的第三方面,提供了一种电流电压调节设备,包括:
如上述第二方面所述的装置;或者,
存储器和处理器,所述存储器用于存储计算机指令,所述处理器用于从所述存储器中调用所述计算机指令,以执行如上述第一方面所述的电流电压调节方法。
根据本发明的第四方面,提供了一种计算机可读存储介质,所述存储 介质存储有计算机指令,当所述存储介质中的计算机指令由处理器执行时,实现如上述第一方面所述的电流电压调节方法。
本发明实施例中,可仅通过设置第一PWM信号的占空比,便可向被驱动体输入额定电流值的电流,而无需去选择输出电流值为电子设备对应的额定电流值的电流驱动。对应的,可仅通过设置第二PWM信号的占空比,便可向被驱动体输入额定电压值的电压,而无需去选择输出电压值为电子设备对应的额定电压值的电压驱动。即提高了电子设备对电压驱动和电流驱动的兼容性。另外,由于本发明实施例是基于PWM信号实现的电流电压调节,即通过数字的方式实现的电流电压调节,这使得电流电压调节的操作方式更为简单。同时通过简单的操作方式提高PWM信号的频率,可向被驱动体输入精准的电流和电压,即为向被驱动体输入精准的电流和电压提供基础。
通过以下参照附图对本发明的示例性实施例的详细描述,本发明的其它特征及其优点将会变得清楚。
附图说明
被结合在说明书中并构成说明书的一部分的附图示出了本发明的实施例,并且连同其说明一起用于解释本发明的原理。
图1是本发明实施例提供的一种电流电压调节方法的流程示意图;
图2是本发明实施例提供的一种第一PWM信号和第二PWM信号的相对关系的示意图;
图3是本发明实施例提供的另一种第一PWM信号和第二PWM信号的相对关系的示意图;
图4是本发明实施例提供的一种电流电压调节装置的结构示意图;
图5是本发明实施例提供的一种电子设备的结构示意图。
具体实施方式
现在将参照附图来详细描述本发明的各种示例性实施例。应注意到:除非另外具体说明,否则在这些实施例中阐述的部件和步骤的相对布置、 数字表达式和数值不限制本发明的范围。
以下对至少一个示例性实施例的描述实际上仅仅是说明性的,决不作为对本发明及其应用或使用的任何限制。
对于相关领域普通技术人员已知的技术、方法和设备可能不作详细讨论,但在适当情况下,所述技术、方法和设备应当被视为说明书的一部分。
在这里示出和讨论的所有例子中,任何具体值应被解释为仅仅是示例性的,而不是作为限制。因此,示例性实施例的其它例子可以具有不同的值。
应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步讨论。
<方法实施例>
本实施例提供一种电流电压调节方法,如图1所示,该方法包括如下S101-S104:
S101、获取输入的恒定电流的恒定电流值和恒定电压的恒定电压值,以及获取被驱动体的额定电流值和额定电压值。其中,额定电流值小于或等于恒定电流值,额定电压值小于或等于恒定电压值。
在本实施例中,上述输入的恒定电流为外界电流源所提供的恒定电流。对应的,上述输入的恒定电压为外界电压源所提供的恒定电压。另外,上述的被驱动体即为负载。
在一种实施例中,上述S101中的获取额定电压值和额定电流值的方式可通过预先设置的接口实现,同时获取恒定电压值和恒定电流值可通过检测的方式实现。这也就是说,本实施例提供的电流电压调节方法还包括如下S201-S203:
S201、分别提供相互独立的用于输入额定电流值的第一输入接口,以及用于输入额定电压值的第二输入接口。
在一个实施例中,上述的第一输入接口和/或第二输入接口,可以是输入框、下拉列表、语音输入等。基于此,例如操作人员可以通过输入框 输入额定电流值和/或额定电压值。又例如操作人员可以通过下拉列表选择与额定电流值相同的值,和/或选择与额定电压值相同的值。又例如,操作人员可以语音输入额定电流值和/或额定电压值。
S202、获取通过第一输入接口输入的值作为额定电流值,以及获取通过第二输入接口输入的值作为额定电压值。
S203、分别检测输入的恒定电流的电流值以及输入的恒定电压的电压值,以作为恒定电流值和恒定电压值。
本实施例中提供了人机交互接口,实现了定制化设计。
基于上述S201-S203的实施例,在一个实施例中,当检测得到的恒定电流值小于上述的额定电流值时,可输出对应的提示信息,以提示输入的恒定电流无法向被驱动体提供额定电流值的电流。对应的,当检测得到的恒定电压值小于上述的额定电压值时,可输出对应的提示信息,以提示输入的恒定电压无法向被驱动体提供额定电压值的电压。
S102、根据额定电流值和恒定电流值之间的比值,生成占空比为第一比值的第一PWM信号。
S103、根据额定电压值与恒定电压值之间的第二比值,生成占空比为第二比值的PWM信号。
在本实施例中,占空比指的是PWM信号在一个周期中,高电平持续时长与该一个周期的时长之间的比值。另外,可通过一个双层巢状PWM生成器生成上述的第一PWM信号,以及上述的第二PWM信号。
需要说明的是,上述第一PWM信号的频率和第二PWM信号的频率可以根据实际需求设定。例如,第一PWM信号的频率和第二PWM信号的频率可以为10Hz。进一步需要说明的是,第一PWM信号的频率和第二PWM信号的频率越高,最终向被驱动体输入的电压的额定电压值和向被驱动体输入的电流的额定电流值的精度越高。
S104、利用第一PWM信号调节恒定电流,以向被驱动体输入额定电流值的电流,及利用第二PWM信号调节恒定电压,以向被驱动体输入额定电 压值的电压。
在本实施例中,上述S104中利用第一PWM信号调节恒定电流的具体实现方式为:在第一PWM信号处于高电平时导通上述S101中的恒定电流,在第一PWM处于低电平时,断开上述S101中的恒定电流。这样,向被驱动体输入的电流的电流值即为额定电流值,且该额定电流值为恒定电流值乘以第一PWM信号的占空比。
对应的,上述的S104中的利用第二PWM信号调节恒定电压的具体实现方式为:在第二PWM信号处于高电平时导通上述S101中的恒定电压,在第二PWM信号处于低电平时断开上述S101中的恒定电流。这样,向被驱动体输入的电压的电压值即为额定电压值,且该额定电压值为恒定电压值乘以第二PWM信号的占空比。
在一个例子中,若获取到的恒定电流值为1A,恒定电压值为5V,被驱动体的额定电流值为0.6A,被驱动体的额定电压值值4V,基于此,确定第一PWM信号的占空比为0.6/1,即占空比0.6。确定第二PWM信号的占空比为4/5,即占空比为0.8。然后生成占空比为0.6的第一PWM信号,以及生成占空比为0.8的第二PWM信号。再利用第一PWM信号调节1A的恒定电流,便可得到向被驱动体输入的0.6A的电流。利用第二PWM信号调节5V的恒定电压,便可得到向被驱动提输入的4V的电压。
在另一个例子中,若获取到的恒定电流值为1A,恒定电压值为5V,被驱动体的额定电流值为0.5A,被驱动体的额定电压值值3V,基于此,确定第一PWM信号的占空比为0.5/1,即占空比0.5。确定第二PWM信号的占空比为3/5,即占空比为0.6。然后生成占空比为0.5的第一PWM信号,以及生成占空比为0.6的第二PWM信号。再利用第一PWM信号调节1A的恒定电流,便可得到向被驱动体输入的0.5A的电流。利用第二PWM信号调节5V的恒定电压,便可得到向被驱动提输入的3V的定电压。
本发明实施例中,可仅通过设置第一PWM信号的占空比,便可向被驱动体输入额定电流值的电流,而无需去选择输出电流值为电子设备对应的 额定电流值的电流驱动。对应的,可仅通过设置第二PWM信号的占空比,便可向被驱动体输入额定电压值的电压,而无需去选择输出电压值为电子设备对应的额定电压值的电压驱动。即提高了电子设备对电压驱动和电流驱动的兼容性。另外,由于本发明实施例是基于PWM信号实现的电流电压调节,即通过数字的方式实现的电流电压调节,这使得电流电压调节的操作方式更为简单。同时通过简单的操作方式提高PWM信号的频率,可向被驱动体输入精准的电流和电压,即为向被驱动体输入精准的电流和电压提供基础。
由于被驱动体的属性不同,因此,被驱动体对所需的额定电流值和额定电压值的要求也不同。具体的,当被驱动体为电感性被驱动体时,被驱动体对额定电流值要求更为严格。因此,需在上述的第一PWM信号处于高电平的情况下,再利用第二PWM信号调节恒定电压。对应的,当被驱动体为电容性被驱动体时,被驱动体对额定电压值的要求更为严格。因此,需在上述的第二PWM信号处于高电平的情况下,再利用第一PWM信号调节恒定电流。
基于上述内容可知,在一种实施例中,在被驱动体为电感性被驱动体的情况下,上述S104中的利用第二PWM信号调节恒定电压,以向被驱动体输入额定电压值的电压,包括:
在第一PWM信号处于高电平的情况下,利用第二PWM信号调节恒定电压,以向被驱动体输入额定电压值的电压。
示例性的,在该实施例中,上述第一PWM信号和第二PWM信号的相对关系可如图2所示。
在另一种实施例中,在被驱动体为电容性被驱动体的情况下,上述S104中利用第一PWM信号调节恒定电流,以向被驱动体输入额定电流值的电流,包括:
在第二PWM信号处于高电平的情况下,利用第一PWM信号调节恒定电流,以向被驱动体输入额定电流值的电流。
示例性的,在该实施例中,上述第一PWM信号和第二PWM信号的相对关系可如图3所示。
在一个实施例中,由于第一PWM信号的生成误差(例如第一比值为A,但是根据A生成的第一PWM信号的实际占空比却不等于A),导致存在实际输入至被驱动体的电流的实际电流值并不严格等于被驱动体所需的额定电流值的情况,而这种情况并不利于被驱动体的正常工作。为了避免此种情况的发生,本发明提供的电流电压调节方法在上述任一实施例的基础上,还包括如下S301-S303:
S301、获取实际输入至被驱动体的电流的实际电流值。
S302、在实际电流值小于额定电流值时,提高第一PWM信号的占空比。
在一种实施例中,实现提高第一PWM信号的占空比的具体实现方式可以为在第一PWM信号当前占空比的基础上增加一个量。
S303、在实际电流值大于额定电流值时,降低第一PWM信号的占空比。
在一个实施例中,实现降低第一PWM信号的占空比的具体实现方式可以为在第一PWM信号当前占空比的基础上降低一个量。
或者,为了避免上述不利于被驱动体的正常工作的情况发生,本发明提供的电流电压调节方法在上述任一实施例的基础上,还包括如下S401-S403:
S401、获取实际输入至被驱动体的电流的实际电流值。
S402、在实际电流值大于额定电流值时,输出第一提示信息。
S403、在实际电流值小于额定电流值时,输出第二提示信息。
在一个例子中,上述的第一提示信息和第二提示信息可以为不同的声信号,或光信号。例如,第一提示信息为一直点亮的红色LED灯,第二提示信息为一直点亮的绿色LED灯。
在该实施例中,操作人员可以通过不同的提示信息,采取对应的策略,例如手动提高或降低第一PWM信号的占空比,以使得实际输入至被驱动体的电流的实际电流值为额定电流值。
对应的,在一个实施例中,由于第二PWM信号的生成误差(例如第二比值为B,但是根据B生成的第二PWM信号的实际占空比却不等于B),导致存在实际输入至被驱动体的电压的实际电压值并不严格等于被驱动体所需的额定电压值的情况,而这种情况也同样不利于被驱动体的正常工作。为了避免此种情况的发生,本发明提供的电流电压调节方法在上述任一实施例的基础上,还包括如下S501-S503:
S501、获取实际输入至被驱动体的电压的实际电压值。
S502、在实际电压值小于额定电压值时,提高第二PWM信号的占空比。
在一种实施例中,实现提高第二PWM信号的占空比的具体实现方式可以为在第二PWM信号当前占空比的基础上增加一个量。
S503、在实际电压值大于额定电压值时,降低第二PWM信号的占空比。
在一个实施例中,实现降低第二PWM信号的占空比的具体实现方式可以为在第二PWM信号当前占空比的基础上降低一个量。
或者,为了避免上述不利用被驱动体的正常工作的情况发生,本发明提供的电流电压调节方法在上述任一实施例的基础上,还包括如下S601-S603:
S601、获取实际输入至被驱动体的电压的实际电压值。
S602、在实际电压值大于额定电压值时,输出第三提示信息。
S603、在实际电压值小于额定电压值时,输出第四提示信息。
在一个例子中,上述的第三提示信息和第四提示信息可以为不同于上述第一提示信息和第二提示信息的不同的声信号,或光信号。例如,第三提示信息为闪烁的红色LED灯,第二提示信息为闪烁的绿色LED灯。
在该实施例中,操作人员可以通过不同的提示信息,采取对应的策略,例如手动提高或降低第二PWM信号的占空比,以使得实际输入至被驱动体的电压的实际电压值为额定电压值。
<装置实施例>
本发明还提供一种电流电压调节装置40,如图4所示,该装置包括:获取模块41、第一生成模块42、第二生成模块43、以及调节模块44。其 中:
获取模块41,用于获取输入的恒定电流的恒定电流值和恒定电压的恒定电压值,及获取被驱动体的额定电流值和额定电压值,其中,额定电流值小于或等于恒定电流值,额定电压值小于或等于恒定电压值;
第一生成模块42,用于根据额定电流值与恒定电流值之间的第一比值,生成占空比为第一比值的第一PWM信号;
第二生成模块43,用于根据额定电压值与恒定电压值之间的第二比值,生成占空比为第二比值的第二PWM信号;
调节模块44,用于利用第一PWM信号调节恒定电流,以向被驱动体输入额定电流值的电流,及利用第二PWM信号调节恒定电压,以向被驱动体输入额定电压值的电压。
在一个实施例中,调节模块44具体用于:在第一PWM信号处于高电平的情况下,利用第二PWM信号调节恒定电压,以向被驱动体输入额定电压值的电压。
在一个实施例中,调节模块44具体用于:在第二PWM信号处于高电平的情况下,利用第一PWM信号调节恒定电流,以向被驱动体输入额定电流值的电流。
在一个实施例中,获取模块41还用于:获取实际输入至被驱动体的电流的实际电流值;在实际电流值小于额定电流值时,提高第一PWM信号的占空比;在实际电流值大于额定电流值时,降低第一PWM信号的占空比。
在一个实施例中,获取模块41还用于:获取实际输入至被驱动体的电压的实际电压值;在实际电压值小于额定电压值时,提高第二PWM信号的占空比;在实际电压值大于额定电压值时,降低第二PWM信号的占空比。
在一个实施例中,获取模块41还用于:获取实际输入至被驱动体的电流的实际电流值;在实际电流值大于额定电流值时,输出第一提示信息;在实际电流值小于额定电流值时,输出第二提示信息;
和/或,获取实际输入至被驱动体的电压的实际电压值;在实际电压值大于额定电压值时,输出第三提示信息;在实际电压值小于额定电压值时,输出第四提示信息。
在一个实施例中,获取模块41还用于:分别提供相互独立的用于输入额定电流值的第一输入接口,以及用于输入额定电压值的第二输入接口;
获取通过第一输入接口输入的值作为额定电流值,以及获取通过第二输入接口输入的值作为额定电压值;
分别检测输入的恒定电流的电流值以及输入的恒定电压的电压值,以作为恒定电流值、恒定电压值。
<电子设备实施例>
本发明还提供一种电子设备,该电子设备包括如上述装置实施例提供的电流电压调节装置。
或者,如图5所示,该电子设备50包括存储器51和处理器52,存储器51用于存储计算机指令,处理器52用于从存储器51中调用计算机指令,以执行如上述方法实施例提供的任一项电流电压调节方法。
<计算机可读存储介质>
本发明还提供一种计算机可读存储介质,存储介质存储有计算机指令,当存储介质中的计算机指令由处理器执行时,实现如上述方法实施例提供的任一项电流电压调节方法。
本发明可以是系统、方法和/或计算机程序产品。计算机程序产品可以包括计算机可读存储介质,其上载有用于使处理器实现本发明的各个方面的计算机可读程序指令。
计算机可读存储介质可以是可以保持和存储由指令执行设备使用的指令的有形设备。计算机可读存储介质例如可以是――但不限于――电存储设备、磁存储设备、光存储设备、电磁存储设备、半导体存储设备或者上述的任意合适的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、静态随机存取存储器(SRAM)、便携式压缩盘只读存储器(CD-ROM)、数字多功能盘(DVD)、 记忆棒、软盘、机械编码设备、例如其上存储有指令的打孔卡或凹槽内凸起结构、以及上述的任意合适的组合。这里所使用的计算机可读存储介质不被解释为瞬时信号本身,诸如无线电波或者其他自由传播的电磁波、通过波导或其他传输媒介传播的电磁波(例如,通过光纤电缆的光脉冲)、或者通过电线传输的电信号。
这里所描述的计算机可读程序指令可以从计算机可读存储介质下载到各个计算/处理设备,或者通过网络、例如因特网、局域网、广域网和/或无线网下载到外部计算机或外部存储设备。网络可以包括铜传输电缆、光纤传输、无线传输、路由器、防火墙、交换机、网关计算机和/或边缘服务器。每个计算/处理设备中的网络适配卡或者网络接口从网络接收计算机可读程序指令,并转发该计算机可读程序指令,以供存储在各个计算/处理设备中的计算机可读存储介质中。
用于执行本发明操作的计算机程序指令可以是汇编指令、指令集架构(ISA)指令、机器指令、机器相关指令、微代码、固件指令、状态设置数据、或者以一种或多种编程语言的任意组合编写的源代码或目标代码,所述编程语言包括面向对象的编程语言—诸如Smalltalk、C++等,以及常规的过程式编程语言—诸如“C”语言或类似的编程语言。计算机可读程序指令可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络—包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。在一些实施例中,通过利用计算机可读程序指令的状态信息来个性化定制电子电路,例如可编程逻辑电路、现场可编程门阵列(FPGA)或可编程逻辑阵列(PLA),该电子电路可以执行计算机可读程序指令,从而实现本发明的各个方面。
这里参照根据本发明实施例的方法、装置(系统)和计算机程序产品的流程图和/或框图描述了本发明的各个方面。应当理解,流程图和/或框图的每个方框以及流程图和/或框图中各方框的组合,都可以由计算机可读 程序指令实现。
这些计算机可读程序指令可以提供给通用计算机、专用计算机或其它可编程数据处理装置的处理器,从而生产出一种机器,使得这些指令在通过计算机或其它可编程数据处理装置的处理器执行时,产生了实现流程图和/或框图中的一个或多个方框中规定的功能/动作的装置。也可以把这些计算机可读程序指令存储在计算机可读存储介质中,这些指令使得计算机、可编程数据处理装置和/或其他设备以特定方式工作,从而,存储有指令的计算机可读介质则包括一个制造品,其包括实现流程图和/或框图中的一个或多个方框中规定的功能/动作的各个方面的指令。
也可以把计算机可读程序指令加载到计算机、其它可编程数据处理装置、或其它设备上,使得在计算机、其它可编程数据处理装置或其它设备上执行一系列操作步骤,以产生计算机实现的过程,从而使得在计算机、其它可编程数据处理装置、或其它设备上执行的指令实现流程图和/或框图中的一个或多个方框中规定的功能/动作。
附图中的流程图和框图显示了根据本发明的多个实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或指令的一部分,所述模块、程序段或指令的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。对于本领域技术人员来说公知的是,通过硬件方式实现、通过软件方式实现以及通过软件和硬件结合的方式实现都是等价的。
以上已经描述了本发明的各实施例,上述说明是示例性的,并非穷尽性的,并且也不限于所披露的各实施例。在不偏离所说明的各实施例的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更 都是显而易见的。本文中所用术语的选择,旨在最好地解释各实施例的原理、实际应用或对市场中的技术的技术改进,或者使本技术领域的其它普通技术人员能理解本文披露的各实施例。本发明的范围由所附权利要求来限定。

Claims (10)

  1. 一种电流电压调节方法,其特征在于,所述方法包括:
    获取输入的恒定电流的恒定电流值和恒定电压的恒定电压值,及获取被驱动体的额定电流值和额定电压值,其中,所述额定电流值小于或等于所述恒定电流值,所述额定电压值小于或等于所述恒定电压值;
    根据所述额定电流值与所述恒定电流值之间的第一比值,生成占空比为所述第一比值的第一PWM信号;
    根据所述额定电压值与所述恒定电压值之间的第二比值,生成占空比为所述第二比值的第二PWM信号;
    利用所述第一PWM信号调节所述恒定电流,以向所述被驱动体输入所述额定电流值的电流,及利用所述第二PWM信号调节所述恒定电压,以向所述被驱动体输入所述额定电压值的电压。
  2. 根据权利要求1所述的方法,其特征在于,在所述被驱动体为电感性被驱动体的情况下,所述利用第二PWM信号调节所述恒定电压,以向所述被驱动体输入所述额定电压值的电压,包括:
    在所述第一PWM信号处于高电平的情况下,利用所述第二PWM信号调节所述恒定电压,以向所述被驱动体输入所述额定电压值的电压。
  3. 根据权利要求1所述的方法,其特征在于,在所述被驱动体为电容性被驱动体的情况下,所述利用所述第一PWM信号调节所述恒定电流,以向所述被驱动体输入所述额定电流值的电流,包括:
    在所述第二PWM信号处于高电平的情况下,利用所述第一PWM信号调节所述恒定电流,以向所述被驱动体输入所述额定电流值的电流。
  4. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    获取实际输入至所述被驱动体的电流的实际电流值;
    在所述实际电流值小于所述额定电流值时,提高所述第一PWM信号的 占空比;
    在所述实际电流值大于所述额定电流值时,降低所述第一PWM信号的占空比。
  5. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    获取实际输入至所述被驱动体的电压的实际电压值;
    在所述实际电压值小于所述额定电压值时,提高所述第二PWM信号的占空比;
    在所述实际电压值大于所述额定电压值时,降低所述第二PWM信号的占空比。
  6. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    获取实际输入至所述被驱动体的电流的实际电流值;
    在所述实际电流值大于所述额定电流值时,输出第一提示信息;
    在所述实际电流值小于所述额定电流值时,输出第二提示信息;
    和/或,获取实际输入至所述被驱动体的电压的实际电压值;
    在所述实际电压值大于所述额定电压值时,输出第三提示信息;
    在所述实际电压值小于所述额定电压值时,输出第四提示信息。
  7. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    分别提供相互独立的用于输入额定电流值的第一输入接口,以及用于输入额定电压值的第二输入接口;
    获取通过所述第一输入接口输入的值作为所述额定电流值,以及获取通过第二输入接口输入的值作为所述额定电压值;
    分别检测输入的恒定电流的电流值以及输入的恒定电压的电压值,以作为所述恒定电流值、恒定电压值。
  8. 一种电流电压调节装置,其特征在于,所述装置包括:
    获取模块,用于获取输入的恒定电流的恒定电流值和恒定电压的恒定 电压值,及获取被驱动体的额定电流值和额定电压值,其中,所述额定电流值小于或等于所述恒定电流值,所述额定电压值小于或等于所述恒定电压值;
    第一生成模块,用于根据所述额定电流值与所述恒定电流值之间的第一比值,生成占空比为所述第一比值的第一PWM信号;
    第二生成模块,用于根据所述额定电压值与所述恒定电压值之间的第二比值,生成占空比为所述第二比值的第二PWM信号;
    调节模块,用于利用所述第一PWM信号调节所述恒定电流,以向所述被驱动体输入所述额定电流值的电流,及利用所述第二PWM信号调节所述恒定电压,以向所述被驱动体输入所述额定电压值的电压。
  9. 一种电流电压调节设备,其特征在于,包括:
    如权利要求8所述的装置;或者,
    存储器和处理器,所述存储器用于存储计算机指令,所述处理器用于从所述存储器中调用所述计算机指令,以执行如权利要求1-7任一项所述的电流电压调节方法。
  10. 一种计算机可读存储介质,其特征在于,所述存储介质存储有计算机指令,当所述存储介质中的计算机指令由处理器执行时,实现如权利要求1-7任一项所述的电流电压调节方法。
PCT/CN2020/103969 2019-08-28 2020-07-24 电流电压调节方法、装置、设备及存储介质 WO2021036619A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910803300.6A CN110543206A (zh) 2019-08-28 2019-08-28 电流电压调节方法、装置、设备及存储介质
CN201910803300.6 2019-08-28

Publications (1)

Publication Number Publication Date
WO2021036619A1 true WO2021036619A1 (zh) 2021-03-04

Family

ID=68712303

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/103969 WO2021036619A1 (zh) 2019-08-28 2020-07-24 电流电压调节方法、装置、设备及存储介质

Country Status (2)

Country Link
CN (1) CN110543206A (zh)
WO (1) WO2021036619A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110543206A (zh) * 2019-08-28 2019-12-06 歌尔股份有限公司 电流电压调节方法、装置、设备及存储介质
CN112437520A (zh) * 2020-11-11 2021-03-02 珠海雷特科技股份有限公司 Led恒流驱动电源及其控制方法、灯具及计算机可读存储介质
CN112423433A (zh) * 2020-11-11 2021-02-26 珠海雷特科技股份有限公司 Led驱动电源及其控制方法、灯具及计算机可读存储介质

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202133921U (zh) * 2011-05-25 2012-02-01 广州卓易电子科技有限公司 一种可调恒流恒压电源
CN102404920A (zh) * 2011-12-03 2012-04-04 南京普天大唐信息电子有限公司 一种输出电流可调的智能恒流供电装置
CN104482717A (zh) * 2014-12-31 2015-04-01 合肥美的电冰箱有限公司 冰箱及冰箱的压缩机控制方法和装置
TWM514104U (zh) * 2015-07-03 2015-12-11 Sch Power Tech Co Ltd 晶圓加工結構
CN106061052A (zh) * 2015-04-02 2016-10-26 奥斯兰姆施尔凡尼亚公司 接通优化
US10164535B2 (en) * 2016-11-23 2018-12-25 Texas Instruments Incorporated Cycle-by-cycle peak current limiting in current mode buck/boost converters
CN110543206A (zh) * 2019-08-28 2019-12-06 歌尔股份有限公司 电流电压调节方法、装置、设备及存储介质

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4979885B2 (ja) * 2004-11-02 2012-07-18 パナソニック株式会社 電源装置
CN103425167B (zh) * 2011-06-30 2015-07-22 华润矽威科技(上海)有限公司 恒压恒流控制电路
TWI514104B (zh) * 2014-07-11 2015-12-21 Novatek Microelectronics Corp 用於穩壓器之電流源及其穩壓器
CN104661401A (zh) * 2014-12-12 2015-05-27 青海聚能达新能源开发有限公司 一种led植物生长灯驱动控制装置
CN204707309U (zh) * 2015-04-27 2015-10-14 欧普照明股份有限公司 一种基于pwm的调光电路
JP6402833B2 (ja) * 2016-01-15 2018-10-10 株式会社オートネットワーク技術研究所 給電制御装置
CN108055718B (zh) * 2017-11-17 2021-02-02 广州视源电子科技股份有限公司 Led并联均流控制方法、系统及电路
CN207965718U (zh) * 2018-04-10 2018-10-12 迈普通信技术股份有限公司 一种多功能电源适配器
CN109173068B (zh) * 2018-08-30 2020-07-17 深圳可思美科技有限公司 恒定电流输出系统、射频美容仪及恒定电流输出方法

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202133921U (zh) * 2011-05-25 2012-02-01 广州卓易电子科技有限公司 一种可调恒流恒压电源
CN102404920A (zh) * 2011-12-03 2012-04-04 南京普天大唐信息电子有限公司 一种输出电流可调的智能恒流供电装置
CN104482717A (zh) * 2014-12-31 2015-04-01 合肥美的电冰箱有限公司 冰箱及冰箱的压缩机控制方法和装置
CN106061052A (zh) * 2015-04-02 2016-10-26 奥斯兰姆施尔凡尼亚公司 接通优化
TWM514104U (zh) * 2015-07-03 2015-12-11 Sch Power Tech Co Ltd 晶圓加工結構
US10164535B2 (en) * 2016-11-23 2018-12-25 Texas Instruments Incorporated Cycle-by-cycle peak current limiting in current mode buck/boost converters
CN110543206A (zh) * 2019-08-28 2019-12-06 歌尔股份有限公司 电流电压调节方法、装置、设备及存储介质

Also Published As

Publication number Publication date
CN110543206A (zh) 2019-12-06

Similar Documents

Publication Publication Date Title
WO2021036619A1 (zh) 电流电压调节方法、装置、设备及存储介质
GB2591355A (en) Audio circuitry
US9311049B2 (en) System to improve numereical conversions and associated methods
WO2021169960A1 (zh) 一种配置文件的推荐方法、装置及系统
US20120126771A1 (en) Circuitry for detecting a transient
TW200525330A (en) Combined transmitter
US20150026374A1 (en) Managing slave devices
WO2021238350A1 (zh) 更新配置文件的方法、设备及存储介质
US11200382B2 (en) Prosodic pause prediction method, prosodic pause prediction device and electronic device
US20120126761A1 (en) Circuitry for controlling a voltage
JP7309818B2 (ja) 音声認識方法、装置、電子機器及び記憶媒体
WO2019045939A1 (en) DUAL HOT FILTER BATTERY WITH TRANSFER LOAD
US20140019648A1 (en) Keyboard, video and mouse (kvm) switch indicator and kvm switch system using the same
US20180277030A1 (en) Adapter device for text, terminal test system and test method
WO2020034977A1 (zh) 电机补偿方法、驱动器、机械臂关节模组及机械臂
US20090037358A1 (en) Computer Program Product and System for Autonomous Classification
JP5225520B1 (ja) エンコーダ入力装置
US20170124219A1 (en) Determining data field offsets using a document object model representation
TWI645692B (zh) 供電裝置、偵測電路與其供電方法
JP6357528B2 (ja) コンプライアンスリミット閾値における円滑な電圧電流モードクロスオーバー方法
US10855237B1 (en) Method for changing audio limiter settings under low alternating-current (AC) line voltage condition
WO2023197456A1 (zh) 一种调节功耗的系统、方法、装置、设备及介质
JP2007336622A (ja) 運転制御方法、電力変換システムおよび電力変換装置
US11272598B2 (en) Transconductance circuits and methods
CN110677772B (zh) 声音接收装置及其杂音信号产生的方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20857582

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20857582

Country of ref document: EP

Kind code of ref document: A1