CN106054720A - Intelligent switch system - Google Patents

Intelligent switch system Download PDF

Info

Publication number
CN106054720A
CN106054720A CN201610484517.1A CN201610484517A CN106054720A CN 106054720 A CN106054720 A CN 106054720A CN 201610484517 A CN201610484517 A CN 201610484517A CN 106054720 A CN106054720 A CN 106054720A
Authority
CN
China
Prior art keywords
circuit
temperature
intelligent switch
switch system
display
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
CN201610484517.1A
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201610484517.1A priority Critical patent/CN106054720A/en
Publication of CN106054720A publication Critical patent/CN106054720A/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
    • 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/25341Single chip programmable controller

Abstract

The present invention discloses an intelligent switch system. The intelligent switch system comprises a display circuit, a relay switch circuit, a buzzer timer, a power circuit part, a reset circuit and a temperature acquisition circuit that are connected with a central processing unit, the display circuit includes at least one display circuit, each display circuit includes a rectifier diode, a current-limiting resistor, and a light emitting diode that are successively and serially connected, and an input power supply is input via a P1 port and is connected with the anode of each rectifier diode. The system completes the lamp on and off of the rest time, the time display, the circuit resetting, and the temperature monitoring based on the design of a single-chip microcomputer controlled multifunctional intelligent switch integrating rest time timing waking up and temperature monitoring alarm.

Description

