CN109445333A - A kind of single-chip microcontroller control direct-flow current consumer circuit - Google Patents

A kind of single-chip microcontroller control direct-flow current consumer circuit Download PDF

Info

Publication number
CN109445333A
CN109445333A CN201811250900.6A CN201811250900A CN109445333A CN 109445333 A CN109445333 A CN 109445333A CN 201811250900 A CN201811250900 A CN 201811250900A CN 109445333 A CN109445333 A CN 109445333A
Authority
CN
China
Prior art keywords
photoelectrical coupler
relay
chip microcontroller
current
direct
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
CN201811250900.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.)
Nanjing Institute of Railway Technology
Original Assignee
Nanjing Institute of Railway Technology
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 Nanjing Institute of Railway Technology filed Critical Nanjing Institute of Railway Technology
Priority to CN201811250900.6A priority Critical patent/CN109445333A/en
Publication of CN109445333A publication Critical patent/CN109445333A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/25Pc structure of the system
    • G05B2219/25257Microcontroller

Abstract

The invention discloses a kind of single-chip microcontrollers to control direct-flow current consumer circuit, is made of C8051F series monolithic, photoelectrical coupler, NOT gate 7406, DC relay, direct-flow current consumer.C8051F series monolithic connects one end of the current-limiting resistance of photoelectrical coupler by NOT gate 7406, the other end of current-limiting resistance is connected with photoelectrical coupler, the power pins of photoelectrical coupler are for 3.3V voltage, the output end of photoelectrical coupler connects DC relay, the input terminal of DC relay is reversed and connects a diode, and DC relay is connected between electrical appliance and DC power supply.Being isolated for single-chip microcontroller and external circuit is realized using photoelectrical coupler; single-chip microcontroller is realized using DC relay to indirectly control electrical appliance; interference and destruction of the single-chip microcontroller not by external circuit and environment are protected, realizes the quick folding of DC relay in one diode of DC relay reverse parallel connection.

Description

