CN106054710B - eating house intelligent control system - Google Patents

eating house intelligent control system Download PDF

Info

Publication number
CN106054710B
CN106054710B CN201610447740.9A CN201610447740A CN106054710B CN 106054710 B CN106054710 B CN 106054710B CN 201610447740 A CN201610447740 A CN 201610447740A CN 106054710 B CN106054710 B CN 106054710B
Authority
CN
China
Prior art keywords
cycle
time
signal
voltage
timing
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.)
Active
Application number
CN201610447740.9A
Other languages
Chinese (zh)
Other versions
CN106054710A (en
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.)
Xuzhou Bochuang Construction Development Group Co.,Ltd.
Original Assignee
Fuzhou Alignment Mdt Infotech 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 Fuzhou Alignment Mdt Infotech Ltd filed Critical Fuzhou Alignment Mdt Infotech Ltd
Priority to CN201610447740.9A priority Critical patent/CN106054710B/en
Publication of CN106054710A publication Critical patent/CN106054710A/en
Application granted granted Critical
Publication of CN106054710B publication Critical patent/CN106054710B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/24Pc safety
    • G05B2219/24215Scada supervisory control and data acquisition

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The present invention relates to a kind of eating house intelligent control systems, include multiple appliance controllers and a main controller.Cycle discriminator circuit is respectively mounted in main controller and each appliance controller, synchronization time for generation system keeps system acting consistent, eating house is installed by the remote control that one babyphone programme-controlled exchange is used for electric appliance, interchanger sends the digital signal for receiving instruction code to main controller through interface circuit, executes corresponding operating after being decoded by main controller.

Description

