CN105867263B - A kind of barber shop's intelligence control system - Google Patents

A kind of barber shop's intelligence control system Download PDF

Info

Publication number
CN105867263B
CN105867263B CN201610448466.7A CN201610448466A CN105867263B CN 105867263 B CN105867263 B CN 105867263B CN 201610448466 A CN201610448466 A CN 201610448466A CN 105867263 B CN105867263 B CN 105867263B
Authority
CN
China
Prior art keywords
cycle
time
signal
true
voltage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610448466.7A
Other languages
Chinese (zh)
Other versions
CN105867263A (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 CN201610448466.7A priority Critical patent/CN105867263B/en
Publication of CN105867263A publication Critical patent/CN105867263A/en
Application granted granted Critical
Publication of CN105867263B publication Critical patent/CN105867263B/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
    • G05B19/0421Multiprocessor system
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B3/00Line transmission systems
    • H04B3/54Systems for transmission via power distribution lines
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72415User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories for remote control of appliances

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Power Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The present invention relates to a kind of barber shop's intelligence control systems, comprising multiple appliance controllers and a main controller, the output of each appliance controller is serially connected on former socket or switch, realizes that it loads energized power and the control of time, it is convenient to change design, without broken wall paper line.Main controller is communicated by telephone network with owner, and between main controller and appliance controller is through power line communication.

Description

A kind of barber shop's intelligence control system
(1) technical field:
The present invention relates to a kind of barber shop's intelligence control system, comprising multiple appliance controllers and a main controller, each The output of appliance controller is serially connected on former socket or switch, realizes that it loads energized power and the control of time, change are set Meter is convenient, without broken wall paper line.Main controller is communicated by telephone network with owner, and between main controller and appliance controller is through electricity The line of force communicates.
(2) background technology:
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, and at some, often change is set Meter, its products application of the big occasion of wiring installation amount are restricted.
(3) content of the invention:
The present invention relates to a kind of barber shop's intelligence control systems, include multiple appliance controllers and a main controller.In the winter Mobile phone can be used to open water heater or air-conditioning in advance convenient for rapid reception customer for season or summer shopkeeper.It is small on barber shop's main switchboard Type breaker is switched comprising multichannel independent air, it is that guide tracked installation and presser type wiring reconfiguration are convenient, each air is opened Control electric appliance load all the way is closed, such as socket, illumination are electric appliance load etc. all the way, an air switch are selected, in air switch An electronic switch is filled afterwards, and the electronic switch parallel connection isolating diode, during communication, main controller shut-off electronic switch simultaneously connects it Communications electronics switch, and alternating current are sent into system through isolating diode, system is in the half wave communication half-wave power supply shape through power line State.Cycle discriminator circuit is respectively mounted in main controller and each appliance controller, for the synchronization time of generation system system is kept to move Make unanimously, while communications electronics switch, a switch drive module are respectively installed in its telecommunication circuit.Each appliance controller Output is serially connected with through Phototube Coupling and bidirectional triode thyristor in former socket or on-off circuit, realizes that it loads energized power and time Control, and change design conveniently, without broken wall paper line, main controller is communicated by telephone network with owner, and main controller is in setting Between or the mobile phone short message instructions that receive, it is necessary to during half wave communication, that is, perform the switching action from all-wave to half-wave.When each electric appliance Controller setting half-wave call duration time or and detect power network be isolated diode blocking half-wave there is no signal, system During in half-wave state, that is, its electric appliance load power supply is turned off, then connect communications electronics switch, system is made to be in half wave communication shape State;Conversely, when being switched to all-wave from half-wave, main controller first sends switching command to each appliance controller, turns off communications electronics Switch connects appliances power source.
Appliance controller panel fills the LED light of 3-5 different colours, when one section after offline individually just start is specific Between when showing red, shutdown is started shooting again into numbering, and panel is sequentially shown 1 time or 2 LED modules with different colors lamps are one group Close (such as be for the 1st time or the 2nd time:Red, green, blue, red green, bluish-green, red indigo plant, RGB etc. one of them), be shown as one 2 times During combination, the 1st display time control was identified at 1-2 seconds according to the preset dead time of display as the end of a combination, Each combination is corresponding with the number of number, which is affixed on panel.One combination shutdown of selection, obtains combining phase with this Corresponding unique number simultaneously preserves, labeling know, it be in the number period when can't detect grid cyclic wave signal, microcontroller according to Number data are stored in nonvolatile storage by the energy storage by its power capacitor.The numbering is easily changed number number, From erosions such as dust, water droplets, securely and reliably.
The switch drive module of its communications electronics switch is to divide two-way after resistance is depressured from electric power cable, all the way for each Appliance controller, it is connected to the single-chip processor i/o mouth of main controller and each appliance controller through reversal connection diode, in clock timer meter When to cycle bear half-wave when, the I/O mouthfuls is scanned, if being in half-wave communications status without signal, that is, system.Another way is for each Appliance controller and main controller, therebetween communication are to be controlled by synchronization time to keep keeping strokes, which is followed by D through electric resistance partial pressure The CLK ends of trigger, the external interrupt mouth (INT0 or INT1) of the Q termination microcontrollers of d type flip flop, fracture is arranged to level in this Triggering.The D ends ground connection of d type flip flop, S ends connect with the I/O mouths of microcontroller, and original state S puts 1 in end.When the positive square wave at CLK ends When signal arrives, rising edge sets to 0 d type flip flop, and external interrupt mouth low level generates interruption, first makes in interrupt service routine S ends set to 0 make d type flip flop put 1 i.e. Q ends for 1 and the Central Shanxi Plain is broken, then communicate, communications electronics switch according to used communication mode Microcontroller corresponding port is connected to, and carries out signal condition, S, which puts at end 1, before sign off makes out the communication of the lower cycle of interrupt latency, So half wave communication is realized in cycles.
A babyphone programme-controlled exchange is installed by barber shop, and one of extension number is used for its appliance remote control.This point Machine number and instruction code and the table of comparisons of instruction are stored in mobile phone, and the data of instruction code are prevented with the methods of screen-lock password It divulges a secret.During communication, the number of instruction code is sent from base or mobile phone, interchanger is after caller dialing by dual-tone multifrequency decoder After obtaining the extension set calling telephone number, off-hook is simulated, and keeps dual-tone multifrequency reception state, to receive instruction code signal, It can such as be sent out with mobile phone:" exchange telephone number " P " number of instruction code ", wherein " P " can pin the * keys of mobile phone simulating keyboard Obtain, type be to press * keys to obtain or wait for 2-3 times to key in instruction again after interchanger cures voice prompt in the chips Code, after sign off, interchanger sends the digital signal for receiving instruction code to main controller through interface circuit, by main controller Corresponding operating is performed after decoding.
The present invention utilizes the positive half cycle ascent stage of power network cycle, takes three to screen point and realize and the identification of cycle signal is sentenced It is fixed, the cycle time is recycled to establish synchronization time, the synchronous operation of main controller and each appliance controller in realization system.
The cycle discriminator circuit structure diagram of main controller and each appliance controller by three as shown in Fig. 2, use hysteresis The voltage comparator of comparator forms, comprising filter circuit, the reference voltage of voltage comparator in each voltage comparator It is provided by regulator circuit.System sets clock timer and synchrotimer.If detect that two adjacent cycle signals are equal It is true, then takes out the clock timer timing time between this two adjacent cycle signal zero passages, is sequentially stored in the cycle time In storage unit, which can store 100 cycle times, a cycle time is often stored in 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 preserves, is reflected using Tz values Cycle signal not to be identified reduces erroneous judgement possibility to reduce the influence of power network frequency fluctuation, while screen point using three.
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 ripple positive half cycle ascent stage, that is, screen point 0 and voltage zero-crossing comparator is set, due to power network cycle negative half period quilt Rectifier diode is isolated, in order to improve accuracy of detection, 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 profit 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:After setting time opens interruption, clock timer resets and starts timing microcontroller, works as cycle During voltage zero-cross, the output voltage overturning for the voltage Zero-cross comparator Qi ﹙ V0 ﹚ for screening point 0 is arranged on, is generated in its voltage trailing edge It interrupts, records its zero crossing break period Th0 and the Central Shanxi Plain is broken;Hereafter, electricity pressure comparator ﹙ V1 ﹚ at point 1 are screened in microcontroller scanning Output voltage, when all wave voltages are reached to the threshold voltage of ﹙ V1 ﹚, output voltage is overturn from high to low, when scanning records its overturning Between Th1;Similary scanning record screens electricity pressure comparator ﹙ V2 ﹚ output voltages flip-flop transition Th2 at point 2.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 in the range of allowable error, then the discriminator signal detected is true, is otherwise false.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, the cycle if no more than setting cycle time error Tzv Signal is true, at this moment preserves 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 during setting value Tk, clock timer timing to 25ms to Central Shanxi Plain during pass break period setting value Tn between 27ms is broken.
After system boot, clock timer starts timing, when detecting first cycle voltage zero-cross, is arranged on examination The output voltage overturning of the voltage Zero-cross comparator Qi ﹙ V0 ﹚ of point 0, interrupts so as to generate, takes out the time T0 of cycle voltage over zero It preserves, clock timer is reset and starts timing, at this moment cycle time voltage crosses zero Th0 is 0, while microcontroller presses above-mentioned side Method scans and judges 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 add the difference that cycle time 20ms subtracts out break period setting value Tk, if Three discriminator signals are true, and the time T0 of the cycle voltage over zero of taking-up is stored in as initial time in synchrotimer, under Once i.e. opening the break period for the first time takes Tk.Otherwise for fictitious time, at this time the clock timer time must add T0, continue to detect.
When detecting first and second adjacent cycle voltage zero-cross, due to not preserving the cycle time of detection, Therefore the clock timer timing time twice between cycle signal zero passage is made comparisons with cycle time 20ms, judges cycle signal Then it is that the difference that 20ms is taken to subtract Th0 is added with synchrotimer timing time when being true, i.e., preserves the standard cycle time for the first time 20ms need to deduct its Th0 value, this is because when hereafter to detect cycle signal every time be true, by clock meter when opening interruption When device reset after restart timing, and be that the standard cycle time is included in synchrotimer when opening interruption, open interruption Afterwards clock timer reset, otherwise judge cycle signal be fictitious time, at this time the clock timer time must add T1=T0+Tk, after It is continuous to detect first cycle again as stated above.After it is very to detect first cycle signal, recover above-described cycle Signal determining.
If as shown in Figure 1, detecting that cycle signal is false, the break period is opened next time and opens the break period at this Afterwards, open interruptions during average value Tz through the cycle time that is delayed, and open interrupt after be delayed Tns when the Central Shanxi Plain break, when setting the Central Shanxi Plain to break Between be when cycle signal screen point 0 when do not generating interruption, at this moment must be in the setting time point more than Ts0 allowable error scopes When starting to scan and scanning examination point 1 and screen point 2, voltage comparator output voltage does not generate overturning, all breaks in the Central Shanxi Plain Scanning is broken and is stopped in the time Tns Central Shanxi Plain, and Tns is:
Tns=Tn-Tk
If it is true to detect cycle signal, next cycle opens break period Tks and is:
Tks=Tk+Th0
I.e. from opening for the first time after the break period takes Tk, clock timer is that timing opens interruption to Tks, and weight after resetting New to start timing, timing is broken to Central Shanxi Plain during Tns, so that the synchrotimer time is corrected be subject to cycle time voltage crosses zero.
It repeats the above process.If the upper cycle signal detected is true, when this cycle judges, discriminator signal is Vacation or the cycle time detected are more than setting cycle time error Tzv or clock meter compared with the average value Tz of cycle time When device timing to close break period setting value Tns when, voltage Zero-cross comparator device ﹙ V0 ﹚ output voltages are not overturn, in not generating Disconnected, then when clock timer timing is to Tns, the Central Shanxi Plain is broken, and at this moment remembers that not counting cycle N is 1 and stores, 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 broken, and hereafter judges the cycle signal true and false every time, though if false or this detection discriminator signal be false true last time, then take N will be restored after N+1 in memory.
When it is true to detect cycle signal, then takes out N in memory and preserve, and by N zero setting in memory, and recover to make With setting value Tks, the value of (N+1) × 20ms is at this moment taken to be added in synchrotimer.
The system synchronization time be synchrotimer time, along with currently just timing clock timer time.
When judging to screen the point signal true and false, Th0, Th1, Th2 are by being set with voltage comparator output voltage flip-flop transition Definite value Ts0, Ts1, Ts2 make comparisons see it is whether overproof, come judge screen point a signal true and false, can select:Th0, Th1, Th2 are The cycle discriminator signal is true when true or Th0 is true, while when one of Th1, Th2 are true or when Th1, Th2 are true, it should Cycle discriminator signal is true, depending on to judging the different requirements of the cycle signal true and false.
If system fault, when N is more than a setting value between 25 to 70, due to main controller in system and each electric appliance Controller, Tz values and the N values 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 to detect cycle signal, at this moment using 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) illustrate:
Fig. 1 is that cycle screens data relationship schematic diagram;
Fig. 2 is cycle discriminator circuit structure diagram;
Fig. 3 is a kind of circuit structure block diagram of barber shop's intelligence control system.
(5) specific embodiment:
Fig. 3 is that a kind of circuit structure block diagram of barber shop's intelligence control system includes:10 ﹚ of Zhu Kong Qi ﹙, communications electronics are opened 11 ﹚ of Guan ﹙, switch Qu dynamic model Kuai ﹙ 12 ﹚, Jie mouthfuls of 14 ﹚ of electricity Lu ﹙ 13 ﹚, electricity words Cheng Kong Jiao Huan Ji ﹙, 15 ﹚ of electricity Qi ﹙, cycles 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 Dan Pian Ji ﹙ U0 ﹚ in 16 ﹚ and Fig. 2 of electricity Lu ﹙ are screened respectively to be included in 17 ﹚ and Zhu Kong Qi ﹙ of electricity device Kong Qi ﹙, 10 ﹚.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 on-off circuit Electric appliance.
Fig. 2 is the structure 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 formed.Dan Pian Ji ﹙ U0 ﹚ refer to 17 ﹚ and Zhu Kong Qi ﹙ of electricity device Kong Qi ﹙ Microcontroller in 10 ﹚.Shu enters electricity Lu ﹙ S0 ﹚ for the partial pressure by mains AC voltage by resistance and diode, is converted to electricity The input voltage for pressing comparator suitably stable.Dan Pian Ji ﹙ U0 ﹚ use 89C55WD, voltage zero-cross Jian to survey Mo Kuai ﹙ V0 ﹚, voltage Than compared with device ﹙ V1 ﹚, electricity pressure comparator ﹙ V2 ﹚, using dedicated voltage comparator LM339, reference voltage is using the steady of voltage-stabiliser tube Volt 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 saltus step of Mo Kuai ﹙ V0 ﹚, single Pian Ji ﹙ U0 ﹚ generate interruption, record the break period, while Dan Pian Ji ﹙ U0 ﹚ are additionally operable to scanning voltage Bi compare Qi ﹙ V1 ﹚ and voltage ratio The output voltage of compare Qi ﹙ V2 ﹚, bound-time is recorded when output voltage saltus step, for judging power network cycle signal so as to producing Raw synchronization time.
Microprocessor AT89C2051 in Jie mouthfuls of 13 ﹚ of electricity Lu ﹙ is equipped with I2C serial communication modules, between main controller into Row communication, EEPRAM are used to preserve data.During 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 barber shop's intelligence control system, it is characterized in that, an electronic switch, the electronic switch are filled after air switch Isolating diode in parallel, during communication, main controller shut-off electronic switch simultaneously connects its communications electronics switch, by alternating current through isolating two poles Pipe is sent into system, and system is in the half wave communication half-wave power supply state through power line, pacifies in main controller and each appliance controller Fill cycle discriminator circuit, for the synchronization time of generation system, while respectively install in telecommunication circuit a communications electronics switch, Switch drive module, the output of each appliance controller are serially connected with former socket or on-off circuit through Phototube Coupling and bidirectional triode thyristor In, realize that it loads energized power and the control of time, a babyphone programme-controlled exchange is installed by barber shop, and main controller passes through Telephone network communicates with owner, each appliance controller setting half-wave call duration time or and detect that power network is isolated diode When the half-wave of blocking does not have signal, that is, its electric appliance load power supply is turned off, connect communications electronics switch;
Appliance controller panel fills the LED light of 3-5 different colours, and when just the display of start specific time is red, shutdown is opened again Machine enters numbering, sequentially shows 1 time or 2 LED modules with different colors lamps are a combination, the 1st display time control is in 1-2 Second, it is identified according to end of the preset display dead time as a combination, selects a combination shutdown, obtain combining phase with this Corresponding number simultaneously preserves, and in the number period when can't detect grid cyclic wave signal, microcontroller relies on the storage of its power capacitor Number data can be stored in nonvolatile storage;
Switch drive module is to divide two-way after resistance is depressured from electric power cable, all the way for each appliance controller, through reversal connection two Pole pipe is connected to the single-chip processor i/o mouth of main controller and each appliance controller, when half-wave is born in clock timer timing to cycle, scanning The I/O mouthfuls, if being in half-wave communications status without signal, that is, system, another way is used for each appliance controller and main controller, should Road is followed by the CLK ends of d type flip flop, the external interrupt mouth of the Q termination microcontrollers of d type flip flop, when the pros at CLK ends through electric resistance partial pressure When ripple signal arrives, rising edge sets to 0 d type flip flop, and external interrupt mouth low level generates interruption, communicates;Babyphone Programme-controlled exchange extension number and instruction code and the table of comparisons of instruction are stored in mobile phone, and interchanger will receive the number of instruction code Word signal interface circuit sends main controller to, and corresponding operating is performed 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 judge, the cycle time is recycled to establish synchronization time, and system sets clock timer and synchrotimer, if detecting phase Two adjacent cycle signals are true, then when taking out the clock timer timing between this two adjacent cycle signal zero passages Between, it is sequentially stored in cycle time memory cell, a cycle time is often stored in when being filled with 100 cycle time, is first removed The cycle time being stored at first, and calculate the average value Tz of the cycle time of deposit and preserve, differentiated using Tz values and wait to 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 set a voltage zero-crossing comparator, concatenate two again in the signal input part of voltage zero-crossing comparator Pole pipe isolates negative half period, and reference voltage is 10mv to 100mv, and depending on the offset voltage of comparator, which can profit 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 process:After setting time opens interruption, clock timer resets and starts timing microcontroller, works as cycle During voltage zero-cross, the output voltage overturning for the voltage zero-crossing comparator for screening point 0 is arranged on, in the generation of its voltage trailing edge It is disconnected, it records its zero crossing break period Th0 and the Central Shanxi Plain is broken;Hereafter, the defeated of electricity pressure comparator ﹙ V1 ﹚ at point 1 is screened in microcontroller scanning Go out voltage, 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;Similary scanning record screens the flip-flop transition Th2 of electricity pressure comparator ﹙ V2 ﹚ output voltages at point 2, if institute Flip-flop transition Th1 and flip-flop transition Th2 are stated in the range of allowable error, then the discriminator signal detected is true, is otherwise vacation, When above-mentioned judgement discriminator signal is true, calculates cycle when this cycle signal zero passage and an adjacent preceding discriminator signal are true and believe Clock timer timing time Tzu between number zero passage, it is made comparisons with the average value Tz of cycle time, if no more than setting Then cycle signal is true to cycle time error Tzv, at this moment preserves Tzu and 20ms is taken to be added with synchrotimer timing time, will In the value deposit synchrotimer of addition;
When clock timer starts timing with cycle voltage zero-cross, then timing to 16ms opens break period setting between 18.5ms Open interruption during value Tk, clock timer timing to 25ms to Central Shanxi Plain during pass break period setting value Tn between 27ms is broken;
When detecting first cycle voltage zero-cross, the output voltage overturning for the voltage zero-crossing comparator for screening point 0 is arranged on, It is interrupted so as to generate, the time T0 for taking out cycle voltage over zero is preserved, and clock timer is reset and starts timing, at this moment all Wave voltage zero-crossing timing Th0 is 0, and microcontroller scans and judges 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 For the time T0 of point as in initial time deposit synchrotimer, i.e. opening the break period for the first time takes Tk next time, is otherwise vacation When, at this time the clock timer time must add T0, continue to detect;
Then it is that 20ms is taken to subtract when it is true to detect first and second adjacent cycle voltage zero-cross, judgement cycle signal The difference of Th0 is added with synchrotimer timing time, and clock timer is reset after opening interruption, and it is false otherwise to judge cycle signal When, the clock timer time must be plus T1, T1=T0+Tk at this time, and first cycle of detection, believes when detecting first cycle again Number be very after, recover above-described cycle signal determining;
If it is false to detect cycle signal, open the break period next time after this opens the break period, through be delayed cycle when Between average value Tz when open interruption, and open interrupt after be delayed Tns when the Central Shanxi Plain break, it is when cycle signal is discriminated to set and close the break period Not Wei fictitious time break and stop to scan closing the break period Tns Central Shanxi Plain, Tns is:
Tns=Tn-Tk
If it is true to detect cycle signal, next cycle opens break period Tks and is:
Tks=Tk+Th0
I.e. from opening for the first time after the break period takes Tk, clock timer is that timing opens interruption to Tks, and is opened again after resetting Beginning timing, timing are broken to Central Shanxi Plain during Tns, repeat above-mentioned cycle signal determining process, if the upper cycle letter detected Number it is true, when this cycle judges, discriminator signal is false, then when clock timer timing is to Tns, 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 it is to open the break period in last time to open interruption after Tz to open the break period next time, and clock timer exists It opens and simultaneously timing is reset after interrupting, timing is broken to Central Shanxi Plain during Tns, hereafter judges 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 false, then takes N, will be restored after N+1 in memory;
When it is true to detect cycle signal, then takes out N in memory and preserve, and by N zero setting in memory, and recover use and set At this moment definite value Tks takes the value of (N+1) × 20ms to be added in synchrotimer;
The system synchronization time be synchrotimer time, along with currently just timing clock timer time;
When judging to screen the point signal true and false, selection: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 true, depending on judging cycle signal It is straight using the accumulative clocking value of clock timer if N is more than a setting value between 25 to 70 depending on the different requirements of the true and false It connects and is added in synchrotimer, it is N × Tz+20ms to add up clocking value.
2. a kind of barber shop's intelligence control system according to claim 1, it is characterised in that including:
﹚, Jie mouthfuls of 10 ﹚ of Zhu Kong Qi ﹙, 11 ﹚ of communications electronics Kai Guan ﹙, switch Qu dynamic model Kuai ﹙ 12 electricity Lu ﹙ 13 ﹚, electricity words Cheng Kong Jiao Huan Ji ﹙ 14 ﹚, cycle screen 16 ﹚, electricity device Kong Qi ﹙ of electricity Lu ﹙, 17 ﹚, 18 ﹚ of electricity Kai Guan ﹙, and wherein Dan Pian Ji ﹙ U0 ﹚ and communications electronics are opened 11 ﹚ of Guan ﹙, 12 ﹚ of switch Qu dynamic model Kuai ﹙ and cycle screen 16 ﹚ of electricity Lu ﹙ and are respectively included in 17 ﹚ and Zhu Kong Qi ﹙ of electricity device Kong Qi ﹙ In 10 ﹚;
Cycle screen 16 ﹚ of electricity Lu ﹙ by:Shu Ru electricity roads ﹙ S0 ﹚, voltage Zero-cross comparator device ﹙ V0 ﹚, electricity pressure comparator ﹙ at point 1 is screened V1 ﹚ are used to mains AC voltage passing through resistance and two with electricity pressure comparator ﹙ V2 ﹚ compositions at point 2, Shu Ru electricity roads ﹙ S0 ﹚ is screened The partial pressure of pole pipe is converted to the suitably stable input voltage of voltage comparator;
Microcontroller in Jie mouthfuls of 13 ﹚ of electricity Lu ﹙ is equipped with I2C serial communication modules, for communicating between main controller, EEPRAM is used to preserve data.
CN201610448466.7A 2016-06-20 2016-06-20 A kind of barber shop's intelligence control system Active CN105867263B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610448466.7A CN105867263B (en) 2016-06-20 2016-06-20 A kind of barber shop's intelligence control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610448466.7A CN105867263B (en) 2016-06-20 2016-06-20 A kind of barber shop's intelligence control system