A kind of single-chip microcontroller control direct-flow current consumer circuit
Technical field
The invention belongs to indirectly control field of circuit technology, and in particular to a kind of being realized using relay with light-coupled isolation The circuit indirectly controlled.
Background technique
Currently, single-chip microcontroller application it is very universal, from it is small to Toy for young children greatly to aerospace craft, it is all extensive and general Time use single-chip microcontroller as controller, in use, various real-time or non real-time instruction is handled by single-chip microcontroller, Then calculating or control command are externally transmitted by the input/output port of single-chip microcontroller, and in practical applications, single-chip microcontroller is weak Electrical part can not directly be connected with electrical appliance or external circuit is driven directly to work, then need to design external circuit, between realization Control is connect, simultaneously as the environmental difference of external circuit work, various bursts or random disturbances may will affect single-chip microcontroller Work destroys single-chip microcontroller, so needing a kind of circuit, realization single-chip microcontroller is isolated with external circuit, while being realized and being used outside Electric appliance indirectly controls.
Summary of the invention
The technical problem to be solved by the present invention is to solve the above shortcomings of the prior art and to provide a kind of control of single-chip microcontroller is straight Flow electrical appliance circuit.
To realize the above-mentioned technical purpose, the technical scheme adopted by the invention is as follows:
A kind of single-chip microcontroller control direct-flow current consumer circuit, by C8051F series monolithic, photoelectrical coupler, NOT gate 7406, direct current Relay, direct-flow current consumer composition;C8051F series monolithic passes through the current-limiting resistance of the connection photoelectrical coupler of NOT gate 7406 The other end of one end, current-limiting resistance is connected with photoelectrical coupler, and the power pins of photoelectrical coupler connect power supply, photoelectrical coupler Output end connect DC relay, the input terminal of DC relay is reversed and connects a diode, and DC relay is connected on Between electrical appliance and DC power supply.
To optimize above-mentioned technical proposal, the concrete measure taken further include:
Above-mentioned C8051F series monolithic model C8051F930.
The power pins of above-mentioned photoelectrical coupler connect 3.3V voltage.
Above-mentioned photoelectrical coupler is made of light emitting diode and phototriode, when LEDs ON shines, Phototriode conducting, otherwise cut-off.
The input current of above-mentioned light emitting diode is 10-20mA, and conduction voltage drop 1V, the resistance value of current-limiting resistance is 200 Ω。
Workflow of the invention are as follows: control instruction is exported by the P2.0 pin of C8051F930, such as P2.0=1, then non- 7406 output 0 of door, therefore LEDs ON and ray, phototriode are connected under the effect of light, starting direct current after Electric appliance end triode ON, DC relay have electric current to pass through, and inductance coil is attracted switch, start direct-flow current consumer;Conversely, When P2.0=0, light emitting diode cut-off, phototriode is also switched off, and the electric current of DC relay is abruptly cut, direct current electricity consumption Device power-off stops working.And the characteristic of inductance makes it that can generate stronger inverse electromotive force, this inverse electromotive force will be after It is continuous to be attracted switch, cannot be closed in time so as to cause electrical appliance, in order to solve this problem, DC relay both ends reversely simultaneously Join a diode, when electric current is cut off, inverse electromotive force can drive diode current flow, forming circuit, reduce electromotive force, release Switch.
The invention has the following advantages:
Realize being isolated for single-chip microcontroller and external circuit using photoelectrical coupler, using DC relay realize single-chip microcontroller to Electric appliance indirectly controls, and protects interference and destruction of the single-chip microcontroller not by external circuit and environment, DC relay reversely simultaneously Joining a diode realizes the quick folding of DC relay.And circuit is simple, reliable, reduces peripheral circuit cost.
Detailed description of the invention
Fig. 1 is circuit diagram of the invention.
Specific embodiment
The embodiment of the present invention is described in further detail below in conjunction with attached drawing.
A kind of single-chip microcontroller control direct-flow current consumer circuit of the invention, a kind of single-chip microcontroller control direct-flow current consumer circuit, by C8051F series monolithic, photoelectrical coupler, NOT gate 7406, DC relay, direct-flow current consumer composition;C8051F series monolithic Machine connects one end of the current-limiting resistance of photoelectrical coupler, the other end and the photoelectrical coupler phase of current-limiting resistance by NOT gate 7406 Even, the power pins of photoelectrical coupler connect power supply, and the output end of photoelectrical coupler connects DC relay, DC relay Input terminal is reversed and connects a diode, and DC relay is connected between electrical appliance and DC power supply.
In embodiment, C8051F series monolithic model C8051F930.
In embodiment, the power pins of photoelectrical coupler connect 3.3V voltage.
In embodiment, photoelectrical coupler is made of light emitting diode and phototriode, when LEDs ON shines When, phototriode conducting, on the contrary cut-off.
In embodiment, the input current of light emitting diode is 10-20mA, and the resistance value of conduction voltage drop 1V, current-limiting resistance are 200Ω。
Workflow of the invention are as follows: control instruction is exported by the P2.0 pin of C8051F930, such as P2.0=1, then non- 7406 output 0 of door, therefore LEDs ON and ray, phototriode are connected under the effect of light, starting direct current after Electric appliance end triode ON, DC relay have electric current to pass through, and inductance coil is attracted switch, start direct-flow current consumer;Conversely, When P2.0=0, light emitting diode cut-off, phototriode is also switched off, and the electric current of DC relay is abruptly cut, direct current electricity consumption Device power-off stops working.And the characteristic of inductance makes it that can generate stronger inverse electromotive force, this inverse electromotive force will be after It is continuous to be attracted switch, cannot be closed in time so as to cause electrical appliance, in order to solve this problem, DC relay both ends reversely simultaneously Join a diode, when electric current is cut off, inverse electromotive force can drive diode current flow, forming circuit, reduce electromotive force, release Switch.
The above is only the preferred embodiment of the present invention, protection scope of the present invention is not limited merely to above-described embodiment, All technical solutions belonged under thinking of the present invention all belong to the scope of protection of the present invention.It should be pointed out that for the art For those of ordinary skill, several improvements and modifications without departing from the principles of the present invention should be regarded as protection of the invention Range.

Claims (5)