Eating house intelligent control system
(1) technical field:
The present invention relates to a kind of eating house intelligent control systems, include multiple appliance controllers and a main controller.? It is respectively mounted cycle discriminator circuit in main controller and each appliance controller, the synchronization time for generation system keeps system acting Unanimously, the remote control that a babyphone programme-controlled exchange is used for electric appliance is installed in eating house, and interchanger will receive the number of instruction code Word signal interface circuit sends main controller to, executes corresponding operating after being decoded by main controller.
(2) background technique:
The control system of power supply is provided by power network, each electronic equipment or intermodule are communicated by special circuit, The timing time of each electronic equipment or electronic module is corrected, reaches synchronous operation purpose.Due to being made using special circuit communication Wiring complicates and increases cost, if timing time is not corrected by line traffic, due to traditional timing error, runs number After hour, accumulation timing error can make system control action inconsistent, may cause system crash, set in some frequent changes Meter, its products application of the big occasion of wiring installation amount are restricted.
(3) summary of the invention:
It, can in winter or summer shopkeeper using mobile phone passes through telephone network the present invention relates to eating house intelligent control system Water heater or air-conditioning are opened, in advance convenient for rapid wash vegetables and reception customer.It includes multiple appliance controllers and a main controller. Miniature circuit breaker is switched comprising multichannel independent air on the main switchboard of eating house, it is guide tracked installation and presser type wiring reconfiguration Convenient, each air switch control electric appliance load all the way needs to select an air switch according to system, air switch it One electronic switch, the electronic switch parallel connection isolating diode are installed afterwards.It is respectively mounted in main controller and each appliance controller Cycle discriminator circuit, the synchronization time for generation system keeps system acting consistent, while respectively installing in its telecommunication circuit One communications electronics switch, switch drive module.When communication, main controller shutdown electronic switch simultaneously connects its communications electronics switch, Alternating current is sent into system through isolating diode, system uses half wave communication and half-wave power supply through power line, each appliance controller When can't detect power network and be isolated the half-wave signa of diode blocking, that is, turns off its electric appliance load power supply, connect communication electricity Sub switch;Conversely, main controller first sends switching command, shutdown communication to each appliance controller before being switched to all-wave from half-wave Electronic switch.The output of each appliance controller is serially connected with the circuit of former socket or switch through Phototube Coupling and bidirectional triode thyristor In, realize that it loads the control of energized power and time, and change design conveniently, without broken wall paper line.
The switch drive module of communications electronics switch is to divide two-way after resistance is depressured from electric power cable, is used for each electricity all the way Device controller, the single-chip processor i/o mouth that it is connected to each appliance controller through being reversely connected diode are negative to cycle in clock timer timing When half-wave, the I/O mouthfuls is scanned, if being in half-wave communications status without signal, that is, system;Another way is used for each electrical equipment control Device and main controller, therebetween communication are by being controlled synchronization time to be kept for communication operation long-term consistent, which connects diode After the negative half-wave of cycle further is isolated, it is connected to comparator input terminal, reference voltage is 100Mv to 200Mv, using diode Pressure drop is obtained through electric resistance partial pressure, therefore the output end of comparator is square-wave signal, it is produced after the diode-isolated just connect The positive square-wave signal of the corresponding negative half-wave of power network cycle, is connected to I/O mouth of single-chip microcontroller, and single-chip microcontroller is held when scanning to positive square-wave signal Row traffic operation, the positive square-wave signal are also used to that communications electronics is driven to switch, therefore communications electronics switch is in cycle positive half-wave Shutdown, when cycle negative half-wave, connect.Communications electronics switch is connected to single-chip microcontroller corresponding port according to used communication mode, and carries out letter Number conditioning makes driving circuit shutdown communications electronics switch when sign off under main controller control.
System installs a babyphone programme-controlled exchange, and one of extension number is used for appliance remote control.The extension number It is stored in mobile phone with instruction code and the table of comparisons of instruction, and prevents the data of instruction code from letting out with the methods of screen-lock password It is close.When communication, owner sends the number of instruction code from base or mobile phone, and interchanger is decoded after caller dialing by dual-tone multifrequency After device obtains the extension set calling telephone number, off-hook is simulated, and keep dual-tone multifrequency reception state, to receive instruction code letter Number, it can such as be sent out with mobile phone: " exchange telephone number " P " number of instruction code ", wherein " P " can pin mobile phone simulating keyboard * key obtain, loom be * key 2-3 times is pressed to obtain, or wait interchanger solidify voice prompting in the chips after key in again Instruction code, after sign off, interchanger sends the digital signal for receiving instruction code to main controller through interface circuit, by leading Corresponding operating is executed after control device decoding.
The present invention utilizes the positive half cycle ascent stage of power network cycle, and three examination point realizations is taken to sentence the identification of cycle signal It is fixed, recycle the cycle time to establish synchronization time, the synchronous operation of main controller and each appliance controller in realization system.
The cycle discriminator circuit structural schematic diagram of main controller and each appliance controller is as shown in Fig. 2, use hysteresis by three The voltage comparator of comparator forms, and includes filter circuit, the reference voltage of voltage comparator in each voltage comparator It is provided by voltage regulator circuit.Clock timer and synchrotimer is arranged in system.If detecting that two adjacent cycle signals are equal It is very, then to take out the clock timer timing time between two adjacent cycle signal zero passages, is sequentially stored in the cycle time In storage unit, which can store 100 cycle times, the one cycle time of every deposit when being filled with, The cycle time being stored at first is first removed, and calculates the average value Tz of the cycle time of deposit and saves, is reflected using Tz value Cycle signal not to be identified to reduce the influence of power network frequency fluctuation, while reducing erroneous judgement possibility using three examination points.
Three comparators are respectively used to three examination points, that is, screen point 0, screen point 1, screen point 2, as shown in Figure 1.In week At the cycle zero passage of wave positive half cycle ascent stage, that is, 0 setting voltage zero-crossing comparator of point is screened, due to power network cycle negative half period quilt Rectifier diode isolation, in order to improve detection accuracy, in the signal input part series diode isolation again of voltage zero-crossing comparator Negative half period, reference voltage is increased to 10mv to 100mv from zero, and depending on the offset voltage of comparator, which can benefit It is obtained with diode drop through electric resistance partial pressure.Remaining two comparator is separately positioned on cycle positive half cycle ascent stage, crest voltage 35% to 50% place examination point 1 and 50% to 70% place examination point 2.
Cycle signal determining: for single-chip microcontroller after setting time opens interruption, clock timer resets and starts timing, works as cycle When voltage zero-cross, the output voltage overturning for screening the voltage Zero-cross comparator Qi ﹙ V0 ﹚ of point 0 is set, is generated in its voltage failing edge It interrupts, records its zero crossing break period Th0 and the Central Shanxi Plain is disconnected;Hereafter, electricity pressure comparator ﹙ V1 ﹚ at point 1 is screened in single-chip microcontroller scanning Output voltage, when all wave voltages are reached to the threshold voltage of ﹙ V1 ﹚, output voltage is overturn from high to low, and scanning is when recording its overturning Between Th1;Same scanning record screens electricity at point 2 and presses comparator ﹙ V2 ﹚ output voltage flip-flop transition Th2.By Th0 and voltage zero-cross The output voltage flip-flop transition setting value Ts0 of Bi compare Qi ﹙ V0 ﹚ makes comparisons;The output voltage of Th1 and electricity pressure comparator ﹙ V1 ﹚ are overturn Time setting value Ts1 and Th2 makes comparisons respectively with the output voltage flip-flop transition setting value Ts2 of electricity pressure comparator ﹙ V2 ﹚, such as For fruit within the scope of allowable error, then otherwise it is false that the discriminator signal detected, which is true,.When above-mentioned judgement discriminator signal is true, Calculate the clock timer meter between cycle signal zero passage when this cycle signal zero passage and an adjacent preceding discriminator signal are true When time Tzu, it is made comparisons with the average value Tz of cycle time, if be no more than setting cycle time error Tzv if cycle Signal is very, at this moment to save Tzu and 20ms is taken to be added with synchrotimer timing time, the value deposit synchrotimer that will add up In.
When clock timer starts timing with cycle voltage zero-cross, then timing to 16ms opens the break period between 18.5ms Open interruption when setting value Tk, the Central Shanxi Plain is disconnected when clock timer timing to 25ms is to pass break period setting value Tn between 27ms.
After system boot, clock timer starts timing, and when detecting first cycle voltage zero-cross, setting is being screened The output voltage overturning of the voltage Zero-cross comparator Qi ﹙ V0 ﹚ of point 0 takes out the time T0 of cycle voltage over zero to generate interruption It saves, clock timer is reset to and started timing, at this moment cycle time voltage crosses zero Th0 is 0, while single-chip microcontroller presses above-mentioned side Method scans and determines discriminator signal.What it is due to detection is first cycle, and clock timer is started in cycle voltage zero-cross Timing, the value of Th0, Th1 and Th2 must subtract open the difference of break period setting value Tk plus cycle time 20ms, if Three discriminator signals are that very, the time T0 of the cycle voltage over zero of taking-up is stored in synchrotimer as initial time, under It is primary to open the break period for the first time and take Tk.It otherwise is fictitious time, the clock timer time must add T0 at this time, continue to test.
When detecting first and adjacent second cycle voltage zero-cross, due to not saving the cycle time of detection, Therefore the clock timer timing time twice between cycle signal zero passage is made comparisons with cycle time 20ms, determines cycle signal Then it is that the difference for taking 20ms to subtract Th0 is added with synchrotimer timing time when being true, i.e., saves the standard cycle time for the first time 20ms need to deduct its Th0 value, this is because when hereafter detecting that cycle signal is true every time, when opening interruption by clock meter When device reset after restart timing, and be that the standard cycle time is included in synchrotimer when opening interruption, open interruption Clock timer is reset afterwards, otherwise determines that cycle signal is fictitious time, and the clock timer time must add T1=T0+Tk at this time, after It is continuous to detect first cycle again according to the above method.After detecting first cycle signal is very, restore above-described cycle Signal determining.
As shown in Figure 1, if detect cycle signal be it is false, open the break period next time and open the break period at this Afterwards, open interruptions when average value Tz through the cycle time that is delayed, and open interrupt after be delayed Tns when the Central Shanxi Plain it is disconnected, when the setting Central Shanxi Plain is broken Between be when cycle signal screen point 0 when do not generate interruption, at this moment must be in the setting time point more than Ts0 allowable error range Start to scan, and when scanning examination point 1 and examination point 2, voltage comparator output voltage does not generate overturning, all breaks in the Central Shanxi Plain The time Tns Central Shanxi Plain is disconnected and stops scanning, Tns are as follows:
Tns=Tn-Tk
If detecting that cycle signal is very, next cycle opens break period Tks are as follows:
Tks=Tk+Th0
I.e. from being opened after the break period takes Tk for the first time, clock timer is that timing to Tks opens interruption, and weight after resetting New to start timing, the Central Shanxi Plain is broken when Tns is arrived in timing, to make the synchrotimer time by the correction of cycle time voltage crosses zero.
It repeats the above process.If the upper cycle signal detected is that very, when this cycle determines, discriminator signal is Vacation, or the cycle time detected is more than setting cycle time error Tzv or clock meter compared with the average value Tz of cycle time When device timing to when closing break period setting value Tns, voltage Zero-cross comparator device ﹙ V0 ﹚ output voltage do not overturn, does not generate Disconnected, then when Tns is arrived in clock timer timing, the Central Shanxi Plain is disconnected, at this moment remembers and does not count cycle N 1 and to store, when opening interruption next time Between be to open the break period in last time to open interruption after Tz, clock timer open interrupt after reset and timing, when timing is to Tns The Central Shanxi Plain is disconnected, hereafter determines the cycle signal true and false every time, though if false or this detection discriminator signal be true last time be it is false, then take N will be restored in memory after N+1.
When it is true for detecting cycle signal, then takes out N in memory and save, and by N zero setting in memory, and restore to make With setting value Tks, the value of (N+1) × 20ms is at this moment taken to be added in synchrotimer.
System synchronization time is the time of synchrotimer, along with currently just in the time of the clock timer of timing.
When determining to screen the point signal true and false, Th0, Th1, Th2 are by setting with voltage comparator output voltage flip-flop transition Definite value Ts0, Ts1, Ts2 make comparisons see it is whether overproof, come determine screen point a signal true and false, can choose: Th0, Th1, Th2 are It is true that the cycle discriminator signal, which is true or Th0, when true, while when one of Th1, Th2 are true or when Th1, Th2 are true, should Cycle discriminator signal is very, depending on to determining that cycle signal true and false difference requires.
If system fault, when N be greater than 25 to 70 between a setting value when, due to main controller in system and each electric appliance Controller, the Tz value and N value of detection may be different, at this moment, power network frequency accumulated error, when may cause synchrotimer Between corrected when can not be by detecting true cycle signal, when it is true for detecting cycle signal, at this moment use clock meter When device accumulative clocking value be directly added in synchrotimer, to reduce the asynchronous time of system, add up clocking value be N × Tz +20ms.N is much smaller than 25 in the case of power network normal operation.
The cycle time error Tzv of permission and the flip-flop transition setting value of voltage comparator output voltage, by test assessment Its average value is taken to obtain.
(4) Detailed description of the invention:
Fig. 1 is that cycle screens data relationship schematic diagram;
Fig. 2 is cycle discriminator circuit structural schematic diagram;
Fig. 3 is the circuit structure block diagram of eating house intelligent control system.
(5) specific embodiment:
Fig. 3 is that eating house intelligent control system circuit structure block diagram includes: 10 ﹚ of Zhu Kong Qi ﹙, communications electronics Kai Guan ﹙ 11 ﹚, ﹚, Jie mouthfuls of 13 ﹚ of electricity Lu ﹙ of switch Qu dynamic model Kuai ﹙ 12,14 ﹚ of babyphone Cheng Kong Jiao Huan Ji ﹙, 15 ﹚ of electricity Qi ﹙, cycle screen electricity 16 ﹚, electricity device Kong Qi ﹙ of Lu ﹙, 17 ﹚, 18 ﹚ of electricity Kai Guan ﹙.Wherein 11 ﹚ of communications electronics Kai Guan ﹙, 12 ﹚ of switch Qu dynamic model Kuai ﹙, cycle It screens list piece machine ﹙ U0 ﹚ in electricity road ﹙ 16 ﹚ and Fig. 2 to be separately contained in electric 17 ﹚ of device control device ﹙ and main 10 ﹚ of control device ﹙, electronic cutting 18 ﹚ of Guan ﹙, 11 ﹚ of communications electronics Kai Guan ﹙ use bidirectional triode thyristor as switch, 15 ﹚ of electricity Qi ﹙ refer to be connected to it is original in switching circuit Electric appliance.
Fig. 2 is the structural schematic diagram that cycle screens 16 ﹚ of electricity Lu ﹙, by: Shu enters electricity Lu ﹙ S0 ﹚, voltage zero-cross Jian and surveys Mo Kuai ﹙ V0 ﹚, electricity pressure comparator ﹙ V1 ﹚ and electricity pressure comparator ﹙ V2 ﹚ are constituted.Dan Pian Ji ﹙ U0 ﹚ refers to 17 ﹚ and Zhu Kong Qi ﹙ of electricity device Kong Qi ﹙ Single-chip microcontroller in 10 ﹚.Shu enters electricity Lu ﹙ S0 ﹚ for mains AC voltage to be passed through to the partial pressure of resistance and diode, is converted to electricity The input voltage for pressing comparator suitably stable.Dan Pian Ji ﹙ U0 ﹚ uses 89C55WD, voltage zero-cross Jian to survey Mo Kuai ﹙ V0 ﹚, voltage Than using dedicated voltage comparator LM339 compared with device ﹙ V1 ﹚, electricity pressure comparator ﹙ V2 ﹚, reference voltage is using voltage-stabiliser tube Voltage regulator circuit carrys out the threshold voltage of burning voltage comparator.
When mains AC voltage cycle signal zero passage, voltage zero-cross Jian surveys the output voltage jump of Mo Kuai ﹙ V0 ﹚, single Pian Ji ﹙ U0 ﹚ generates interruption, records the break period, while Dan Pian Ji ﹙ U0 ﹚ is also used to scanning voltage Bi compare Qi ﹙ V1 ﹚ and voltage ratio The output voltage of compare Qi ﹙ V2 ﹚ records bound-time when output voltage jump, produces for determining power network cycle signal Raw synchronization time.
Microprocessor AT89C2051 in Jie mouthfuls of 13 ﹚ of electricity Lu ﹙ is equipped with I2C serial communication module, between main controller into Row communication, EEPRAM is for saving data.When communication, from cell-phone function interface select institute must a code, by telephone network to small Type telephone exchanger sends data, after main controller receives relevant character string, is translated into corresponding function and carries out Control or communication.

