CN101477349B - Amount-adjustable intelligent switch and its implementing method - Google Patents

Amount-adjustable intelligent switch and its implementing method Download PDF

Info

Publication number
CN101477349B
CN101477349B CN2009100291773A CN200910029177A CN101477349B CN 101477349 B CN101477349 B CN 101477349B CN 2009100291773 A CN2009100291773 A CN 2009100291773A CN 200910029177 A CN200910029177 A CN 200910029177A CN 101477349 B CN101477349 B CN 101477349B
Authority
CN
China
Prior art keywords
module
switch
button
intelligent switch
liquid crystal
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.)
Expired - Fee Related
Application number
CN2009100291773A
Other languages
Chinese (zh)
Other versions
CN101477349A (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.)
Shanghai Uiworks Electronic Tech. Co., Ltd.
Original Assignee
Shanghai Uiworks Electronic Tech Co 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 Shanghai Uiworks Electronic Tech Co Ltd filed Critical Shanghai Uiworks Electronic Tech Co Ltd
Priority to CN2009100291773A priority Critical patent/CN101477349B/en
Publication of CN101477349A publication Critical patent/CN101477349A/en
Application granted granted Critical
Publication of CN101477349B publication Critical patent/CN101477349B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P80/00Climate change mitigation technologies for sector-wide applications
    • Y02P80/10Efficient use of energy, e.g. using compressed air or pressurized fluid as energy carrier

Abstract

The invention relates to a quantity adjustable intelligent switch and a realization method thereof. The quantity adjustable intelligent switch is provided with an embedded chip control module and a physical switch module, a power module and a liquid crystal screen module which are independently connected with the embedded chip control module through pin circuits respectively, and an operation input module is integrated on the liquid crystal screen module. The quantity adjustable intelligent switch is characterized in that the intelligent switch is also provided with a switch press-button number setting module and a forceful electric power on/off output interface module which are connected with the chip control module through the pin circuits respectively, and the chip control module is provided with a signal acquisition unit, a processing unit, a memory unit and a control unit and stored with a plurality of execution programs. The quantity adjustable intelligent switch realizes breakthrough of multi-control random selection with one intelligent switch through presetting of the number of press-buttons of the intelligent switch and control of a liquid crystal display chip, has the advantages of low cost, simple operation and low failure rate, reduces the cost of various links on the upstream and the downstream of an industrial chain, and has significance on energy conservation and environmental protection.

Description