1. a kind of single-chip microcontroller controls direct-flow current consumer circuit, it is characterised in that: by C8051F series monolithic, photoelectrical coupler, NOT gate 7406, DC relay, direct-flow current consumer composition;C8051F series monolithic connects photoelectrical coupler by NOT gate 7406 Current-limiting resistance one end, the other end of current-limiting resistance is connected with photoelectrical coupler, and the power pins of photoelectrical coupler connect electricity Source, the output end of photoelectrical coupler connect DC relay, and the input terminal of DC relay is reversed and connects a diode, direct current Relay is connected between electrical appliance and DC power supply.
2. a kind of single-chip microcontroller as described in claim 1 controls direct-flow current consumer circuit, it is characterised in that: the C8051F series Single-chip microcontroller model C8051F930.
3. a kind of single-chip microcontroller as described in claim 1 controls direct-flow current consumer circuit, it is characterised in that: the photoelectrical coupler Power pins connect 3.3V voltage.
4. a kind of single-chip microcontroller as described in claim 1 controls direct-flow current consumer circuit, it is characterised in that: the photoelectrical coupler It is made of light emitting diode and phototriode, when LEDs ON shines, phototriode conducting, on the contrary cut-off.
5. a kind of single-chip microcontroller as claimed in claim 4 controls direct-flow current consumer circuit, it is characterised in that: the light emitting diode Input current be 10-20mA, conduction voltage drop 1V, the resistance value of current-limiting resistance is 200 Ω.
CN201811250900.6A 2018-10-25 2018-10-25 A kind of single-chip microcontroller control direct-flow current consumer circuit Pending CN109445333A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811250900.6A CN109445333A (en) 2018-10-25 2018-10-25 A kind of single-chip microcontroller control direct-flow current consumer circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811250900.6A CN109445333A (en) 2018-10-25 2018-10-25 A kind of single-chip microcontroller control direct-flow current consumer circuit

Publications (1)

Publication Number Publication Date
CN109445333A true CN109445333A (en) 2019-03-08

Family

ID=65548389

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811250900.6A Pending CN109445333A (en) 2018-10-25 2018-10-25 A kind of single-chip microcontroller control direct-flow current consumer circuit

Country Status (1)

Country Link
CN (1) CN109445333A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN208834152U (en) * 2018-10-25 2019-05-07 南京铁道职业技术学院 A kind of single-chip microcontroller control direct-flow current consumer circuit

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN208834152U (en) * 2018-10-25 2019-05-07 南京铁道职业技术学院 A kind of single-chip microcontroller control direct-flow current consumer circuit

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈光东,等: "单片微型计算机原理与接口技术", 西安电子科技大学出版社, pages: 291 - 292 *

Similar Documents

Publication Publication Date Title
WO2011060666A1 (en) Soft-start module and startup device for motor controller using the same
CN107359608A (en) A kind of direct current prevents reversed protection circuit
CN202749303U (en) Power control circuit for relay driving module
CN203521324U (en) Relay driving circuit
CN102751142A (en) Power supply control circuit for relay driving module
CN208834152U (en) A kind of single-chip microcontroller control direct-flow current consumer circuit
CN104241024A (en) Relay control circuit
CN109445333A (en) A kind of single-chip microcontroller control direct-flow current consumer circuit
CN104176073B (en) DC110V reconnection control circuit
CN203933487U (en) A kind of commutation control module
CN205753352U (en) Servo-driver dual power supply low pressure sync detection circuit
CN206209032U (en) A kind of power-fail detection circuit and switching power circuit
CN203180779U (en) Switch power supply provided with output short circuit protection function
CN202258635U (en) Magnetizing and demagnetizing controller for electromagnetic chuck of grinder
WO2017036120A1 (en) Lithium battery management system and control method therefor
CN204956365U (en) Vibrations response car power supply driver
CN209133420U (en) It is a kind of to control relay using capacitive coupling and with square wave
CN209593094U (en) A kind of automatic switch-over circuit of different electrical power system
CN205822958U (en) Electronic lock drive circuit
CN206574645U (en) Unicoil magnetic latching relay and its drive circuit
CN208060982U (en) A kind of switching value output circuit
CN206922495U (en) Automatic change-over actuator
CN206195078U (en) Energy -conserving socket and remote control circuit thereof
CN201233842Y (en) Electric relay driving circuit
CN205384473U (en) A silicon controlled rectifier safety control circuit that is used for load on alternating current power supply

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