Claims (2)

1. a kind of eating house intelligent control system, characterized in that install an electronic switch, the electronics after air switch Switch in parallel isolating diode is respectively mounted cycle discriminator circuit in main controller and each appliance controller, is used for generation system Synchronization time, while communications electronics switch, a switch drive module being respectively installed in telecommunication circuit, system is used through electric power Half wave communication and half-wave of line are powered, and each appliance controller is also in the half-wave letter that can't detect power network and be isolated diode blocking Number when, that is, turn off its electric appliance load power supply, connect communications electronics switch;The output of each appliance controller is through Phototube Coupling and double It is serially connected in former socket or switching circuit to silicon-controlled, realizes that it loads the control of energized power and time;
The switch drive module of communications electronics switch is to divide two-way after resistance is depressured from electric power cable, is used for each electric appliance control all the way Device processed, the single-chip processor i/o mouth for being connected to each appliance controller through being reversely connected diode, in clock timer timing to the negative half-wave of cycle When, the I/O mouthfuls is scanned, if being in half-wave communications status without signal, that is, system;Another way is used for each appliance controller and master Control device, which connects after the negative half-wave of cycle is further isolated in diode, is connected to comparator input terminal, reference voltage is 100Mv to 200Mv is obtained using diode drop through electric resistance partial pressure, therefore the output end of comparator is square-wave signal, is just being connect Diode-isolated after produce the positive square-wave signal of the corresponding negative half-wave of power network cycle, be connected to the I/O mouth of single-chip microcontroller, single-chip microcontroller Traffic operation is executed when scanning positive square-wave signal, which is also used to that communications electronics is driven to switch;System installation one One of extension number is used for appliance remote control by platform babyphone programme-controlled exchange, the extension number and instruction code and instruction The table of comparisons is stored in mobile phone, and owner sends the number of instruction code from base or mobile phone, and interchanger will receive instruction code Digital signal sends main controller to through interface circuit, executes corresponding operating after being decoded by main controller;
Cycle discriminator circuit is the positive half cycle ascent stage using power network cycle, takes three to screen knowledge of the point realization to cycle signal Do not determine, recycle the cycle time to establish synchronization time, clock timer and synchrotimer is arranged in system, if detecting phase Two adjacent cycle signals are very, then when taking out the clock timer timing between two adjacent cycle signal zero passages Between, it is sequentially stored in cycle time memory cell, is filled with the one cycle time of every deposit when 100 cycle time, first removes The cycle time being stored at first, and calculate the average value Tz of the cycle time of deposit and save, identified using Tz value wait know Other cycle signal;
Three comparators are respectively used to three examination points, that is, screen point 0, screen point 1, screen point 2, in the cycle positive half cycle ascent stage Cycle zero passage at, that is, screen point 0 setting a voltage zero-crossing comparator, concatenate two again in the signal input part of voltage zero-crossing comparator Negative half period is isolated in pole pipe, and reference voltage is 10mv to 100mv, and depending on the offset voltage of comparator, which is utilized Diode drop is obtained through electric resistance partial pressure, remaining two comparator is separately positioned on the cycle positive half cycle ascent stage, crest voltage The examination point 2 of the examination point 1 and 50% to 70% place at 35% to 50% place;
Cycle signal determining process: for single-chip microcontroller after setting time opens interruption, clock timer resets and starts timing, works as cycle When voltage zero-cross, the output voltage overturning for the voltage zero-crossing comparator for screening point 0 is set, in the generation of its voltage failing edge It is disconnected, it records its zero crossing break period Th0 and the Central Shanxi Plain is disconnected;Hereafter, single-chip microcontroller scanning screen point 1 at electricity pressure comparator ﹙ V1 ﹚ it is defeated Voltage out, when all wave voltages reach the threshold voltage of electricity pressure comparator ﹙ V1 ﹚, output voltage is overturn from high to low, scanning record Its flip-flop transition Th1;Same scanning record screens the flip-flop transition Th2 of electricity pressure comparator ﹙ V2 ﹚ output voltage at point 2, if institute Flip-flop transition is stated within the scope of allowable error, then otherwise it is vacation that the discriminator signal detected, which is true, above-mentioned judgement discriminator signal is When true, the clock timing between cycle signal zero passage when this cycle signal zero passage and an adjacent preceding discriminator signal are true is calculated Device timing time Tzu makes comparisons it with the average value Tz of cycle time, if being no more than setting cycle time error Tzv Cycle signal is very, at this moment to save Tzu and 20ms is taken to be added with synchrotimer timing time, the value deposit synchronometer that will add up When device in;
When clock timer starts timing with cycle voltage zero-cross, then timing to 16ms opens break period setting between 18.5ms Open interruption when value Tk, the Central Shanxi Plain is disconnected when clock timer timing to 25ms is to pass break period setting value Tn between 27ms;
When detecting first cycle voltage zero-cross, the output voltage overturning for the voltage zero-crossing comparator for screening point 0 is set, To generate interruption, time T0 for taking out cycle voltage over zero is saved, and clock timer is reset to and started timing, at this moment all Wave voltage zero-crossing timing Th0 is 0, and single-chip microcontroller scans and determine discriminator signal, and the value of Th0, Th1 and Th2 must add cycle Time 20ms subtracts out the difference of break period setting value Tk, if three discriminator signals are true, the cycle voltage zero-cross of taking-up Otherwise the time T0 of point has one as in initial time deposit synchrotimer, being next time to open the break period for the first time to take Tk A discriminator signal is fictitious time, and the clock timer time must add T0 at this time, is continued to test;
It is then that 20ms is taken to subtract when determining that cycle signal is true when detecting first and second adjacent cycle voltage zero-cross The difference of Th0 is added with synchrotimer timing time, and clock timer is reset after opening interruption, otherwise determines that cycle signal is false When, the clock timer time must add T1=T0+Tk at this time, first cycle be detected again, when first cycle signal of detection Be very after, restore above-described cycle signal determining;
If detecting that cycle signal is vacation, the break period is opened next time after this opens the break period, when through delay cycle Between average value Tz when open interruption, and open interrupt after be delayed Tns when the Central Shanxi Plain it is disconnected, it is when cycle signal is discriminated that the break period is closed in setting Not Wei fictitious time to close the Central Shanxi Plain break period Tns disconnected and stop scanning, Tns are as follows:
Tns=Tn-Tk
If detecting that cycle signal is very, next cycle opens break period Tks are as follows:
Tks=Tk+Th0
I.e. from being opened after the break period takes Tk for the first time, clock timer is that timing to Tks opens interruption, and opens again after resetting Beginning timing, the Central Shanxi Plain is disconnected when timing is to Tns, repeats above-mentioned cycle signal determining process, if the upper cycle letter detected Number be it is true, when this cycle determines, discriminator signal be it is false, then when Tns is arrived in clock timer timing, the Central Shanxi Plain is broken, and is at this moment remembered and is not counted week Wave number N is 1 and stores that opening the break period next time is to open the break period in last time to open interruption after Tz, and clock timer exists It is reset after opening interruption and timing, the Central Shanxi Plain is disconnected when Tns is arrived in timing, hereafter determines the cycle signal true and false every time, and if false or this is examined Though surveying, discriminator signal is true but last time is vacation, then takes N, will be restored in memory after N+1;
It when it is true for detecting cycle signal, then takes out in memory N and saves, and by N zero setting in memory, and restore using setting At this moment definite value Tks takes the value of (N+1) × 20ms to be added in synchrotimer;
System synchronization time is the time of synchrotimer, along with currently just in the time of the clock timer of timing;
When determining to screen the point signal true and false, select: the cycle discriminator signal is true when Th0, Th1, Th2 are true or Th0 is Very, when while one of Th1, Th2 are true or when Th1, Th2 are true, which is very, depending on to judgement cycle letter Depending on number true and false difference requires, if N be greater than 25 to 70 between a setting value when, using the accumulative clocking value of clock timer It is directly added in synchrotimer, adding up clocking value is N × Tz+20ms.
2. eating house intelligent control system according to claim 1, it is characterised in that include:
10 ﹚ of Zhu Kong Qi ﹙, 11 ﹚ of communications electronics Kai Guan ﹙, switch Qu dynamic model Kuai ﹙ 12 ﹚, Jie mouthfuls of 13 ﹚ of electricity Lu ﹙, the program-controlled friendships of babyphone 14 ﹚ of Huan Ji ﹙, cycle screen 16 ﹚, electricity device Kong Qi ﹙ of electricity Lu ﹙, 17 ﹚, 18 ﹚ of electricity Kai Guan ﹙, wherein Dan Pian Ji ﹙ U0 ﹚ and communication electricity Son opens pass 11 ﹚ of ﹙, switch drives 12 ﹚ of dynamic model block ﹙ and cycle screens 16 ﹚ of electricity road ﹙ and is separately contained in electric 17 ﹚ of device control device ﹙ and master control In 10 ﹚ of Qi ﹙;
Cycle screens electricity 16 ﹚ of road ﹙ and by: the road Shu Ru electricity ﹙ S0 ﹚, voltage zero-cross inspection surveys mould block ﹙ V0 ﹚, screens a point 1 electricity pressure comparator ﹙ V1 ﹚ is constituted with electricity pressure comparator ﹙ V2 ﹚ at point 2 is screened, and the road Shu Ru electricity ﹙ S0 ﹚ is for passing through resistance and two for mains AC voltage The partial pressure of pole pipe is converted to the suitably stable input voltage of voltage comparator;
Single-chip microcontroller in Jie mouthfuls of 13 ﹚ of electricity Lu ﹙ is equipped with I2C serial communication module, for being communicated between main controller, EEPRAM is for saving data.
CN201610447740.9A 2016-06-20 2016-06-20 eating house intelligent control system Active CN106054710B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610447740.9A CN106054710B (en) 2016-06-20 2016-06-20 eating house intelligent control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610447740.9A CN106054710B (en) 2016-06-20 2016-06-20 eating house intelligent control system

