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 PDFInfo
- 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
Links
- 230000005611 electricity Effects 0.000 claims description 3
- 230000003760 hair shine Effects 0.000 claims description 3
- 230000006378 damage Effects 0.000 abstract description 2
- 230000000694 effects Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 238000002955 isolation Methods 0.000 description 1
- 238000000034 method Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/042—Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
- G05B19/0423—Input/output
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/25—Pc structure of the system
- G05B2219/25257—Microcontroller
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Toys (AREA)
- Electronic Switches (AREA)
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
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 Ω.
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) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109980610A (en) * | 2019-04-01 | 2019-07-05 | 深圳盈特创智能科技有限公司 | A kind of hardware current foldback circuit |
Citations (1)
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 |
-
2018
- 2018-10-25 CN CN201811250900.6A patent/CN109445333A/en active Pending
Patent Citations (1)
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)
Title |
---|
陈光东,等: "单片微型计算机原理与接口技术", 西安电子科技大学出版社, pages: 291 - 292 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109980610A (en) * | 2019-04-01 | 2019-07-05 | 深圳盈特创智能科技有限公司 | A kind of hardware current foldback circuit |
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 | |
CN109445333A (en) | A kind of single-chip microcontroller control direct-flow current consumer circuit | |
CN204215966U (en) | Relay drive circuit and relay | |
CN104241024A (en) | Relay control circuit | |
CN206209032U (en) | Power failure detection circuit and switching power supply circuit | |
CN104176073B (en) | DC110V reconnection control circuit | |
CN202258635U (en) | Magnetizing and demagnetizing controller for electromagnetic chuck of grinder | |
CN203933487U (en) | A kind of commutation control module | |
CN203180779U (en) | Switch power supply provided with output short circuit protection function | |
CN203933461U (en) | A kind of reversing arrangement | |
WO2017036120A1 (en) | Lithium battery management system and control method therefor | |
CN204956365U (en) | Vibrations response car power supply driver | |
CN203631410U (en) | Vacuum circuit breaker controlling circuit and vacuum circuit breaker controlling system | |
CN209133420U (en) | It is a kind of to control relay using capacitive coupling and with square wave | |
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 |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190308 |
|
RJ01 | Rejection of invention patent application after publication |