A kind of intelligent switch of adjustable number and its implementation
Technical field
The present invention relates to a kind of intelligent switch, relate in particular to a kind of one wire system or double wire system intelligent switch with liquid crystal display, input and embedded chip control.
Background technology
The purposes of switch is the opening and closing of electric equipments such as light fixture are controlled.The switch that exists at present is divided into mechanical switch and intelligent switch two big classes, and in existing life and work, the switch major part of use all is a mechanical switch.The characteristics of the type switch are: through the to-and-fro movement of panel in the fixed position, drive the folding of interior metal sheet, thereby reach the effect of entire circuit break-make.The type switch has been used for many years, develops plastic construction wooden structures, ceramic structure, numerous kinds such as bakelite structure.Along with the continuous development of embedded technology and lcd technology, and the improving constantly of people's aesthetic standard, intelligent switch has also obtained significant development and application in recent years.The characteristics of the type switch are: with the LCDs of different size as display panel; With touch-screen or other electric control gears (for example RF remote, voice-operated device, light-operated equipment, the network equipment etc.) is input equipment, carries out detection, the logic determines of input signal through the embedded chip system; The control of display screen displaying contents, and the output of control signal; By this output control signal, finally realize the effect of entire circuit break-make through electronic components such as relay, controllable silicon or triodes.
Yet no matter being daily general mechanical switch, still is the one wire system or the double wire system intelligent switch of novel fashion, and it all has a common characteristic, and promptly its number of switches that is comprised of single switch just is fixed when descending production line.Based on such characteristics, bring following defective and deficiency can for manufacturer, the dealer of switch and the final user of switch of switch:
1), to switch manufacturing enterprise:
The early development cost increases---and standard machinery formula switch is according to the difference (general 1~4) of number of switches; Its shift knob, exterior panel, inner chopper module and structure all need design and die sinking separately; Cost is expensive, and product is in case confirm that the cost of change will be high equally;
Production difficulty and cost increase---and the switch of different button quantity is as different series product; For example singly open, twoly open, three open, four open; Its production procedure and operation all can be distinguished to some extent, and this will cause the increase of production complexity, and then bring the increase of production cost;
Inventory cost increases---owing to do not have versatility and substituting between each series switch of different button quantity, for satisfying the market supply demand, manufacturing enterprise must leave all serial switches in the stock, causes inventory cost to increase;
The after-sales service cost increases---and the single damage of physical button just must be changed whole switch, and this will cause the increase of after-sales service cost, and the incompatibility between the switch also can make under a certain type product situation temporarily out of stock simultaneously, increases the logistics transportation cost.
2), to the switch dealer: switch is sold basically and is accomplished through the dealer's channel that is distributed in various places; Cause product type different owing to shift knob quantity is different; And the not replaceability between the product; Also will inevitably cause dealer's fund to take in large quantities and hoard on the product of various models, the activity fund reduces relatively, thereby has reduced dealer's competitive power and dirigibility;
3), to the final user:
Buy early stage uncertain high---because the foresight of pool is conceived in interior decoration in earlier stage, thorough property is not enough,, all will produce unnecessary waste in case need the change Decoration Design to cause the shift knob number needs to increase or to reduce after switch is bought;
Later stage expands, the change difficulty is high, cost is high---and after finishing is accomplished, when causing the switch on-hand quantity not satisfy, gently then need change existing switch, cause the waste of original switch as if needing to increase circuit; Heavy then need cutting wiring groove and switch groove on body of wall again, destroy original finishing, bring about great losses.
Summary of the invention
Defective to above-mentioned existing machinery formula switch and intelligent switch; The object of the invention aims to provide intelligent switch and its implementation of a kind of adjustable number, solves and to fix problems such as the cost increase that produces, the occupation of capital, product waste owing to number of switches.
For realizing above-mentioned purpose, the technological means that the present invention taked is:
The intelligent switch of adjustable number of the present invention comprises that hardware and the combination of software two parts form; All in all, hardware system comprises shift knob quantity setting module, embedded chip control module, forceful electric power break-make output interface module, physical switch module, power module, liquid crystal display module, operation input totally seven modules; Software systems comprise that shift knob quantity is set trace routine, shift knob is set with the corresponding program of forceful electric power output module, the dynamic display routine of shift knob panel, touch panel region area and position with the corresponding program of button, forceful electric power break-make output interface module effective physics switch module quantity and position probing program, software set shift knob quantity program, anti-misoperation program and operate input mode self-identifying program totally eight programs.Wherein anti-misoperation program comprises that the preparatory attention program of button, button are provided with quantity and physical switch module number Error processing program, and button is provided with position and the physical switch module Error processing program that do not match.Specifically in depth say:
Hardware components:
Said shift knob quantity setting module, it mainly acts on is the coding rule through pre-designed, on this module, sets accordingly, forms the different coding combination.This shift knob quantity setting module is based on the monolithic module that the dual inline type DIP switch (DIP switch) that contains four switches is processed, and this shift knob quantity setting module independently links to each other through the pin circuit with the embedded chip control module; Further, said button quantity coding adopts the binary coding rule, and its corresponding button quantity of setting is many more more at most for the coding figure place, can characterize through following formula: MAX [button quantity]=2 The coding figure placeIn addition, this switching function setting module also can be based on the signal receiving module that COM1 and control bus (like touch-screen, infrared, radio frequency, bluetooth, serial ports, internet, GRPS/GSM etc.) are processed, and realizes online or long-range setting.
Table 2
The switch coding Shift knob quantity The switch coding Shift knob quantity
0000 Software set button quantity 1000 8
0001 1 1001 9
0010 2 1010 10
0011 3 1011 11
0100 4 1100 12
0101 5 1101 13
0110 6 1110 14
0111 7 1111 15
Said embedded chip control module is electrical signal collection, the processing of whole intelligent switch, the nucleus module of control output, links to each other with other all hardware modules.This chip control module have be used to read button quantity encoded signals collecting unit, be used for the signal Processing that is read mate corresponding executive routine processing unit, be used to remember one group of a plurality of executive routine storage unit, write to control module, the executive routine of physical switch module output order/peripheral circuit unit such as reading unit, crystal oscillator unit and watchdog unit according to executive routine.Behind the intelligent switch power-on self-test, this chip control module is at first set trace routine detector switch button quantity setting module through shift knob quantity, obtains button quantity coding by signal gathering unit; Then by processing unit it is mated with memory corresponding executive routine in storage unit, and by the instruction of control module to the liquid crystal display module output dynamic demonstration in number of switches interface; The button cycles of carrying out at last based on the operation load module detects, and the operation signal that occurs on the liquid crystal display module is carried out the identification of chip control module, drives the forceful electric power circuit of physical switch module break-make number of responses and position with programmed instruction.
Said forceful electric power break-make output interface module links to each other with the embedded chip control module.According to the needs of shift knob quantity, the physical switch module of respective numbers is plugged on the assigned address of this module.After the control signal that receives the embedded chip control module, the break-make of control respective physical switch module, thus the break-make of forceful electric power circuit is specified in realization.If embedded chip control module output current is not enough to drive the physical switch module, then this interface module also will play the effect that strengthens electric current.
Said physical switch module; It is the electronic switching circuit that utilizes electronic components such as optocoupler, controllable silicon, relay, triode to form; After receiving the break-make steering order that embedded chip sends; Can control the break-make of forceful electric power circuit, realize the effect of conventional mechanical switch break-make, accomplish the output of light current control forceful electric power.
Said power module is that interchange forceful electric power with 220V converts each modular circuit of intelligent switch into and operates the low circuit of needed direct current, and it can be that one wire system (having only live wire) is imported with double wire system (zero line, live wire).
Said operation load module, for based on the touch screen module of liquid crystal display, RF remote-controlled module, light-operated module, acoustic control module, or for the load module of controlling Network Based wherein one or more collocation integrate.And wherein said touch screen module is for referring to that by the formula input, its type can comprise touch-screens such as impedance type, electrostatic capacitive, optical profile type and ultrasonic formula.
Software section:
At first set button quantity coded signal, and this coded signal is imported in the chip control module through collecting unit through said operation load module facing switch button quantity setting module; Then detect the corresponding situation of the number of switches set and forceful electric power break-make output interface module by processing unit, after anti-misoperation program monitoring matching, call executive routine carries out the shift knob panel on the liquid crystal display module dynamic demonstration by control module; The button cycles of carrying out at last based on the operation load module detects, and the operation signal that occurs on the liquid crystal display module is carried out the identification of chip control module, and carries out corresponding switch motion with instruction driving physical switch module.Wherein said executive routine comprise 1. shift knob quantity trace routine, 2. shift knob set with the corresponding program of forceful electric power output module, 3. forceful electric power break-make output interface module effective physics switch module quantity and position probing program, 4. panel zone area and position and the corresponding program of button, 5. the dynamic display routine of shift knob panel, 6. anti-misoperation program, 7. software set shift knob quantity program, 8. operate input mode self-identifying program.
Further, said shift knob quantity is set trace routine, is that this intelligent switch powers on through first program of being called by chip control module after the self check at every turn.The main effect of this program is the respective pins that is connected with shift knob quantity setting module through detecting, and obtains the coding of number of switches.Through the comparison coding, obtain the corresponding button quantity that is provided with.The dynamic display routine of shift knob panel after obtaining button quantity, at the button figure of liquid crystal display panel display setting quantity as virtual push button.
Further; Said shift knob is set and the corresponding program of forceful electric power output module; Be meant the button that shows some on the liquid crystal display panel; The physical switch module of assigning on the circuit of each button control and the forceful electric power break-make output interface module needs corresponding one by one, and this program is exactly this corresponding logical relation of description; After detecting button quantity, activate the physical switch module of respective numbers and position.
Further, the dynamic display routine of said shift knob panel is meant the button quantity of setting according to intelligent switch, the dynamic virtual switch that shows the analog switch profile of respective numbers on the liquid crystal display panel.Through this program, the user can distinguish the position of each button and the state that opens or closes of present button corresponding circuits easily, can also show the pairing controlling object of each button.
Further; The corresponding program in said touch panel region area and position with button; Be meant under the situation that liquid crystal display panel area is fixed; Owing to needs the number of switches of demonstration different, and cause the position of virtual push button and area size that respective change can take place, thereby virtual push button corresponding physical switch module also changes.This program will be set up relation one to one with the physical switch module with each point coordinate on the operation load module that liquid crystal display is integrated under the different various situation of virtual push button quantity, guarantees that correct switch controls.
Further; Said operation input mode self-identifying program; Discern, respond to the module input signal of the different modes signal of the RF remote-controlled input that combines (for example touch-screen input, acoustic control input, light-operated input or the touch-screen with), and corresponding each setting and concrete executive routine of pointing to.
Further; Said forceful electric power break-make output interface module effective physics switch module quantity and position probing program; Be meant after the physical switch module is installed to forceful electric power break-make output interface module; Said chip control module can be checked installation site and effective quantity of physical switch module, and the result of inspection will offer button and quantity and physical switch module number Error processing program and button is set position and the physical switch module Error processing program that do not match is set.
Further, said software set shift knob quantity program is meant on the hardware foundation that is independent of shift knob quantity setting module the method for software set button quantity.This program breaks down as shift knob quantity setting module or different user is manipulated different a kind of the replenishing of preference.
Further, said anti-misoperation program comprises the preparatory attention program of button, and button is provided with quantity and physical switch module number Error processing program, and button is provided with position and the physical switch module Error processing program that do not match; Various faults that possibly occur in using to switch or mistake are pointed out in advance or are prevented.
Further, the preparatory attention program of said button is only applicable to the touch-screen that surperficial touch-screen is selected surface acoustic wave technique for use.When user finger is about to the touch screen surface near switch; Because near the touch-screen sound wave the finger is changed; After the embedded chip control module detects this and changes, extrapolate near the analog buttons this position according to the position that changes, simultaneously with its amplification; Person easy to use clicks, and reduces and clicks error rate.This function particularly suitable and button quantity are set under the more situation.
Further; Said button is provided with quantity and physical switch module number Error processing program; When the physical switch module number that arrives when the button quantity that is provided with and actual detected is inconsistent; The physical switch module number that arrives more than actual detected of button quantity for example, it is invalid that button must be arranged so.This program will be pointed out at the liquid crystal display panel when detecting this unusual condition, provide the position of physical switch module on the present forceful electric power break-make output interface module simultaneously, be convenient in time replenish.If in the switch use, certain physical switch takes place to be damaged, in the time of can't being detected by system, this program also can be pointed out.
Further; Said button is provided with position and the physical switch module Error processing program that do not match; Because there are relation one to one in each virtual push button and physical switch module, so when deviation taking place between the two, this program will be pointed out at the liquid crystal display panel; Provide the position of physical switch module on the present forceful electric power break-make output interface module simultaneously, be convenient to timely correction.
After the intelligent switch input of a kind of adjustable number of the present invention is implemented; Can effectively and up hill and dale solve the deficiency that regular tap exists; Provide that many switches adjustability is integrated, with low cost, simple to operate, feasible program that failure rate is low; Reduced the cost of each link of industrial chain upstream and downstream, the use dirigibility that has improved intelligent switch all has great function and meaning to energy conservation and environmental protection.
Description of drawings
Fig. 1 is the hardware elementary diagram of the intelligent switch of adjustable number of the present invention;
Fig. 2 is the hardware elementary diagram of shift knob quantity setting module of the present invention;
Fig. 3 is the hardware elementary diagram of physical switch module of the present invention;
Fig. 4 is the signal relation figure of the hardware module data of one embodiment of the invention;
Fig. 5 is the software flow pattern of one embodiment of the invention;
Fig. 6 is that the liquid crystal panel of one embodiment of the invention number of switches adjustment shows synoptic diagram;
Fig. 7 is the software/hardware functional block diagram of intelligent switch of the present invention.
Embodiment
Below in conjunction with the embodiment accompanying drawing innovation essence of the present invention is elaborated, the intelligent switch that the present invention proposes can set up the quantity of switch according to user's demand on their own, and its value can be set by the user is personalized voluntarily according to user's actual needs.
As shown in Figure 1, be the hardware elementary diagram of the intelligent switch of adjustable number of the present invention.Embedded main control chip wherein is the core of this intelligent switch, in following examples, and all embedded ATmega16 that all refers to adopt the TQFP44 of atmel corp encapsulation.
This chip is based on 8 CMOS microcontrollers of low-power consumption of the AVR risc architecture of enhancing.Because its advanced instruction set and single clock cycle instruction time, the data throughput of ATmega16 is up to 1MIPS/MHz, thereby can extenuate the contradiction of chip control module between power consumption and processing speed.The AVR kernel has abundant instruction set and 32 general purpose working registers, and all registers all directly are connected with arithmetic and logical unit (ALU), makes an instruction can in a clock period, visit two independently registers simultaneously.ATmega16 also has following characteristics in addition: the EEPROM of the In-System Programmable Flash of 16K byte (having the ability that reads while write), 512 bytes, the SRAM of 1K byte, 32 universaling I/O port lines, 32 general purpose working registers and be used for the signal gathering unit that the jtag interface of boundary scan constitutes.Debugging and programming in the ATmega16 supporting pieces, three flexible timer/counters (T/C) with comparison pattern, the sheet inside/outside interrupts, and serial USART able to programme has constituted the processing unit of this module.ATmega16 has the USB of initial conditions detecting device, 8 tunnel 10 ADC with optional differential input stage programmable-gain (TQFP encapsulation); ATmega16 also has the programmable watchdog timer of sheet internal oscillator, a SPI serial port, and six battery saving modes that can select through software.CPU quits work when being operated in idle pulley, and USART, two line interfaces, A/D converter, SRAM, T/C, SPI port and interrupt system continue to keep duty; When power-down mode, the crystal oscillator failure of oscillations, all functions module all quits work except that interruption and hardware reset; Under battery saving mode, nonsynchronous timer continues operation, allow the user to keep a time reference, and all the other functional modules is in dormant state; And when ADC squelch pattern, stop CPU and, the switching noise when changing with reduction ADC except the work of nonsynchronous timer with all I/O modules ADC; Under standby mode, have only the operation of crystal or resonant oscillator, all the other functional modules are in dormant state, make device only consume few electric current, have quick startup ability simultaneously; Under the expansion standby mode, then allow oscillator and nonsynchronous timer to work on.
The ATmega16 chip is produced with Atmel high-density nonvolatile memory technology.ISPFlash allows program storage through the ISP serial line interface in the sheet, and perhaps universal programmer is programmed, and also can programme through the boot that runs among the AVR kernel.Boot can be used any interface that application program is downloaded to and use the Flash memory block.The program in guiding Flash district continues operation when upgrading application Flash memory block, has realized programming operation.Be integrated in the chip through Flash, make ATmega16 become a powerful single-chip microcomputer, for the invention provides flexibly embodiment cheaply with 8 RISC CPU and In-System Programmable.
Each pin function implication of hardware elementary diagram chips control module as shown in Figure 1 is as shown in table 1:
Table 1
Pin number Pin function Function in the present embodiment
1 PB5(MOSI) Liquid crystal display data transmission position D5
Pin number Pin function Function in the present embodiment
2 PB5(MISO) Liquid crystal display data transmission position D6
3 PB7(SCK) Liquid crystal display data transmission position D7
4 REST System's Restart Signal input
5 VCC Digital voltage
6 GND Digitally
7 XTAL2 The output of crystal oscillator signal
8 XTAL1 The input of crystal oscillator signal
9 PD0(RXD) LCD E liquid crystal display enable signal
10 PD1(TXD) LCD CS1 liquid crystal display chip selection signal
11 PD2(INT0) LCD CS2 liquid crystal display chip selection signal
12 PD3(INT1) LCD LT liquid crystal display backlight control signal
13 PD4(OC1B) S/D switch list control/two controls are switched
14 PD5(OC1A) LCD CD liquid crystal display input command/data are switched
15 PD6(ICP1) LCD WR liquid crystal display read/write signal
16 PD7(OC2) SEN1 physical switch module 1 enable detection signal
17 VCC Digital voltage
18 GND Digitally
19 PC0(SCL) SEN2 physical switch module 2 enable detection signals
20 PC1(SDA) SEN3 physical switch module 3 enable detection signals
21 PC2(TCK) The input of TCK system testing clock
22 PC3(TMS) TMS system testing model selection
23 PC4(TDO) The output of TDO system test data
24 PC5(TDI) The input of TDI system test data
25 PC6(TOSC1) SW2 physical switch module 3 break-make control signals
26 PC7(TOSC2) SW1 physical switch module 2 break-make control signals
27 AVCC Aanalogvoltage
28 GND Simulation ground
29 AREF System A/D changes reference voltage
Pin number Pin function Function in the present embodiment
30 PA7(ADC7) SW0 physical switch module 1 break-make control signal
31 PA6(ADC6) RUN pilot lamp control signal
32 PA5(ADC5) DAC0 touch-screen aanalogvoltage X position signalling 1
33 PA4(ADC4) DAC1 touch-screen aanalogvoltage Y position signalling 2
34 PA3(ADC3) XP touch-screen X axle 1 detects voltage
35 PA2(ADC2) XM touch-screen X axle 2 detects voltage
36 PA1(ADC1) YP touch-screen Y axle 1 detects voltage
37 PA0(ADC0) YM touch-screen Y axle 2 detects voltage
38 VCC Digital voltage
39 GND Digitally
40 PB0(XCK/T0) Liquid crystal display data transmission position D0
41 PB1(T1) Liquid crystal display data transmission position D1
42 PB2(AIN0/INT2) Liquid crystal display data transmission position D2
43 PB3(AIN1/OC0) Liquid crystal display data transmission position D3
44 PB4(SS) Liquid crystal display data transmission position D4
As shown in Figure 2, be the hardware elementary diagram of shift knob quantity setting module of the present invention.Shown in figure; Position through each switch among adjustment (four switches) dual inline type DIP switch SW-DIP4; Can through SEN1, SEN2, SEN3, S/D on the corresponding main control chip high-low level of respective pins carry out the tetrad coded combination; According to the pairing code of table 2, can conveniently adjust the button quantity of intelligent switch.The DIP switch is connected with the 16th, 19,20,13 4 pin of main control chip ATmega16 through R21, R24, R25, R26 respectively.Main control chip ATmega16 can judge the button quantity of setting when preceding switch through the high-low level of inquiring about these 4 pins.R17 among the figure, R18, R19, R20 act as pull-up resistor, if the DIP switch is in off-state, the pin of its corresponding main control chip is a high level.Each resistance no current circulation among the figure; When the DIP switch is in on-state, electric current will flow into ground connection through the DIP switch through corresponding pull-up resistor, this moment its corresponding main control chip pin on be low level.
As shown in Figure 3, be the hardware elementary diagram of physical switch module of the present invention.Adopt the scheme of present comparative maturity, promptly bidirectional triode thyristor is the switch on and off control assembly.Optocoupler plays circuit and cuts off effects such as protection, zero passage detection and electric current amplification.Use the bidirectional triode thyristor of model among the embodiment, can bear the PV of 600V, the electric current of 12A as BT138-600; Use the optocoupler of model, also can bear the PV of 600V as MOC3061.As physical switch break-make control pin SW0 on the main control chip, SW1, when SW2 is low level, the MOC3061 conducting, the bidirectional triode thyristor conducting, external circuit is got into by L_IN, derives the corresponding circuit conducting by L_OUT1, L_OUT2, L_OUT3; As physical switch break-make control pin SW0 on the main control chip, SW1, when SW2 is high level, not conducting of MOC3061, the also not conducting of two-way optocoupler, corresponding circuit breaks off.
The above is the hardware configuration part of general general character in the embodiment of the present invention; And for for example operating the selectable hardware configuration part of input mode diversity, below through be input as the detailed description that preferred embodiment is carried out structure and function with touch screen module:
As shown in Figure 4, be the signal relation figure of the hardware module data of the embodiment of the invention.On scheming, can be clear that; Signal relation relates generally to five big main modular; Be respectively (PowerBoard2) power module, (Switch) switch module, (Mcu) main control chip module, (LCD) liquid crystal display panel module and (Touchscreen) touch screen module; Wherein (Touchscreen) touch screen module is for referring to that its type comprises touch-screens such as impedance type, electrostatic capacitive, optical profile type and ultrasonic formula by the formula input.It is incorporated on the liquid crystal display module, and links to each other through the pin circuit with control chip; (Switch) switch module can be divided into button quantity setting module, physical switch module.Each module pinout sees table 1 for details.
As shown in Figure 5, be the software flow pattern of inventive embodiments.After the initialization of intelligent switch power-on self-test, the setting situation of control chip detector switch button quantity on hardware and the software at first after knowing button quantity, is carried out shift knob and is set the corresponding detection with forceful electric power break-make output module.Then after above-mentioned detection is corresponding errorless; Carry out that touch panel region area and position are corresponding with button, forceful electric power break-make output interface module effective physics switch module quantity and position Detection step; When button settings and forceful electric power break-make output interface module, physical switch module complete corresponding after, promptly carry out the dynamic display routine of corresponding shift knob panel.At last after the button figure of liquid crystal display panel display setting function is as virtual push button; Call and move the corresponding program of touch panel regional location with button; Obtain the order effective coverage of touch panel each point, when touch panel is touched, can carry out corresponding break-make control; When the touch panel standby is not touched, executive button cycle detection repeatedly then.Wherein, Before getting into the dynamic display routine of shift knob panel; If shift knob quantity that sets and position thereof and forceful electric power break-make input interface module are inconsistent; Then can get into an anti-misoperation program, the user can adjust according to the miscue information that liquid crystal display shows, and carries out the corresponding matched trace routine once more.
As shown in Figure 6, be that the liquid crystal panel of one embodiment of the invention number of switches adjustment shows synoptic diagram; It is thus clear that, for the fixing liquid crystal display panel of area,, can display screen be carried out impartial cutting for the shift knob quantity that sets, form virtual push button with area identical separately.Shown in the figure is this intelligent switch button quantity from 1-2-3-4-9-16 distribution situation.In addition, for always controlling such as the switch of large-scale catering public place of entertainment, the circuit of its required control is far above 16, then can select for use panel surface to amass bigger liquid crystal display module, and adopts more the binary coding of long number to carry out quantity and set.
As shown in Figure 7, be the software/hardware functional block diagram of intelligent switch of the present invention.It is thus clear that the intelligent switch that function of the present invention is adjustable is based on hardware and software two aspect designed in conjunction.
Hardware components comprises shift knob quantity setting module, forceful electric power break-make output interface module, embedded chip control module, physical switch module, power module, liquid crystal display module and operation load module totally seven modules; Wherein chip control module be provided with the collecting unit that is used to read button quantity coded signal, be used for the signal Processing that is read mate corresponding executive routine processing unit, be used to remember the storage unit of one group of a plurality of executive routine, and according to the control module of executive routine to physical switch module output order; Power module is that interchange forceful electric power with 220V converts each modular circuit of intelligent switch into and operates the low circuit of needed direct current, and it can be that one wire system (having only live wire) is imported with double wire system (zero line, live wire); Forceful electric power break-make output interface module links to each other with the embedded chip control module, according to the needs of shift knob quantity, the physical switch module of respective numbers is plugged on the assigned address of this module.
Software section comprise shift knob quantity trace routine, shift knob set with the corresponding program of forceful electric power output module, forceful electric power break-make output interface module effective physics switch module quantity and position probing program, panel zone area and position with the corresponding program of button, the dynamic display routine of shift knob panel, anti-misoperation program, software set shift knob quantity program, operate input mode self-identifying program totally eight programs.Wherein, the anti-misoperation program also comprises the preparatory attention program of button, and button is provided with quantity and physical switch module number Error processing program, and button is provided with position and the physical switch module Error processing program that do not match.
Set input and use the mode of operating through touch screen module, be a kind of simple and direct, and be widely used in various occasions.Yet, the intelligent switch of adjustable number of the present invention, its operation load module can adopt the module of acoustic control and the sound signal collecting that matches, conversion equally; Perhaps light-operated and induced signal light source is also gathered, the module of conversion; The perhaps RF remote-controlled radiofrequency signal collection that is complementary with it, the module of conversion of reaching; Or based on the forms such as IP port load module of LAN.Special can't detect under the shift knob quantity setting situation when control chip after the initialization of intelligent switch power-on self-test, then startup replenishes setting based on the software set shift knob quantity program of serial ports, infrared, bluetooth, internet, GPRS/GSM automatically.These control signal input modes have been current comparatively proven technique; Through intelligent switch being changed based on the hardware of liquid crystal display module periphery and embedded chip control module stored unit is discerned accordingly, calling program writes, can realize being suitable for the hommization of different user requirement and the intelligent switch of adjustable number.And various operation input modes can be used separately; Increase under the little situation at cost; Can multiple mode together be incorporated in liquid crystal display module or the embedded chip control module, obtain the many settings of making something perfect even more perfect and the beneficial effect of control mode.This shows; The invention provides one and overlap feasible program with low cost, simple to operate, that failure rate is low; Reduced the cost of each link of industrial chain upstream and downstream, the use dirigibility that has improved intelligent switch all has great function and meaning to energy conservation and environmental protection.
In sum, the innovation essence of the intelligent switch of a kind of adjustable number of the present invention and its implementation has obtained sufficient explanation, the defective of broken through traditional mechanical formula switch and common intelligent switch quantity limitation, solidifying, and its practicality and feasibility are remarkable.Above accompanying drawing and description only provide as one embodiment of the present invention; It is not the enforcement category that limits this characteristic of adjustable number property of intelligent switch of the present invention with this; The model that the selection that this intelligent switch has multifarious operation input form, its hardware module also is not limited among the embodiment to be lifted; Event is all carries out simple modification or the formed design proposal of equivalence replacement for the embodiment of the invention and accompanying drawing thereof; Can reach the design of the purpose that solves switching function unicity problem, within the scope of application protection all of the present invention due to.