Publications (2)

Publication Number Publication Date
CN106054710A CN106054710A (en) 2016-10-26
CN106054710B true CN106054710B (en) 2018-12-04

Family

ID=57168675

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610447740.9A Active CN106054710B (en) 2016-06-20 2016-06-20 eating house intelligent control system

Country Status (1)

Country Link
CN (1) CN106054710B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4361273A (en) * 1981-02-25 1982-11-30 Levine Michael R Electronic humidity control
CN101447847A (en) * 2008-06-19 2009-06-03 张广涵 Method for time base determination of simple and convenient multi-node synchrosystem and system thereof
CN102571150A (en) * 2011-03-22 2012-07-11 张广涵 Time-sharing communication system on basis of power grid
CN104360144A (en) * 2014-12-08 2015-02-18 广东美的环境电器制造有限公司 Method for determining zero crossing point of alternating current signal and system for determining zero crossing point of alternating current signal
CN104684204A (en) * 2013-10-10 2015-06-03 Zf腓德烈斯哈芬股份公司 Method and control device for operating at least one light source
CN104821806A (en) * 2015-05-12 2015-08-05 广东美的厨房电器制造有限公司 Clock control device and control method thereof
CN105490262A (en) * 2016-01-15 2016-04-13 史晓平 System and method for load monitoring of smart home

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10439508B2 (en) * 2010-07-27 2019-10-08 Stmicroelectronics S.R.L. Control device of a switching power supply

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4361273A (en) * 1981-02-25 1982-11-30 Levine Michael R Electronic humidity control
CN101447847A (en) * 2008-06-19 2009-06-03 张广涵 Method for time base determination of simple and convenient multi-node synchrosystem and system thereof
CN102571150A (en) * 2011-03-22 2012-07-11 张广涵 Time-sharing communication system on basis of power grid
CN104684204A (en) * 2013-10-10 2015-06-03 Zf腓德烈斯哈芬股份公司 Method and control device for operating at least one light source
CN104360144A (en) * 2014-12-08 2015-02-18 广东美的环境电器制造有限公司 Method for determining zero crossing point of alternating current signal and system for determining zero crossing point of alternating current signal
CN104821806A (en) * 2015-05-12 2015-08-05 广东美的厨房电器制造有限公司 Clock control device and control method thereof
CN105490262A (en) * 2016-01-15 2016-04-13 史晓平 System and method for load monitoring of smart home