A kind of intelligent switch system
Technical field
The invention belongs to field of intelligent control technology, be specifically related to a kind of intelligent switch system.
Background technology
In 20 end of the centurys, electronic technology obtains development at full speed, and under it promotes, modern electronic product has almost permeated society The every field of meeting, has effectively promoted development and the raising of social informatization degree of social productive forces, also makes the modern times simultaneously Electronic product performance improves further, and the rhythm of model change is more and more faster.
At present, single-chip microcomputer just towards high-performance and multi items direction development trend will be further towards CMOSization, low merit Several aspects development such as consumption, small size, Large Copacity, high-performance, low price and peripheral circuit built-inization.The master of single-chip microcomputer is presented herein below Want development trend.
The significance of single chip application also resides in, and it fundamentally changes traditional Control System Design thought and sets Meter method.In the past the most software can must be passed through with single-chip microcomputer by analog circuit or most of function of digital circuit Method achieves.This software replace hardware control technology be also referred to as Micro-control Technology, be Traditional control technology once Revolution.
Intelligent switch be the most timing automatic warning, on time automatic ringing, temporal sequence automatically control, fixed time broadcast, from Move and closed electric light, time switch baking oven, break-make power-equipment, air-conditioning regulation and control, electric automatically the enabling of the most various timing.
Therefore, study intelligent switch and expand its application, having the most real meaning.
Summary of the invention
For the deficiencies in the prior art, it is an object of the invention to provide a kind of intelligent switch system, it is achieved that based on monolithic The daily schedule timing wake-up of machine control and the design of monitoring temperature warning Multifunctional intelligent switch.
A kind of intelligent switch system, described intelligent switch system includes the display electricity being connected respectively with CPU Give the correct time in road, relay switch circuit, buzzer, power circuit part, reset circuit and temperature collection circuit, described display circuit bag Including at least No. one display circuit, every road display circuit includes commutation diode, current-limiting resistance and the light emitting diode being sequentially connected in series, Input power is inputted by P1 port and positive pole with each commutation diode is connected respectively.
Preferably, described CPU is AT89C52 single-chip microcomputer.
Preferably, described temperature collection circuit uses digital temperature chip DS18B20 to measure temperature, and output signal is digital Change.
Preferably, described display circuit includes that MAX7219 and two 4 Digital sum pipes are constituted.
Technical scheme has the advantages that
A kind of intelligent switch system that the present invention provides, based on monolithic processor controlled daily schedule timing wake-up and monitoring temperature report The design of alert Multifunctional intelligent switch, completes the lamp opening and closing during daily schedule, time showing, reset circuit and Monitoring to temperature, wherein unique display circuit increases diode displaying dress in each loop that power supply exports Put, there is the duty that can be clearly seen that each road, electric power thus supplied can be known in time, accurately and rapidly, it is simple to and Shi Faxian fault, fixes a breakdown in time, saves the fault inquiry time, improves work efficiency, saves manpower, financial resources, material resources etc. excellent Point.
Accompanying drawing explanation
Below by drawings and Examples, technical scheme is described in further detail.
Fig. 1 is the system architecture diagram of the present invention a kind of intelligent switch system.
Detailed description of the invention
In order to have a clear understanding of technical scheme, its detailed structure be will be set forth in the description that follows.Obviously, originally The concrete also deficiency of implementing of inventive embodiments is limited to the specific details that those skilled in the art is familiar with.The present invention's is preferred real Execute example to be described in detail as follows, in addition to these embodiments described in detail, it is also possible to there is other embodiments.
With embodiment, the present invention is described in further details below in conjunction with the accompanying drawings.
Whole intelligent switch circuit system can be divided into seven major parts: CPU (CPU), display circuit, power supply are electric Road part, reset circuit, temperature collection circuit, buzzer give the correct time, relay circuit, and described CPU is AT89C52 Single-chip microcomputer;Described temperature collection circuit uses digital temperature chip DS18B20 to measure temperature, and output signal is totally digitilized, described Display circuit includes that MAX7219 and two 4 Digital sum pipes are constituted.
In conjunction with Fig. 1, described intelligent switch system includes display circuit, the relay switch being connected respectively with CPU Circuit, buzzer give the correct time, power circuit part, reset circuit and temperature collection circuit, and described display circuit includes at least one tunnel Display circuit, every road display circuit includes commutation diode, current-limiting resistance and the light emitting diode being sequentially connected in series, and input power leads to Cross the input of P1 port and respectively positive pole with each commutation diode be connected.
AT89C52 provides following standard feature: 8K byte FLASH flash memory, 256 byte inner RAM, 32 I/O mouth lines, and 3 Individual 16 bit timings/enumerator, one 6 vector two-stage interrupt structure, a full duplex serial communication port, sheet internal oscillator and clock Circuit.Meanwhile, AT89C52 can be down to the static logic operation of 0Hz, and supports two kinds of software optional power saving operation patterns.Empty Not busy mode stops CPU work, but allows RAM, and Timer/Counter, serial communication port and interruption system work on.Power-down mode Preserve the content in RAM, but agitator quits work and forbids that other all component workings are until next hardware reset.
Because single-chip microcomputer working power is+5V, and bottom circuit power consumption is the least.7805 three-terminal voltage-stabilizing sheets are used to meet Requirement.
Temperature sensor DS18B20 obtains collection from the diverse location collecting temperature of facility environment, single-chip computer AT89C52 Temperature value, obtains a more stable temperature value in current environment after treatment, further according to the current temperature bound set Value, is adjusted Current Temperatures by heating and cooling.When the temperature gathered exceedes the upper limit of design temperature after treatment, Single-chip microcomputer drives relay to open cooling system (air-conditioning) by audion, when the temperature gathered is after treatment higher than design temperature Upper time, single-chip microcomputer by audion drive relay open heating device (air-conditioning).
When owing to variation of ambient temperature is too acutely or owing to heating or cooling system break down, or Temperature probe goes out The when of in now fault causes the temperature that ambient temperature can not be adjusted within a period of time regulation to limit, single-chip microcomputer passes through three poles Pipe drives speaker to send police whistle sound.
Native system arranges 5 buttons, respectively stepping selection, add-substract key, mode selecting key, movement by the way of interruption Key and mode switching key, it is achieved the manual setting of temperature bound, and to the typing of bound temperature, the inquiry of historical temperature Switch with system model.
For realizing the Based Intelligent Control to temperature, it is upper and lower that native system also supports to preset one group of temperature changed over and change Limit, controls ambient temperature and changes over and constantly adjust, and reaches to allow ambient temperature follow the change of predetermined temperature value Effect, thus the change limit realizing ambient temperature controls.
Operation principle is as follows: the frequency of oscillation temperature influence of DS18B20 low-temperature coefficient crystal oscillator is the least, is used for producing intrinsic The pulse signal of frequency gives enumerator 1;High temperature coefficient crystal oscillator varies with temperature its oscillation rate and changes substantially, and the signal of generation is made Pulse for enumerator 2 inputs.Enumerator 1 is preset at-55 DEG C of corresponding base value with temperature register.Enumerator 1 The pulse signal producing low-temperature coefficient crystal oscillator enters subtraction numeration, when the preset value of enumerator 1 reduces to 0, temperature register Value will add 1, and the value of enumerator 2 subtracts 1;Reload the preset value of enumerator 1 again, then restart low-temperature coefficient crystal oscillator The pulse signal produced counts, and so circulation is until enumerator 2 counts after 0, stops the cumulative of temperature register value, this Time temperature register in numerical value be dut temperature value.
Host computer control DS18B20 completes temperature transition and needs initialized, ROM operational order, memory operation instruction three Instruction.Crystal oscillator frequency used by Single Chip Microcomputer (SCM) system is 6MHz, according to the initialization sequential of DS18B20, writes sequential and reads sequential, point Do not write 3 subprograms.All of reading and writing data is started by lowest order, adds the pull-up resistor of 4.3kQ on the data line, other 2 foot ground connection.Owing to using single bus data transmission means, data I/O of DS18B20 are completed by the same line, therefore, right The time sequential routine of read-write requires strict.For the I/O sequential of strict guarantee DS18B20, need to do more accurate time delay.? In DS18B820 operation, the time delay used has 15 μ s, 90 μ s, 270 μ s, 540 μ s.
When the temperature gathered exceedes the set point of temperature upper limit after treatment, single-chip microcomputer is driven by P1.4 output control signal Audion D1, makes relay K 1 open cooling system (air-conditioning): when the temperature gathered is after treatment higher than design temperature lower limit, Single-chip microcomputer drives audion D2 by P1.5 output control signal, makes relay K 2 open cooling system (air-conditioning).
Display part is made up of MAX7219 and two 4 Digital sum pipes, and specific works principle is as follows: display driver MAX7219 is the common cathode LED display driver of highly integrated serial input/output, and every can drive 87 sections to add decimal The common cathode charactron of point, can cascade with several pieces, need only 3 lines [8] with being connected of microprocessor.MAX7219 has been internally integrated Binary-coded decimal decoder, many bit scan circuit, segment decoder, bit driver and for deposit the 8 × 8 of each data bit static RAM with And each work register, different work registers is set by instruction, MAX7219 can be made to enter different duties [7].The transfer rate of serial line interface is up to 10MHz: independent light-emitting diodes pipeline section controls: decoding and two kinds of display sides of non-decoding Formula is optional;Numeral and two kinds of brilliance control modes of simulation;Use can be cascaded.Native system uses serial port to transmit to MAX7219 Data, display uses any 3 ports that are connected by of 8 LEDMAX7219 with 89C52 single-chip microcomputers to be connected.System is in display temperature Before degree, first entering to initialize to display unit, i.e. show pattern, scanning figure place, display brightness, display control, and then display are delayed The data to be displayed rushing in district 8 bytes delivers to the internal storage of MAX7219, transmits number by serial port to display unit According to, and combine P2.6 to MAX7219 transmission loading signal.
This system is provided with five buttons, is Schema control key (MOD), plus key (ADD) respectively, subtracts key (SUB), stepping control Key processed (BUJIIN) and amendment shift key (MOVE), MOVE, ADD, SUB, BUJIN connect respectively single-chip microcomputer AT89S52P1.7, P1.6, P1.1, P2.5I/O mouth, and use a piece of 74LS04, it is then connected to after the input signal elder generation "AND" of MOVE, ADD, SUB P3.3 (INT1) mouth of AT89S52, MOD key-press input signal is directly connected to P3.2 (INTO) mouth of AT89S51.System works Time, button MOD is circulated switching to the mode of operation of system, when system is in mode of operation for the moment, is selected by BUJIN key Adjust the stepping amplitude of bound, by ADD, SUBB key, bound can be added simultaneously, subtract adjustment: when system is in pattern When two, system enters temperature control status, does not allow to carry out pattern switching when system is in and heats or lower the temperature state: work as system During the pattern three of being in, by ADD and SUBB key historical temperature carried out on turn over and under thumb inquiry.
Reset circuit, when the reset pin RST (full name RESET) of MCS-5l series monolithic occur 2 machine cycles with On high level time, single-chip microcomputer be carried out reset operation.If RST is continuously high level, single-chip microcomputer is at cycle reset shape State.According to the requirement of application, the operation that resets generally has two kinds of primitive forms: electrification reset and power on or switch reset.On reply by cable After position requires to switch on power, it is automatically obtained reset operation.
Clock circuit: necessary clock signal when clock circuit is used to produce the work of AT89C52 single-chip microcomputer, An AT89C52 inherently complicated synchronizing sequential circuit, for ensureing the realization of working method, AT89C52 is when unique The instruction of execution chronologically strict under the control of clock signal is operated, and the speed of the frequency influence single-chip microcomputer of clock is with stable Property.Generally clock is due to two kinds of forms: internal clocking and external clock.Our system uses internal clocking mode to carry for system For have inside clock signal AT89C52 one for the high-gain sign-changing amplifier constituting agitator, the input of this amplifier is defeated Going out pin is XTAL1 and XTAL2, and they are connected across crystal oscillator and the electric capacity for fine setting, just constitute an autoexcitation Agitator.
The selection of C1, C2 in circuit is at about 30PF, but electric capacity is the least can affect the frequency of vibration, stability and quickly Property.Crystal oscillator frequency is between 1.2MHZ~12MHZ, and the speed of the highest single-chip microcomputer of frequency is the fastest, but wants memory speed Ask the highest.In order to improve stability, we use the NPO electric capacity that temperature stability is good, and the crystal oscillator frequency of employing is 12MHZ.
Clock circuit: necessary clock signal when clock circuit is used to produce the work of AT89C52 single-chip microcomputer, An AT89C52 inherently complicated synchronizing sequential circuit, for ensureing the realization of working method, AT89C52 is when unique The instruction of execution chronologically strict under the control of clock signal is operated, and the speed of the frequency influence single-chip microcomputer of clock is with stable Property.Generally clock is due to two kinds of forms: internal clocking and external clock.
Our system uses internal clocking mode to provide for system has one for constituting inside clock signal AT89C52 The high-gain sign-changing amplifier of agitator, the input and output pin of this amplifier is XTAL1 and XTAL2, and they are connected across crystal Agitator and the electric capacity for fine setting, just constitute a self-excited oscillation device;The selection of C1, C2 in circuit is left at 30PF The right side, but electric capacity is the least can affect the frequency of vibration, stability and rapidity.Crystal oscillator frequency is between 1.2MHZ~12MHZ, frequently The speed of the highest single-chip microcomputer of rate is the fastest, but requires memory speed the highest.In order to improve stability, we use temperature steady Qualitative good NPO electric capacity, the crystal oscillator frequency of employing is 12MHZ.
Speech chronopher circuit: active buzzer internal band concussion source directly connects rated power supply just can sounding continuously;And nothing Source buzzer is then the same with magnetic speaker, internal without concussion source, it cannot be made to pipe with direct current signal, it is necessary to 2K ~ 5K Square wave go to drive it, and need to be connected in audio output circuit could sounding, its hardware circuit is more complicated.Active single The direct low and high level of the common I/O port of sheet machine drives, if your one-chip machine port driving force can also be driven with audion not Dynamic, program is the simplest.Wanting frequency to drive if passive, different frequency driving can send different sound.In I/O selection preferably Select the I/O output of intervalometer, PWM output or other convenient ports generating different frequency output.Program is the most complicated, sees monolithic Machine the most convenient programming output frequency signal.For these reasons, active buzzer is best selection.
A kind of intelligent switch system that the present invention provides, supervises based on monolithic processor controlled daily schedule timing wake-up and temperature The design of control warning Multifunctional intelligent switch, completes the lamp opening and closing during daily schedule, time showing, reset circuit And the monitoring to temperature, wherein unique display circuit increases diode displaying in each loop that power supply exports Device, has the duty that can be clearly seen that each road, can know electric power thus supplied in time, accurately and rapidly, it is simple to Find fault in time, fix a breakdown in time, save the fault inquiry time, improve work efficiency, save manpower, financial resources, material resources etc. Advantage.
Finally should be noted that: above example is only in order to illustrate that technical scheme is not intended to limit, to the greatest extent The present invention has been described in detail by pipe with reference to above-described embodiment, and those of ordinary skill in the field still can be to this Bright detailed description of the invention is modified or equivalent, these without departing from spirit and scope of the invention any amendment or Equivalent, all within the claims that application is awaited the reply.