Claims (11)

1. the intelligent switch of an adjustable number; Has the embedded chip control module; And with said chip control module physical switch module, power module, the liquid crystal display module through pin circuit separate connection respectively; And be integrated with the operation load module on the said liquid crystal display module, it is characterized in that: said intelligent switch has shift knob quantity setting module and forceful electric power break-make output interface module, respectively through pin circuit connection-core sheet control module; And said chip control module be provided be used to read button quantity set the collecting unit of coded signal, be used for the signal Processing that is read mate corresponding executive routine processing unit, be used to remember the storage unit of one group of a plurality of executive routine, and according to the control module of executive routine to physical switch module output order.
2. the intelligent switch of a kind of adjustable number according to claim 1, it is characterized in that: said chip control module also comprises: executive routine writes/reading unit, crystal oscillator unit and watchdog circuit unit.
3. the intelligent switch of a kind of adjustable number according to claim 1, it is characterized in that: said forceful electric power break-make output interface module links to each other with said chip control module, and is plugged with the physical switch module of corresponding number of switches above that.
4. the intelligent switch of a kind of adjustable number according to claim 1, it is characterized in that: said shift knob quantity setting module is based on the modular structure that four switch dual inline type DIP switches are processed; Or the signal receiving module of processing based on COM1 and control bus.
5. the intelligent switch of a kind of adjustable number according to claim 1 is characterized in that: the electronic switching circuit of said physical switch module for being made up of optocoupler, controllable silicon, relay, triode is used to control the break-make of forceful electric power circuit.
6. the intelligent switch of a kind of adjustable number according to claim 1; It is characterized in that: said operation load module reaches wherein one or more integration of controlling load module Network Based for based on the touch screen module of liquid crystal display, RF remote-controlled module, light-operated module, acoustic control module.
7. the intelligent switch of a kind of adjustable number according to claim 6 is characterized in that: said touch screen module is for referring to that its type of touch screens comprises impedance type, electrostatic capacitive, optical profile type and ultrasonic formula by the formula input.
8. the intelligent switch implementation method of an adjustable number; Said intelligent switch has the embedded chip control module; And with said chip control module physical switch module, power module, the liquid crystal display module through pin circuit separate connection respectively; And be integrated with the operation load module on the said liquid crystal display module; It is characterized in that: said intelligent switch has shift knob quantity setting module and forceful electric power break-make output interface module, at first sets button quantity coded signal through said operation load module facing switch button quantity setting module, and this coded signal is imported in the chip control module through collecting unit; Then detect the corresponding situation of the number of switches set and forceful electric power break-make output interface module by processing unit, after anti-misoperation program monitoring matching, call executive routine carries out the shift knob panel on the liquid crystal display module dynamic demonstration by control module; The button cycles of carrying out at last based on the operation load module detects, and the operation signal that occurs on the operation load module of integrating with liquid crystal display is carried out the identification of chip control module, and carries out corresponding switch motion with instruction driving physical switch module.
9. the intelligent switch implementation method of a kind of adjustable number according to claim 8 is characterized in that: said button quantity coding adopts the binary coding rule, and its span is according to the figure place decision of coding: button quantity maximal value=2 The coding figure place
10. the intelligent switch implementation method of a kind of adjustable number according to claim 8, it is characterized in that: said executive routine comprises
1. shift knob quantity is set trace routine; It is first program of calling automatically by said chip control module behind the said intelligent switch power-on self-test; Be used to detect the respective pins that is connected with said shift knob quantity setting module; Obtain the coding of setting, obtain the corresponding button quantity that is provided with through the comparison coding;
2. shift knob is set and the corresponding program of forceful electric power output module, is used to describe the corresponding logical relation of physical switch of assigning on button quantity that liquid crystal panel shows and the forceful electric power break-make output interface module;
3. forceful electric power break-make output interface module effective physics switch module quantity and position probing program are used to check physical switch module installation site and effective quantity, as the decision condition of anti-misoperation program;
4. the corresponding program in panel zone area and position with button; Be meant under the situation that liquid crystal display panel area is fixed; The button positions and the area size variation that cause to being changed by number of switches will be set up corresponding relationship with the physical switch module with each point coordinate on the operation load module that liquid crystal display is integrated under different button quantity situation;
5. the dynamic display routine of shift knob panel is meant according to the button quantity of setting, the dynamic virtual switch that shows the analog switch profile of respective numbers on the liquid crystal display panel;
6. anti-misoperation program is carried out pre-detection to the various faults or the mistake that occur in the switch use;
7. software set shift knob quantity program is meant on the hardware foundation that is independent of shift knob quantity setting module, the method for software set button quantity;
8. operate input mode self-identifying program, discern, respond to the module input signal of different modes, and corresponding each setting and concrete executive routine of pointing to.
11. the intelligent switch implementation method of a kind of adjustable number according to claim 10; It is characterized in that: said anti-misoperation program comprises the preparatory attention program of button; Button is provided with quantity and physical switch module number Error processing program, and button is provided with position and the physical switch module Error processing program that do not match.
CN2009100291773A 2009-01-13 2009-01-13 Amount-adjustable intelligent switch and its implementing method Expired - Fee Related CN101477349B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009100291773A CN101477349B (en) 2009-01-13 2009-01-13 Amount-adjustable intelligent switch and its implementing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009100291773A CN101477349B (en) 2009-01-13 2009-01-13 Amount-adjustable intelligent switch and its implementing method