Also Published As

Publication number Publication date
CN106054710A (en) 2016-10-26

Similar Documents

Publication Publication Date Title
CN106094620A (en) Remote analog amount gathers warning system
CN105894789B (en) The Automatic meter reading system of tap water supply pipe network
CN106054710B (en) eating house intelligent control system
CN105848370B (en) Household intelligent lamplight control system body
CN106054711B (en) Intelligent control system for restaurant
CN105955050B (en) Home furnishings intelligent networked control systems
CN106054635B (en) Electrical device intelligent control system in cell home services
CN106054986B (en) Crop greenhouse atmosphere control system
CN106125594B (en) Hotel intelligence control system
CN106020030B (en) Eating house intelligence control system
CN105867263B (en) A kind of barber shop's intelligence control system
CN106123985B (en) A kind of flow signal synchronous
CN105867160B (en) A kind of home furnishings intelligent networked control systems
CN106023570B (en) Automatic meter reading system for tap water supply pipe network
CN106101237B (en) A kind of green house of vegetables temperature and humidity control system
CN105847100B (en) Mobile phone household intelligent control system
CN105955369B (en) Agricultural greenhouse climate control system
CN105955052A (en) Household electric appliance remote control system
CN106092152B (en) A kind of warehouse humiture information acquisition system
CN105955372B (en) Green house of vegetables temperature and humidity control system
CN106100946B (en) A kind of household electric appliances remote control system
CN105955370B (en) Grain depot temperature and humidity control system
CN106089782B (en) Parlor fan natural wind control system
CN106102226B (en) Restaurant LED point light source control system of lamp decoration
CN105911927B (en) Dormitory intelligent control system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20180409