Claims (4)

1. an intelligent switch system, it is characterised in that described intelligent switch system includes being connected with CPU respectively Display circuit, relay switch circuit, buzzer give the correct time, power circuit part, reset circuit and temperature collection circuit, described aobvious Show commutation diode, current-limiting resistance that circuit includes that at least No. one display circuit, every road display circuit include being sequentially connected in series and send out Optical diode, input power is inputted by P1 port and positive pole with each commutation diode is connected respectively.
Intelligent switch system the most according to claim 1, it is characterised in that described CPU is that AT89C52 is mono- Sheet machine.
Intelligent switch system the most according to claim 1, it is characterised in that described temperature collection circuit uses digital temperature Chip DS18B20 measures temperature, output signal total digitalization.
Intelligent switch system the most according to claim 1, it is characterised in that described display circuit includes MAX7219 and two Individual 4 Digital sum pipes are constituted.
CN201610484517.1A 2016-06-28 2016-06-28 Intelligent switch system Pending CN106054720A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610484517.1A CN106054720A (en) 2016-06-28 2016-06-28 Intelligent switch system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610484517.1A CN106054720A (en) 2016-06-28 2016-06-28 Intelligent switch system

Publications (1)

Publication Number Publication Date
CN106054720A true CN106054720A (en) 2016-10-26

