CN111580591A - Module for PWM control output analog voltage - Google Patents

Module for PWM control output analog voltage Download PDF

Info

Publication number
CN111580591A
CN111580591A CN202010537811.0A CN202010537811A CN111580591A CN 111580591 A CN111580591 A CN 111580591A CN 202010537811 A CN202010537811 A CN 202010537811A CN 111580591 A CN111580591 A CN 111580591A
Authority
CN
China
Prior art keywords
circuit
microprocessor
resistor
output
analog voltage
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.)
Withdrawn
Application number
CN202010537811.0A
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.)
Sotis Cloud Intelligent Control Technology Shanghai Co ltd
Original Assignee
Sotis Cloud Intelligent Control Technology Shanghai 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 Sotis Cloud Intelligent Control Technology Shanghai Co ltd filed Critical Sotis Cloud Intelligent Control Technology Shanghai Co ltd
Priority to CN202010537811.0A priority Critical patent/CN111580591A/en
Publication of CN111580591A publication Critical patent/CN111580591A/en
Withdrawn 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/46Regulating voltage or current wherein the variable actually regulated by the final control device is dc
    • G05F1/56Regulating voltage or current wherein the variable actually regulated by the final control device is dc using semiconductor devices in series with the load as final control devices
    • G05F1/561Voltage to current converters
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K19/00Logic circuits, i.e. having at least two inputs acting on one output; Inverting circuits
    • H03K19/0175Coupling arrangements; Interface arrangements
    • H03K19/017545Coupling arrangements; Impedance matching circuits
    • H03K19/017572Coupling arrangements; Impedance matching circuits using opto-electronic devices

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Automation & Control Theory (AREA)
  • Electromagnetism (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Dc-Dc Converters (AREA)
  • Analogue/Digital Conversion (AREA)
  • Amplifiers (AREA)

Abstract

The module for PWM control output of analog voltage comprises a microprocessor PWM signal isolation circuit, an RC filter circuit and a voltage signal modulation circuit, wherein a PWM signal output by the microprocessor is connected to one side of a light emitting diode of a photoelectric coupler, one side of a triode of the photoelectric coupler is used as an output and connected to the RC filter circuit, the output of the RC filter circuit is connected to the voltage signal modulation circuit, the RC filter circuit converts the PWM signal into a direct current voltage value, and the voltage signal modulation circuit outputs a corresponding analog voltage value. The module for PWM control output of the analog voltage realizes the conversion from the PWM signal output by the microprocessor to the analog voltage signal, avoids the adoption of an analog voltage IC chip, reduces the cost of the analog voltage generating circuit and solves the problem that the analog voltage generating circuit is easy to damage.

Description

Module for PWM control output analog voltage
Technical Field
The present invention relates to a module for controlling an output analog voltage by PWM, and more particularly, to a module for controlling an output analog voltage by PWM, which generates an analog voltage by isolating, RC filtering and operational amplification of a PWM signal output from a microprocessor.
Background
The existing module for controlling the output of the analog voltage in the current market is basically realized by an IC chip, and the analog voltage is output by the IC chip, so that the price is very high and the module is very easy to damage; meanwhile, the microprocessor is used for operating the chip to output the analog voltage, so that the operation is troublesome, the microprocessor is extremely easy to damage, unsafe risks exist in the use process, and the maintenance or the replacement is very inconvenient.
Disclosure of Invention
In order to overcome the above technical problem, the present invention provides a module for PWM control of an output analog voltage.
The module for PWM control output of analog voltage comprises a microprocessor PWM signal isolation circuit, an RC filter circuit and a voltage signal modulation circuit, wherein the microprocessor PWM signal isolation circuit consists of a photoelectric coupler; the method is characterized in that: the PWM signal output by the microprocessor is connected to one side of a light emitting diode of the photoelectric coupler, one side of a triode of the photoelectric coupler is connected to the RC filter circuit as an output, and the PWM signal isolation circuit of the microprocessor realizes the isolation of the microprocessor from the RC filter circuit and the voltage signal modulation circuit so as to realize the protection of the microprocessor; the output of the RC filter circuit is connected to the voltage signal modulation circuit, the RC filter circuit is used for converting the PWM signal output by the microprocessor PWM signal isolation circuit into a direct current voltage value, and the direct current voltage value converted by the RC filter circuit is amplified by the voltage signal modulation circuit and then outputs a corresponding analog voltage value.
The PWM signal isolation circuit of the microprocessor is composed of a photoelectric coupler, a pull-up resistor R1, a current-limiting resistor R2 and a pull-up resistor R3, the PWM signal output by the microprocessor is connected to the anode of a light-emitting diode in the photoelectric coupler through the resistor R2, the cathode of the light-emitting diode is connected to a power ground of a circuit where the microprocessor is located, and the PWM signal output by the microprocessor is connected to the power supply of the circuit where the microprocessor is located through the pull-up resistor R1; the collector of the triode in the photoelectric coupler is connected to the positive power supply of the RC filter circuit through a pull-up resistor R3, and the emitter is connected to the power ground of the RC filter circuit.
The module for PWM control output of analog voltage comprises an RC filter circuit consisting of a capacitor C1, a resistor R4 and an inductor L1, wherein one end of the capacitor C1 is connected to a collector of a triode of a photoelectric coupler through the inductor L1, the other end of the capacitor C1 is connected to a power ground of the RC filter circuit, and the resistor R4 is connected to two ends of the capacitor C1 in parallel.
The invention relates to a module for PWM control output analog voltage, which comprises an operational amplifier OP1, a resistor R6 and a resistor R7, wherein the connection part of a capacitor C1 and an inductor L1 is connected with the non-inverting input end of the operational amplifier OP1 through a resistor R5, the inverting input end of the operational amplifier OP1 is connected with the output end of the operational amplifier through a resistor R7, the inverting input end of the OP1 is connected with the power ground of the voltage signal modulation circuit through a resistor R6, and the output end of the operational amplifier OP1 forms an analog voltage output signal.
The invention has the beneficial effects that: according to the module for outputting the analog voltage under the PWM control, the PWM signal output by the microprocessor is connected to the input end of the PWM signal isolation circuit of the microprocessor, the isolation between the microprocessor side and the RC filter circuit and the voltage signal modulation circuit behind the microprocessor side is realized through the photoelectric coupler in the PWM signal isolation circuit of the microprocessor, the protection effect on the microprocessor is realized, even if the RC filter circuit and the voltage signal modulation circuit break down, the circuit where the microprocessor is located cannot be influenced, and the safety of the circuit where the microprocessor is located is ensured; the RC filter circuit filters the PWM signal output by the microprocessor PWM signal isolation circuit, converts the PWM signal into a corresponding direct current voltage value, inputs the direct current voltage value into the voltage signal modulation circuit for amplification, and outputs an analog voltage output in proportion to the duty ratio of the PWM signal, so that the conversion from the PWM signal output by the microprocessor to the analog voltage signal is realized, an analog voltage IC chip is avoided, the cost of the analog voltage generation circuit is reduced, and the problem that the analog voltage generation circuit is easy to damage is solved.
Drawings
FIG. 1 is a circuit diagram of a module for PWM control of output analog voltage according to the present invention;
FIG. 2 is a circuit diagram of a portion of a microprocessor PWM signal isolation circuit according to the present invention;
FIG. 3 is a circuit diagram of a portion of an RC filter circuit according to the present invention;
FIG. 4 is a circuit diagram of a voltage signal modulation circuit portion according to the present invention;
fig. 5 is a flowchart illustrating the operation of the module for PWM controlling the output analog voltage according to the present invention.
Detailed Description
The invention is further described with reference to the following figures and examples.
As shown in fig. 1, a circuit diagram of a module for PWM control output of analog voltage according to the present invention is provided, which is composed of a microprocessor PWM signal isolation circuit, an RC filter circuit, and a voltage signal modulation circuit, after passing through the microprocessor PWM signal isolation circuit, a PWM signal output from the microprocessor is input to the RC filter circuit, and the microprocessor PWM signal isolation circuit isolates a circuit where the microprocessor is located from a subsequent RC filter circuit and voltage signal modulation circuit, so as to protect the circuit where the microprocessor is located. The RC filter circuit rectifies the PWM signal output by the microprocessor PWM signal isolation circuit, converts the PWM signal into a corresponding direct-current voltage value and inputs the direct-current voltage value to the input end of the voltage signal modulation circuit; the voltage signal modulation circuit amplifies the voltage value output by the RC filter circuit and outputs an analog voltage output signal with the magnitude in direct proportion to the duty ratio of the PWM signal.
Referring to fig. 2, a circuit diagram of a PWM signal isolation circuit of a microprocessor according to the present invention is shown, where the PWM signal isolation circuit of the microprocessor is composed of a pull-up resistor R1, a current-limiting resistor R2, a photocoupler IOS1, and a pull-up circuit R3, and the photocoupler IOS1 is of type EL 357. The PWM signal output by the microprocessor is connected to the anode of the light emitting diode in the photoelectric coupler through the resistor R2, the cathode of the light emitting diode is connected to the power ground of the circuit where the microprocessor is located, and the PWM signal output by the microprocessor is also connected to the power ground of the circuit where the microprocessor is located through the resistor R1. The collector of the phototriode in the photoelectric coupler is connected to the power supply of the RC filter circuit through a pull-up resistor R3, and the collector of the phototriode is connected to the power ground of the RC filter circuit, so that the PWM signal output by the microprocessor is isolated by the photoelectric coupler, and the isolated PWM signal output is formed. The resistors R1, R2 and R3 are all shown to have a resistance of 1k Ω.
Referring to fig. 3, a circuit diagram of the RC filter circuit of the present invention is shown, wherein the filter circuit is composed of a capacitor C1, a resistor R4 and an inductor L1, one end of the capacitor C1 is connected to the collector of the photo transistor in the photocoupler through the inductor L1, and the other end is connected to the ground of the RC filter circuit. The resistor R4 is connected in parallel across the capacitor C1. In this way, the PWM signal output from the photocoupler is rectified by the filter circuit composed of R4 and C1, converted into a corresponding dc voltage value, and input to the voltage signal modulation circuit. The capacitance of the capacitor C1 is shown to be 4.7 μ F, the resistance of the resistor R4 is 10k Ω, and the inductance L1 is 2 μ H.
As shown in fig. 4, a circuit diagram of the voltage signal modulation circuit part of the present invention is provided, the voltage signal modulation circuit is composed of an operational amplifier OP1, a resistor R6 and a resistor R7, a connection point of the resistor R4 and the inductor L1 is connected to a non-inverting input terminal of the operational amplifier OP1 via a resistor R5, so as to realize that a dc voltage value output by the RC filter circuit is input to the voltage signal modulation circuit. The inverting input terminal of the operational amplifier OP1 is connected to the output terminal thereof through a resistor R7, and the inverting input terminal of the operational amplifier OP1 is connected to the power ground of the voltage signal modulation circuit through a resistor R6. The output terminal of the operational amplifier OP1 outputs an analog voltage signal. The resistors R5, R6 and R7 are all 1k Ω.
As shown in fig. 5, a working flow chart of the module for PWM control of output analog voltage according to the present invention is provided, and the specific implementation steps are as follows:
the method comprises the following steps: the microprocessor outputs PWM pulse width signals with different duty ratios to the microprocessor PWM signal isolation circuit;
step two: the microprocessor PWM signal isolation circuit isolates the microprocessor from the RC filter circuit and the voltage signal modulation circuit, and transmits the isolated PWM pulse width signal to the RC filter circuit;
step three: the RC filter circuit converts different PWM pulse width signals into direct current voltage values with different sizes and inputs the direct current voltage values into the voltage signal modulation circuit;
step four: the voltage signal modulation circuit modulates the direct-current voltage into a required analog voltage value according to actual requirements and outputs the analog voltage value.
The module for PWM control output of the analog voltage adjusts the voltage value output by the voltage signal modulation circuit through the PWM pulse width signal sent by the microprocessor, can realize the output control of the analog voltage without an IC chip, greatly simplifies the operation process, reduces the occurrence of troubles, saves the production cost and has strong practicability.
In summary, the PWM-controlled analog voltage output module of the present invention utilizes the microprocessor to send out different PWM pulse width signals, utilizes the isolation circuit to act on the RC filter circuit, converts the different PWM pulse width signals sent out by the microprocessor into dc voltage values with different magnitudes, and then utilizes the voltage signal too modulation to output different analog voltage values. The operation is simple and convenient, the expense of using an IC chip is avoided, the production cost is saved, two parts of circuits are isolated simultaneously, the integral stability of the system is improved, and the system is suitable for being widely popularized.

Claims (4)

1. A module for controlling output analog voltage by PWM comprises a microprocessor PWM signal isolation circuit, an RC filter circuit and a voltage signal modulation circuit, wherein the microprocessor PWM signal isolation circuit consists of a photoelectric coupler; the method is characterized in that: the PWM signal output by the microprocessor is connected to one side of a light emitting diode of the photoelectric coupler, one side of a triode of the photoelectric coupler is connected to the RC filter circuit as an output, and the PWM signal isolation circuit of the microprocessor realizes the isolation of the microprocessor from the RC filter circuit and the voltage signal modulation circuit so as to realize the protection of the microprocessor; the output of the RC filter circuit is connected to the voltage signal modulation circuit, the RC filter circuit is used for converting the PWM signal output by the microprocessor PWM signal isolation circuit into a direct current voltage value, and the direct current voltage value converted by the RC filter circuit is amplified by the voltage signal modulation circuit and then outputs a corresponding analog voltage value.
2. The PWM-controlled module for outputting an analog voltage according to claim 1, characterized in that: the microprocessor PWM signal isolation circuit consists of a photoelectric coupler, a pull-up resistor R1, a current-limiting resistor R2 and a pull-up resistor R3, a PWM signal output by the microprocessor is connected to the anode of a light-emitting diode in the photoelectric coupler through the resistor R2, the cathode of the light-emitting diode is connected to a power ground of a circuit where the microprocessor is located, and the PWM signal output by the microprocessor is connected to the power of the circuit where the microprocessor is located through the pull-up resistor R1; the collector of the triode in the photoelectric coupler is connected to the positive power supply of the RC filter circuit through a pull-up resistor R3, and the emitter is connected to the power ground of the RC filter circuit.
3. The PWM-controlled module for outputting an analog voltage according to claim 2, characterized in that: the RC filter circuit consists of a capacitor C1, a resistor R4 and an inductor L1, one end of the capacitor C1 is connected to a collector of a triode of the photoelectric coupler through the inductor L1, the other end of the capacitor C1 is connected to a power ground of the RC filter circuit, and the resistor R4 is connected to two ends of the capacitor C1 in parallel.
4. The PWM-controlled module for outputting an analog voltage according to claim 3, characterized in that: the voltage signal modulation circuit is composed of an operational amplifier OP1, a resistor R6 and a resistor R7, the connection part of a capacitor C1 and an inductor L1 is connected with the non-inverting input end of the operational amplifier OP1 through a resistor R5, the inverting input end of the operational amplifier OP1 is connected with the output end of the operational amplifier OP1 through a resistor R7, the inverting input end of the OP1 is connected with the power ground of the voltage signal modulation circuit through a resistor R6, and the output end of the operational amplifier OP1 forms an analog voltage output signal.
CN202010537811.0A 2020-06-12 2020-06-12 Module for PWM control output analog voltage Withdrawn CN111580591A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010537811.0A CN111580591A (en) 2020-06-12 2020-06-12 Module for PWM control output analog voltage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010537811.0A CN111580591A (en) 2020-06-12 2020-06-12 Module for PWM control output analog voltage

Publications (1)

Publication Number Publication Date
CN111580591A true CN111580591A (en) 2020-08-25

Family

ID=72127470

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010537811.0A Withdrawn CN111580591A (en) 2020-06-12 2020-06-12 Module for PWM control output analog voltage

Country Status (1)

Country Link
CN (1) CN111580591A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116660729A (en) * 2023-05-31 2023-08-29 安徽固太新能源有限公司 Battery simulation device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116660729A (en) * 2023-05-31 2023-08-29 安徽固太新能源有限公司 Battery simulation device

Similar Documents

Publication Publication Date Title
CN107546981B (en) A kind of power circuit
CN101226411B (en) Power consumption measuring and control method for sound system switch power source as well as special device thereof
CN203618179U (en) Voltage-stabilization dimmable LED (light emitting diode) driving power supply circuit
CN112512163A (en) Output overvoltage protection control circuit and drive circuit
CN102647820A (en) LED (light emitting diode) drive circuit
CN111580591A (en) Module for PWM control output analog voltage
CN102711331B (en) LED drive power supply
CN104393760B (en) The positive negative output low voltage difference with short-circuit protection function adjusts circuit
CN102548095A (en) Lamp and driving circuit thereof
CN212208069U (en) Module for PWM control output analog voltage
CN103220859B (en) Constant-current control circuit and use the device of this circuit
CN208538008U (en) A kind of linear voltage-stabilizing circuit with overcurrent protection
CN105305832B (en) A kind of circuit for realizing the output of multichannel positive or negative high voltage
CN208796909U (en) One kind is for the small signal isolation control circuit of relay in number DC converter
CN108829170A (en) A kind of linear voltage-stabilizing circuit with overcurrent protection
CN211981849U (en) Photoelectric coupler signal regulating circuit
CN212486848U (en) Open-circuit and short-circuit fault feedback circuit for constant-current power supply
CN210693431U (en) Simple, practical and automatic-recovery input overvoltage protection circuit
CN114340100A (en) Magnetron filament power supply control system
CN209545966U (en) A kind of two road dmx512 signal electromagnet Isolation protectors
CN209151003U (en) A kind of switching power supply system
CN208424327U (en) The output comparison circuit of electric pressure converter
CN202738222U (en) Light-emitting diode driving device
CN112630505A (en) Wide-voltage self-adaptive high-isolation voltage detection circuit and detection method thereof
CN209844840U (en) Completely isolated low-voltage DC TO DC constant current output circuit

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20200825