Publications (2)

Publication Number Publication Date
CN105867263A CN105867263A (en) 2016-08-17
CN105867263B true CN105867263B (en) 2018-05-22

Family

ID=56650813

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610448466.7A Active CN105867263B (en) 2016-06-20 2016-06-20 A kind of barber shop's intelligence control system

Country Status (1)

Country Link
CN (1) CN105867263B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0853368A2 (en) * 1996-12-03 1998-07-15 Kabushiki Kaisha Toshiba Electric power control system
CN102571150A (en) * 2011-03-22 2012-07-11 张广涵 Time-sharing communication system on basis of power grid
CN203554737U (en) * 2013-09-29 2014-04-16 刘付光 Color-temperature adjustable LED lamp
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

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0853368A2 (en) * 1996-12-03 1998-07-15 Kabushiki Kaisha Toshiba Electric power control system
CN102571150A (en) * 2011-03-22 2012-07-11 张广涵 Time-sharing communication system on basis of power grid
CN203554737U (en) * 2013-09-29 2014-04-16 刘付光 Color-temperature adjustable LED lamp
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

Also Published As

Publication number Publication date
CN105867263A (en) 2016-08-17

Similar Documents

Publication Publication Date Title
CN106094620A (en) Remote analog amount gathers warning system
CN105931414B (en) A kind of Warehouse Fire alarm control system
CN105867263B (en) A kind of barber shop's intelligence control system
CN105955050B (en) Home furnishings intelligent networked control systems
CN106125594B (en) Hotel intelligence control system
CN105867160B (en) A kind of home furnishings intelligent networked control systems
CN105848370B (en) Household intelligent lamplight control system body
CN106054635B (en) Electrical device intelligent control system in cell home services
CN106054711B (en) Intelligent control system for restaurant
CN105847100B (en) Mobile phone household intelligent control system
CN105955372B (en) Green house of vegetables temperature and humidity control system
CN106054710B (en) eating house intelligent control system
CN105955369B (en) Agricultural greenhouse climate control system
CN106054986B (en) Crop greenhouse atmosphere control system
CN105955370B (en) Grain depot temperature and humidity control system
CN106020030B (en) Eating house intelligence control system
CN106100946B (en) A kind of household electric appliances remote control system
CN105955052A (en) Household electric appliance remote control system
CN106101237B (en) A kind of green house of vegetables temperature and humidity control system
CN106054712B (en) Electrical device intelligent control system in community service
CN106102225B (en) Bridge guardrail pipe control system of lamp decoration
CN105911927B (en) Dormitory intelligent control system
CN105960060B (en) Park L ED landscape lamp post control system
CN106102226B (en) Restaurant LED point light source control system of lamp decoration
CN105872112A (en) Remote communication control system for traditional Chinese medicine decoction room

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

Effective date of registration: 20180418

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.

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

Effective date of registration: 20201109

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.

TR01 Transfer of patent right