Family

ID=57165828

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610484517.1A Pending CN106054720A (en) 2016-06-28 2016-06-28 Intelligent switch system

Country Status (1)

Country Link
CN (1) CN106054720A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5132681A (en) * 1989-07-05 1992-07-21 Ryoichi Yabe Intelligent switch system
CN2535984Y (en) * 2002-04-01 2003-02-12 但红跃 Wireless auto-dial alarming device
CN201119069Y (en) * 2007-11-13 2008-09-17 昆明理工大学 Intelligent control device for classroom light and air-conditioner
CN202183056U (en) * 2011-08-22 2012-04-04 程智龙 Digital display type intelligent temperature controller
CN202563782U (en) * 2012-05-22 2012-11-28 浙江师范大学 Singlechip experiment teaching development system
CN203116232U (en) * 2013-03-07 2013-08-07 甘肃省中医院 Air conditioner self-starting device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5132681A (en) * 1989-07-05 1992-07-21 Ryoichi Yabe Intelligent switch system
CN2535984Y (en) * 2002-04-01 2003-02-12 但红跃 Wireless auto-dial alarming device
CN201119069Y (en) * 2007-11-13 2008-09-17 昆明理工大学 Intelligent control device for classroom light and air-conditioner
CN202183056U (en) * 2011-08-22 2012-04-04 程智龙 Digital display type intelligent temperature controller
CN202563782U (en) * 2012-05-22 2012-11-28 浙江师范大学 Singlechip experiment teaching development system
CN203116232U (en) * 2013-03-07 2013-08-07 甘肃省中医院 Air conditioner self-starting device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
付先成 华中科技大学出版社: "《单片机原理与C语言程序设计》", 31 August 2015 *
电脑报 电脑报电子音像出版社: "《液晶显示器维修手册》", 30 September 2009 *