Publications (2)

Publication Number Publication Date
CN101477349A CN101477349A (en) 2009-07-08
CN101477349B true CN101477349B (en) 2012-05-30

Family

ID=40838077

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009100291773A Expired - Fee Related CN101477349B (en) 2009-01-13 2009-01-13 Amount-adjustable intelligent switch and its implementing method

Country Status (1)

Country Link
CN (1) CN101477349B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101997481B (en) * 2009-08-27 2013-02-13 海洋王照明科技股份有限公司 Intelligent motor control system and method
JP5519811B2 (en) * 2010-01-25 2014-06-11 エディソン グローバル サーキット,エルエルシー Circuit breaker panel
CN105677034A (en) * 2016-01-07 2016-06-15 安徽大学 Gesture input device based on mems technology
CN105573139B (en) * 2016-02-18 2018-07-31 夏竹兵 A kind of switch panel and house control system
CN106843096A (en) * 2017-04-25 2017-06-13 郑州科技学院 Smart button is switched and its switches set
CN108322967A (en) * 2018-01-11 2018-07-24 深圳市朗天动影技术有限公司 A kind of intelligent switch device
CN109688729A (en) * 2019-01-23 2019-04-26 浙江灵杰智控科技有限公司 A kind of intelligent switch production technology based on wave-soldering

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2082431U (en) * 1991-01-21 1991-08-07 钟升 General single-slice micro-type controller of small-switch-amount system
US5471190A (en) * 1989-07-20 1995-11-28 Timothy D. Schoechle Method and apparatus for resource allocation in a communication network system
JP2003345478A (en) * 2002-04-15 2003-12-05 Youxun Sci & Technol Co Ltd Intelligent type device capable of sharing identical user input/output interface by al intelligent type modules
CN1580995A (en) * 2004-05-13 2005-02-16 安徽鑫龙电器股份有限公司 Scanning matrix for programmeable controller switch input
CN1716682A (en) * 2005-08-03 2006-01-04 京信通信技术(广州)有限公司 Matrix type radio frequency switch intelligent switching control series
CN201373996Y (en) * 2009-01-22 2009-12-30 苏州工业园区和嘉光电技术有限公司 Intelligent switch with adjustable amount

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5471190A (en) * 1989-07-20 1995-11-28 Timothy D. Schoechle Method and apparatus for resource allocation in a communication network system
CN2082431U (en) * 1991-01-21 1991-08-07 钟升 General single-slice micro-type controller of small-switch-amount system
JP2003345478A (en) * 2002-04-15 2003-12-05 Youxun Sci & Technol Co Ltd Intelligent type device capable of sharing identical user input/output interface by al intelligent type modules
CN1580995A (en) * 2004-05-13 2005-02-16 安徽鑫龙电器股份有限公司 Scanning matrix for programmeable controller switch input
CN1716682A (en) * 2005-08-03 2006-01-04 京信通信技术(广州)有限公司 Matrix type radio frequency switch intelligent switching control series
CN201373996Y (en) * 2009-01-22 2009-12-30 苏州工业园区和嘉光电技术有限公司 Intelligent switch with adjustable amount