Address after: 350208 Shop No. 4, building materials market, building materials market, Fuzhou, Changle District, Changle District, Changle District

Applicant after: Fuzhou alignment Mdt InfoTech Ltd

Address before: 350004 Taijiang, Fujian District, Riverside Road, No., No. 180

Applicant before: Fuzhou Taijiang Chaoren Electronic Co., Ltd.

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201102

Address after: 221000 No. 88 Liaohe West Road, Pizhou Economic Development Zone, Xuzhou City, Jiangsu Province

Patentee after: SU Normal University Semiconductor Materials and Equipment Research Institute (Pizhou) Co.,Ltd.

Address before: 350208 Shop No. 4, building materials market, building materials market, Fuzhou, Changle District, Changle District, Changle District

Patentee before: FUZHOU ZHUNDIAN INFORMATION TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20211228

Address after: 221300 506, block B, electronic industrial park, Pizhou Economic Development Zone, Xuzhou City, Jiangsu Province

Patentee after: Xuzhou Bochuang Construction Development Group Co.,Ltd.

Address before: 221000 No.88, Liaohe West Road, Pizhou Economic Development Zone, Xuzhou City, Jiangsu Province

Patentee before: SU Normal University Semiconductor Materials and Equipment Research Institute (Pizhou) Co.,Ltd.