Similar Documents

Publication Publication Date Title
TWI317468B (en) Method for controlling power consumption and multi-processor system using the same
CN205334734U (en) Traffic light intelligent control device based on singlechip
CN201569497U (en) Control system for temperature measurement and alarm
CN107608256A (en) A kind of SCM Based intelligence is dried in the air clothing system
CN200990087Y (en) Eight-bit simple instruction set micro-controller
CN106154910A (en) A kind of intelligent switch system
CN205068285U (en) Intelligence computer cooling system
CN202958031U (en) New type intelligent and energy-saving controller of LED (Light Emitting Diode) desk lamp
CN106054720A (en) Intelligent switch system
CN105766689A (en) Intelligent necklace for pet cat
CN106054721A (en) Intelligent switch system
CN106094627A (en) A kind of intelligent switch system
CN106054769A (en) Intelligent switch system
CN203490567U (en) Intelligent control circuit of breeding environment
CN105161044A (en) Display unit scanning driving method in electric appliance terminal control panel
CN105929758A (en) Smart switch system
CN105929759A (en) Smart switch system
CN105892380A (en) Intelligent switch system
CN203216454U (en) Low-power consumption wireless electronic ruler
CN206803431U (en) A kind of air-conditioning remote control based on Bluetooth technology
CN202363099U (en) Electronic music box
CN202143261U (en) Display device of LED water lamp
CN204791712U (en) Experimental development board based on singlechip
CN214586569U (en) Liquid level control system
CN2791760Y (en) Device with timed prompting for keeping night watch and portol

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20161026