Also Published As

Publication number Publication date
CN101477349A (en) 2009-07-08

Similar Documents

Publication Publication Date Title
CN101477350B (en) Function-adjustable intelligent switch and its implementing method
CN101477349B (en) Amount-adjustable intelligent switch and its implementing method
CN201373996Y (en) Intelligent switch with adjustable amount
CN101482759B (en) Greenhouse environment control apparatus and method
Banerjee et al. Microcontroller based polyhouse automation controller
EP2517357A2 (en) User interface with annular touch sensor array
US20070260790A1 (en) Embedded controller and method for updating the firmware thereof
US20150235606A1 (en) Lcd controller with oscillator prebias control
CN103761942A (en) Digital tube display and key control chip with array display multiplexing algorithm
CN103913699A (en) Circuit, system and method for testing main board keyboard interface
CN203786262U (en) Mainboard keyboard interface test circuit and system
CN105554978A (en) Energy-saving system for intelligently controlling lighting of classrooms employing bluetooths
Ingale et al. Automated solar based agriculture pumping
US8274466B2 (en) System and method for providing bias voltages to pad logic of an LCD controller
CN205450845U (en) Simple and easy greenhouse control system
CN103004515A (en) Intelligent flowerpot
CN104037940B (en) The integrated circuit of digital power lock control and method
CN205352422U (en) Multi -functional hall sensor module
CN203490567U (en) Intelligent control circuit of breeding environment
CN106535404A (en) Led lamp energy-saving control system
CN105650575B (en) Three-dimensional LED hourglass lamp
CN2842507Y (en) Programmable experiment controller for pants
CN106154910A (en) A kind of intelligent switch system
CN1719355A (en) Method of single chip computer using marker position change for multi control modes and peripheral structure
CN202404580U (en) GPIO (general purpose input/output) 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
ASS Succession or assignment of patent right

Owner name: ZHUANG SONGLIN

Free format text: FORMER OWNER: SUZHOU INDUSTRY PART HEJIA PHOTOELECTRICITY TECHNOLOGY CO., LTD.

Effective date: 20100524

Owner name: DOU XIAOMING CHENG SHUYI QIU RONG

Free format text: FORMER OWNER: ZHUANG SONGLIN DOU XIAOMING CHENG SHUYI

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 215126 NO.77 PINGSHENG ROAD, QINGQIUPU INDUSTRIAL PARK, SUZHOU INDUSTRIAL PARK, JIANGSU PROVINCE TO: 215021 A1203, KEJIXINTIANDI, NO.1355 JINJIHU AVENUE, SUZHOU INDUSTRIAL PARK, JIANGSU PROVINCE

TA01 Transfer of patent application right

Effective date of registration: 20100524

Address after: 215021, science and technology new world A1203, Jinji Lake Road, Suzhou Industrial Park, Jiangsu, 1355

Applicant after: Zhuang Songlin

Co-applicant after: Dou Xiaoming

Co-applicant after: Cheng Shuyi

Co-applicant after: Qiu Rong

Address before: Suzhou City, Jiangsu province 215126 industrial park green Qiupu Ping Sheng Industrial Park Road No. 77

Applicant before: Suzhou Industrial Park Hecal Optoelectronics Technology Co., Ltd.

Co-applicant before: Zhuang Songlin

Co-applicant before: Dou Xiaoming

Co-applicant before: Cheng Shuyi

ASS Succession or assignment of patent right

Owner name: SHANGHAI UIWORKS ELECTRONIC TECH. CO., LTD.

Free format text: FORMER OWNER: ZHUANG SONGLIN

Effective date: 20120305

Free format text: FORMER OWNER: DOU XIAOMING CHENG SHUYI QIU RONG

Effective date: 20120305

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 215021 SUZHOU, JIANGSU PROVINCE TO: 200433 YANGPU, SHANGHAI

TA01 Transfer of patent application right

Effective date of registration: 20120305

Address after: 200433 room D312, building 128, No. 1 Xiang Yin Road, Shanghai, Yangpu District

Applicant after: Shanghai Uiworks Electronic Tech. Co., Ltd.

Address before: 215021, science and technology new world A1203, Jinji Lake Road, Suzhou Industrial Park, Jiangsu, 1355

Applicant before: Zhuang Songlin

Co-applicant before: Dou Xiaoming

Co-applicant before: Cheng Shuyi

Co-applicant before: Qiu Rong

C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120530

Termination date: 20180113