CN111443798A - Control method of touch switch, touch switch and storage medium - Google Patents

Control method of touch switch, touch switch and storage medium Download PDF

Info

Publication number
CN111443798A
CN111443798A CN202010209235.7A CN202010209235A CN111443798A CN 111443798 A CN111443798 A CN 111443798A CN 202010209235 A CN202010209235 A CN 202010209235A CN 111443798 A CN111443798 A CN 111443798A
Authority
CN
China
Prior art keywords
processor
touch
output circuit
touch panel
output
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010209235.7A
Other languages
Chinese (zh)
Inventor
张景弘
吴健锐
黄俊炜
唐磊
李振威
周幸
陈育新
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology 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 Gree Electric Appliances Inc of Zhuhai, Zhuhai Lianyun Technology Co Ltd filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202010209235.7A priority Critical patent/CN111443798A/en
Publication of CN111443798A publication Critical patent/CN111443798A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/017Gesture based interaction, e.g. based on a set of recognized hand gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The disclosure relates to the technical field of switches, in particular to a control method of a touch switch, the touch switch and a storage medium, which are used for solving the technical problems of high manufacturing cost and great potential safety hazard in a scheme for realizing multi-connection control in the existing touch switch technology. The method comprises the following steps: the processor senses the action type, the action path and the located touch area of the touch action on the touch panel through the touch panel; the processor determines an output circuit corresponding to the sensed touch area; and the processor controls the output control unit to adjust the determined power output state of the output circuit according to the sensed action type and the action path.

Description

Control method of touch switch, touch switch and storage medium
Technical Field
The present disclosure relates to the field of switch technologies, and in particular, to a control method for a touch switch, and a storage medium.
Background
Switches are common electronic components that are commonly used to control the switching of an electrical circuit. With the development of the technology, touch switches based on the touch technology appear, and the touch switches adopt touch sensing elements to replace mechanical keys on the traditional switches, so that the operation is more convenient.
When multi-connection control is realized in the existing touch switch technology, a switch is physically divided into a plurality of control units, and each control unit corresponds to one touch sensing element and is used for controlling different output circuits. The switch is simple and easy to implement in principle, but the required electronic components are multiplied along with the increase of the number of switch control gates, so that the manufacturing cost is higher, and the potential safety hazard is increased.
Disclosure of Invention
The disclosure provides a control method of a touch switch, the touch switch and a storage medium, which are used for solving the technical problems of high manufacturing cost and great potential safety hazard in a scheme for realizing multi-connection control in the existing touch switch technology.
In order to achieve the above object, in a first aspect of the embodiments of the present disclosure, a method for controlling a touch switch is provided, where the touch switch includes a processor, and a touch panel and an output control unit connected to the processor, where the touch panel is virtually divided into at least one touch area, and each touch area corresponds to one output circuit, the method includes:
the processor senses the action type, the action path and the touch area of the touch action on the touch panel through the touch panel;
the processor determines an output circuit corresponding to the sensed touch area;
and the processor controls the output control unit to adjust the determined power output state of the output circuit according to the sensed action type and the action path.
With reference to the first aspect, in a first possible implementation manner of the first aspect, the controlling, by the processor, the output control unit to adjust the determined power output state of the output circuit according to the sensed motion type and the sensed motion path includes:
when the processor determines that the action type is single click, the on-off state of the output circuit is changed; or
And when the processor determines that the action type is dragging, correspondingly increasing or decreasing the electric power output by the output circuit according to the dragging direction and distance represented by the action path.
With reference to the first aspect, in a second possible implementation manner of the first aspect, the controlling, by the processor, the output control unit to adjust the determined power output state of the output circuit according to the sensed motion type and the sensed motion path includes:
and the processor controls the output control unit to adjust the power output state of the output circuit through Pulse Width Modulation (PWM) according to the action type and the action path.
With reference to the first aspect, in a third possible implementation manner of the first aspect, the method further includes:
the processor re-divides the touch area on the touch panel according to the received configuration instruction; and/or the presence of a gas in the gas,
and the processor adjusts the output circuit corresponding to each touch area on the touch panel according to the received configuration instruction.
With reference to the first aspect, in a fourth possible implementation manner of the first aspect, before the processor determines the output circuit corresponding to the sensed touch area, the method further includes:
the processor judges whether the touch control action is a preset gesture according to the action path;
and if so, the processor controls the output control unit to combine with a preset power output state matched with the preset gesture, and adjusts the power output state of each output circuit.
With reference to the first aspect, the first possible implementation manner of the first aspect, the second possible implementation manner of the first aspect, the third possible implementation manner of the first aspect, or the fourth possible implementation manner of the first aspect, in a fifth possible implementation manner of the first aspect, a plurality of indicator lights connected to the output control unit are disposed below the touch panel, and the touch panel is permeable to light, and the method further includes:
the processor regulates and controls the plurality of indicator lights through the output control unit to indicate the power output state of each output circuit, wherein the indicator lights of each touch area are respectively used for indicating the power output state of the output circuit corresponding to each touch area.
With reference to the first aspect, the first possible implementation manner of the first aspect, the second possible implementation manner of the first aspect, the third possible implementation manner of the first aspect, or the fourth possible implementation manner of the first aspect, in a sixth possible implementation manner of the first aspect, the touch switch further includes a light sensor connected to the processor, and the method further includes:
the processor senses the ambient brightness through the light sensor;
the processor regulates and controls the brightness of a plurality of indicator lights arranged under the touch panel according to the sensed ambient brightness, and/or regulates the power output state of an output circuit connected with the electric lights.
In a second aspect of the embodiments of the present disclosure, a touch switch is provided, where the touch switch includes a processor, and a touch panel, an output control unit, and a memory connected to the processor, where:
the memory stores a computer program;
the processor is configured to execute the computer program in the memory to implement the first aspect or the steps of the control method in any one of the first, second, third, and fourth possible implementation manners of the first aspect.
With reference to the second aspect, in a first possible implementation manner of the second aspect, a plurality of indicator lights connected to the output control unit are disposed below the touch panel, and the touch panel is transparent to light, where:
the processor is further configured to execute the computer program in the memory to implement the steps of the control method in the fifth possible implementation manner in the first aspect.
With reference to the second aspect, in a second possible implementation manner of the second aspect, the touch switch further includes a light sensor connected to the processor, where:
the processor is further configured to execute the computer program in the memory to implement the steps of the control method according to the sixth possible implementation manner in the first aspect.
In a third aspect of the embodiments of the present disclosure, a storage medium is provided, on which a computer program is stored, which when executed by a processor implements the steps of the method of any one of the above first aspects.
By adopting the technical scheme, the following technical effects can be at least achieved:
in the disclosure, the touch panel is virtually divided into at least one touch area, each touch area corresponds to one output circuit, and after sensing a touch action, the processor determines the corresponding output circuit according to the touch area where the touch action is located and adjusts the power output state of the circuit. Based on the scheme, only one touch panel is needed in the touch switch to realize multi-connection control, the production cost of the multi-connection switch is reduced, and a plurality of electronic elements do not need to be spliced in narrow switches, so that the potential safety hazard is reduced.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows.
Drawings
The accompanying drawings, which are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description serve to explain the disclosure without limiting the disclosure. In the drawings:
fig. 1 is a schematic diagram of a touch panel of a touch switch according to an exemplary embodiment of the disclosure.
Fig. 2 is a schematic diagram of a touch panel of another touch switch according to an exemplary embodiment of the disclosure.
Fig. 3 is a flowchart illustrating a method for controlling a touch switch according to an exemplary embodiment of the disclosure.
Fig. 4 is a schematic diagram of a touch panel of another touch switch according to an exemplary embodiment of the disclosure.
Fig. 5 is a schematic diagram of a touch panel of another touch switch according to an exemplary embodiment of the disclosure.
Fig. 6 is a schematic diagram of a touch panel of another touch switch according to an exemplary embodiment of the disclosure.
Fig. 7 is a block diagram of a touch switch according to an exemplary embodiment of the disclosure.
Detailed Description
Embodiments of the present disclosure will be described in detail with reference to the accompanying drawings and examples, so that how to apply technical means to solve technical problems and achieve the corresponding technical effects can be fully understood and implemented. The embodiments and various features in the embodiments of the present application can be combined with each other without conflict, and the formed technical solutions are all within the protection scope of the present disclosure.
In addition, the term "and/or" herein is only one kind of association relationship describing an associated object, and means that there may be three kinds of relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" in this document generally indicates that the preceding and following related objects are in an "or" relationship unless otherwise specified.
In the related art, when the touch switch realizes multi-connection control, the switch is physically divided into a plurality of control units, each control unit corresponds to one touch sensing element, and the touch sensing elements are independent of each other. Through research, relevant personnel find that the existing multi-touch switch scheme is equivalent to splicing a plurality of touch switches together, and although the scheme is simple and easy to implement in principle, the required electronic elements are multiplied along with the increase of the number of switch control gates, so that the manufacturing cost is higher, more electronic elements are likely to interfere with each other, and the potential safety hazard during the use of the switch is increased.
The touch switch comprises at least a Processor, a touch panel connected with the Processor, and an output control unit, wherein the Processor can communicate with the touch panel and the output control unit, the Processor is realized by one or more Application Specific Integrated Circuits (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable logic Device (Programmable L analog Device, P L D), a Field Programmable Gate Array (FPGA), a controller, a microcontroller, a microprocessor or other electronic elements, the touch panel provides a touch sensing function, specifically, a touch panel of a type of resistance type, an optical type or a wave type, a user can touch the touch panel to perform touch operation, the output control unit is used for controlling the output of power output, the on-off regulation of power output voltage, the PWM output control unit is used for controlling the output of power output, the PWM output control unit, and the like.
In a specific implementation process, the touch switch may be used to control an electric lamp, a motor or other electric devices, and in terms of configuration, the touch switch may be a panel switch or other switches. The touch switch can be a single-connection, double-connection or multi-connection switch according to the maximum number of connectable output circuits of the output control unit.
For the purpose of describing the embodiments of the present disclosure, in the following embodiments, the touch switch is often used as a panel switch, and the controlled electric device is an electric lamp for example. However, it should be noted that the implementation and application range of the touch switch and the control method described in the embodiments of the present disclosure are not limited thereto.
In the embodiment of the disclosure, the touch panel is virtually divided into one or more touch areas, and each touch area is configured to correspond to one output circuit. As shown in fig. 1, a whole touch panel 10 on the touch switch is virtually divided into two touch areas, namely a touch area 101 and a touch area 102, and at this time, the touch switch can be used as a dual switch; as shown in fig. 2, the touch panel 10 can be further virtually divided into four touch areas, namely a touch area 201, a touch area 202, a touch area 203 and a touch area 204, and in this case, the touch switch can be used as a quad switch.
In the specific implementation process, the maximum number of touch areas that can be divided by the touch panel is equal to the maximum number of output circuits that can be connected by the output control unit. For example, a quadruple touch switch capable of connecting four output circuits at most may virtually divide the touch panel into one touch area for use as a quadruple switch, or virtually divide the touch panel into two, three or four touch areas for use as a quadruple, triple or quadruple switch.
Fig. 3 is a flowchart of a control method of a touch switch according to an exemplary embodiment of the present disclosure, so as to solve technical problems of high manufacturing cost and large potential safety hazard in a scheme of implementing multi-gang control in the existing touch switch technology. As shown in fig. 3, the method includes:
s31, the processor senses the action type, the action path and the touch area of the touch action on the touch panel through the touch panel.
S32, the processor determines an output circuit corresponding to the sensed touch area.
And S33, the processor controls the output control unit to adjust the determined power output state of the output circuit according to the sensed action type and the action path.
In step S31, the processor senses a touch action through the touch panel to obtain an action type, a touch area and an action path of the touch action. The sensed action types comprise single click, double click, dragging and the like, and different types of touch actions can represent different operation instructions. The sensed touch area refers to a touch area where the touch action is detected on the touch panel, and different touch areas correspond to different output circuits. The sensed action path represents the moving condition of the touch action on the touch panel, the action path of the single-click action or the double-click action is represented as a point, and the action path of the dragging action is represented as a motion track with directionality.
The sensing of the touch action of the object such as the finger or the stylus through the touch panel is a mature technology in the technical field of mobile phones, and the specific implementation manner of the technology is not repeated in the embodiments of the present disclosure.
In step S32, the processor determines an output circuit corresponding to the sensed touch area according to the corresponding relationship between the touch area and the output circuit set when the touch switch is configured.
Further, in step S33, the processor controls the output control unit to adjust the determined power output state of the output circuit according to the motion type and motion path of the touch motion.
In a possible implementation manner, the processor may control the output control unit to adjust the power output state of the output circuit according to the motion type and the motion path of the touch motion as follows:
first, the processor changes the on-off state of the output circuit when determining that the action type is single click. Specifically, if the output circuit is in an off state, the output circuit is turned on; if the output circuit is in a connection state, the output circuit is disconnected.
And secondly, when the processor determines that the action type is dragging, correspondingly increasing or decreasing the electric power output by the output circuit according to the dragging direction and distance represented by the action path. Specifically, the drag direction is used to determine whether to increase or decrease the output power, and the distance dragged is used to determine the adjustment amount, the larger the distance, the larger the adjustment amount. For example, referring to fig. 4, fig. 4 is a schematic diagram of the touch panel 40, the processor senses an action path 411 on the touch area 401, and if the vertical upward direction in fig. 4 indicates that the output power is increased, the processor controls the output control unit to increase the output power of the output circuit corresponding to the touch area 401, and the adjustment amount may be determined based on the length of the action path 411 in the vertical direction.
In a possible implementation manner, when the processor controls the output control unit to adjust the determined power output state of the output circuit according to the sensed motion type and motion path of the touch motion, the power output state may be adjusted in a PWM adjustment manner.
For example, the electric equipment externally connected with the output circuit is a lamp, and the brightness of the lamp can be increased by adjusting the duty ratio of the output power through PWM; for another example, the output circuit is externally connected with a fan, and the duty ratio of the output power can be reduced through PWM adjustment to reduce the rotating speed of the fan motor.
In a possible implementation manner, the touch switch provides a reconfiguration function, and a user can reconfigure the function of the touch switch according to actual needs. Specifically, the user may input a configuration instruction for instructing how to perform reconfiguration to the touch switch, and the processor performs reconfiguration according to the configuration instruction after receiving the configuration instruction. When the processor is reconfigured, the touch areas on the touch panel may be subdivided, and the output circuits corresponding to the touch areas on the touch panel may be adjusted.
Based on the reconfiguration function, in the case of adding electric equipment such as lamps and the like, the existing switch does not need to be replaced as long as the touch switch has redundant input circuit interfaces; in addition, the user can conveniently adjust the electric equipment which can be controlled by each touch area according to the use habit of the user.
In daily life, users often gradually form use habits of various electric devices. For example, referring to fig. 5, the touch area 501 on the touch switch in fig. 5 corresponds to the electric lamp in the living room, the touch area 502 corresponds to the electric lamp in the hallway, and the touch area 503 corresponds to the electric lamp in the bathroom, and after a period of time, the user considers that the brightness of the electric lamp in the living room at 70% of power, the brightness of the electric lamp in the hallway at 50% of power, and the brightness of the electric lamp in the bathroom at 100% of power are optimum. The power output states of these different output circuits are combined to form a combination of power output states.
In order to facilitate rapid control of the power output states of the output circuits, in one possible implementation, a user may store the power output state combinations in the touch switch and assign corresponding preset gestures, such as "O" shape, "Z" shape, and the like. Before determining the output circuit corresponding to the sensed touch area in step S32, the processor may determine whether the touch action is a preset gesture according to the sensed action path, and if so, the processor controls the output control unit to combine a preset power output state matched with the preset gesture to adjust the power output state of each output circuit.
In a specific implementation process, a user can set a plurality of preset gestures in the touch switch and preset power output state combinations matched with the preset gestures so as to quickly regulate and control the power output states of the output circuits through simple gesture actions.
In one possible embodiment, the touch switch uses a touch panel transparent to light, for example, a touch panel transparent or translucent in whole or partial area, the touch panel is specifically used for transmitting light of a plurality of indicator lights arranged under the touch panel, and the indicator lights are connected to an output control unit of the touch switch, specifically, L ED lights, etc. in a specific implementation process, the indicator lights under the touch panel can be arranged in a mode of uniformly arranging the indicator lights under the whole touch panel, or in a mode of arranging the indicator lights in partial area under the touch panel, for example, as shown in fig. 5, an indicator light strip 511, an indicator light strip 512, and an indicator light strip 513 can be respectively arranged in each touch area, wherein the area marked with a grid indicates that the indicator lights in the area are in a lighting state.
Under the condition that the indicating lamps are distributed under the touch panel, the processor can regulate and control the indicating lamps through the output control unit so as to indicate the power output state of each output circuit, wherein the indicating lamps of each touch area are respectively used for indicating the power output state of the output circuit corresponding to each touch area.
Referring to fig. 6, for example, the electric devices connected to the touch switch in fig. 6 are electric lamps, wherein indicator lamps are uniformly disposed in all the touch areas 601, 602, and 603 of the touch panel 60, and the indicator lamps overlap with the touch areas, which are an indicator lamp strip 611, an indicator lamp strip 612, and an indicator lamp strip 613, respectively. As shown in fig. 6, the area marked with the grid indicates that the indicator lamp in the area is in an on state, the indicator lamp in the indicator lamp strip 611 is turned off, the output circuit corresponding to the touch area 601 is in an off state, and the indicator lamp corresponding to the touch area 601 is also in an off state; the indicator light strip 612 has 40% of indicator lights on, which indicates that the output circuit corresponding to the touch area 602 outputs power at a load state of 40% currently, and also indicates that the electric light corresponding to the touch area 602 is 40% bright currently; the indicator light of the indicator light strip 613 is fully on, which indicates that the output circuit corresponding to the touch area 603 outputs power in the current full load state, and also indicates that the electric light corresponding to the touch area 603 is currently at 100% brightness.
In a specific implementation process, in the process of dragging a finger or other objects on the touch panel, the processor can control the indicator lamp to make corresponding changes along with the dragging action through the output control unit, so that an effect similar to dragging of a progress bar is realized, and a user can visually see the adjustment condition of the power output state.
In one possible embodiment, the touch switch further includes a light sensor, and the light sensor is connected to the processor of the touch switch. The processor can sense the ambient brightness through the light sensor, regulate and control the brightness of a plurality of indicator lights arranged under the touch panel according to the sensed ambient brightness, and/or adjust the power output state of an output circuit connected with the electric lights.
The power output state of the output circuit connected with the electric lamp is adjusted according to the ambient brightness, and intelligent adjustment of the light is achieved. For example, when the night is coming and the light is dark temporarily, the processor can control to turn on the lamp, and along with the change of the ambient brightness, the processor can control to increase or decrease the brightness of the lamp.
One or more of the technical solutions at least have the following technical effects:
(1) in the disclosure, the touch panel is virtually divided into at least one touch area, each touch area corresponds to one output circuit, and after sensing a touch action, the processor determines the corresponding output circuit according to the touch area where the touch action is located and adjusts the power output state of the circuit. Based on the scheme, only one touch panel is needed in the touch switch to realize multi-connection control, the production cost of the multi-connection switch is reduced, and a plurality of electronic elements do not need to be spliced in narrow switches, so that the potential safety hazard is reduced.
(2) The touch switch provides a reconfiguration function, and when electric equipment such as a lamp is added, the existing switch does not need to be replaced as long as the touch switch has redundant input circuit interfaces; in addition, the user can conveniently adjust the electric equipment which can be controlled by each touch area according to the use habit of the user.
(3) The touch panel below has laid the pilot lamp, and finger or other objects pull the in-process on touch panel, and the treater can control the pilot lamp and follow the action of pulling and make corresponding change, realizes being similar to the effect of dragging the progress bar, makes the adjustment condition that the user can see electric power output state directly perceivedly.
(4) The light sensor is arranged on the touch switch, so that the brightness of the indicating lamp under the touch panel can be regulated according to the ambient brightness, the power output state of the output circuit connected with the electric lamp is regulated, and the intelligent regulation of the light is realized.
It should be noted that the method embodiment shown in fig. 1 is described as a series of acts or combinations for simplicity of description, but it should be understood by those skilled in the art that the present disclosure is not limited by the order of acts or steps described. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required in order to implement the disclosure.
Fig. 7 is a block diagram of a touch switch 70 according to an exemplary embodiment of the disclosure, where the touch switch 70 at least includes a processor, and a touch panel 72, an output control unit 73 and a memory 74 connected to the processor 71. As shown in fig. 7, the touch switch 70 may further include an input/output (I/O) interface 75, a communication component 76, and the like. Wherein the memory 74 stores a computer program, and the processor 71 is configured to execute the computer program in the memory 74 to perform the following operations:
sensing the action type, the action path and the touch area of the touch action on the touch panel 72 through the touch panel 72;
determining an output circuit corresponding to the sensed touch area;
and controlling the output control unit 73 to adjust the determined power output state of the output circuit according to the sensed action type and the action path.
In a possible implementation manner, the processor 71 executes an operation of controlling the output control unit 73 to adjust the determined power output state of the output circuit according to the sensed motion type and the motion path, specifically:
controlling the output control unit 73 to adjust the determined power output state of the output circuit according to the sensed motion type and motion path, including:
when the action type is determined to be single click, the on-off state of the output circuit is changed; or
And when the action type is determined to be dragging, correspondingly increasing or decreasing the electric power output by the output circuit according to the dragging direction and distance represented by the action path.
In a possible implementation manner, the processor 71 executes an operation of controlling the output control unit 73 to adjust the determined power output state of the output circuit according to the sensed motion type and the motion path, specifically:
according to the action type and the action path, the output control unit 73 is controlled to adjust the power output state of the output circuit through Pulse Width Modulation (PWM).
In a possible embodiment, the processor 71 is further configured to execute the computer program in the memory 74 to perform the following operations:
re-dividing the touch area on the touch panel 72 according to the received configuration instruction; and/or the presence of a gas in the gas,
and adjusting the output circuits corresponding to the touch areas on the touch panel 72 according to the received configuration command.
In a possible embodiment, the processor 71 is further configured to execute the computer program in the memory 74 to perform the following operations:
before determining the output circuit corresponding to the sensed touch area, judging whether the touch action is a preset gesture according to the action path;
if yes, the output control unit 73 is controlled to combine with the preset power output state matched with the preset gesture, and the power output state of each output circuit is adjusted.
In a possible embodiment, a plurality of indicator lights connected to the output control unit 73 are disposed under the touch panel 72, the touch panel 72 is transparent to light, and the processor 71 is further configured to execute the computer program in the memory 74 to perform the following operations:
the plurality of indicator lights are regulated and controlled by the output control unit 73 to indicate the power output state of each output circuit, wherein the indicator lights of each touch area are respectively used for indicating the power output state of the output circuit corresponding to each touch area.
In a possible embodiment, the touch switch 70 further comprises a light sensor connected to the processor 71, and the processor 71 is further configured to execute the computer program in the memory 74 to perform the following operations:
sensing ambient brightness by the light sensor;
and regulating and controlling the brightness of a plurality of indicator lamps arranged under the touch panel 72 and/or adjusting the power output state of an output circuit connected with an electric lamp according to the sensed ambient brightness.
In a specific implementation process, the processor 71 is configured to control the overall operation of the touch switch 70, so as to complete all or part of the steps in the above-mentioned control method for the touch switch. The memory 74 is used to store various types of data to support operation at the touch switch 70, which may include, for example, instructions for any application or method operating on the touch switch 70, as well as application-related data. The Memory 74 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk, or optical disk. The I/O interface 75 provides an interface between the processor 71 and other interface modules, such as a keyboard, mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 76 is used for wired or wireless communication between the touch switch 70 and other devices. Wireless communication, such as Wi-Fi, bluetooth, Near Field Communication (NFC), 2G, 3G, 4G, or 5G, or a combination of one or more of them, so that the corresponding communication component 76 may include: Wi-Fi module, bluetooth module, NFC module.
In an exemplary embodiment, the touch switch 70 may be implemented by one or more ASICs, DSPs, DSPDs, P L D, FPGA, controllers, microcontrollers, microprocessors, or other electronic components for executing the above-mentioned control method of the touch switch.
With regard to the apparatus in the above-described embodiments, the specific manner in which the respective components perform operations has been described in detail in relation to the embodiments of the method and will not be elaborated upon here.
The present disclosure also provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of the method for controlling a touch switch according to any one of the above-mentioned optional embodiments. For the control method of the touch switch implemented when the computer program is executed on the processor, reference may be made to the specific embodiment of the control method of the touch switch in the present disclosure, which is not described herein again.
The preferred embodiments of the present disclosure are described in detail with reference to the accompanying drawings, however, the present disclosure is not limited to the specific details of the above embodiments, and various simple modifications may be made to the technical solution of the present disclosure within the technical idea of the present disclosure, and these simple modifications all belong to the protection scope of the present disclosure.
It should be noted that the various features described in the above embodiments may be combined in any suitable manner without departing from the scope of the invention. In order to avoid unnecessary repetition, various possible combinations will not be separately described in this disclosure.
In addition, any combination of various embodiments of the present disclosure may be made, and the same should be considered as the disclosure of the present disclosure, as long as it does not depart from the spirit of the present disclosure.

Claims (11)

1. A control method of a touch switch, the touch switch comprising a processor, a touch panel connected to the processor, and an output control unit, wherein the touch panel is virtually divided into at least one touch area, and each touch area corresponds to an output circuit, the method comprising:
the processor senses the action type, the action path and the touch area of the touch action on the touch panel through the touch panel;
the processor determines an output circuit corresponding to the sensed touch area;
and the processor controls the output control unit to adjust the determined power output state of the output circuit according to the sensed action type and the action path.
2. The control method according to claim 1, wherein the processor controls the output control unit to adjust the determined power output state of the output circuit according to the sensed motion type and the motion path, and includes:
when the processor determines that the action type is single click, the on-off state of the output circuit is changed; or
And when the processor determines that the action type is dragging, correspondingly increasing or decreasing the electric power output by the output circuit according to the dragging direction and distance represented by the action path.
3. The control method according to claim 1, wherein the processor controls the output control unit to adjust the determined power output state of the output circuit according to the sensed motion type and the motion path, and includes:
and the processor controls the output control unit to adjust the power output state of the output circuit through Pulse Width Modulation (PWM) according to the action type and the action path.
4. The control method according to claim 1, characterized in that the method further comprises:
the processor re-divides the touch area on the touch panel according to the received configuration instruction; and/or the presence of a gas in the gas,
and the processor adjusts the output circuit corresponding to each touch area on the touch panel according to the received configuration instruction.
5. The method of claim 1, wherein before the processor determines the output circuit corresponding to the sensed touch area, the method further comprises:
the processor judges whether the touch control action is a preset gesture according to the action path;
and if so, the processor controls the output control unit to combine with a preset power output state matched with the preset gesture, and adjusts the power output state of each output circuit.
6. The control method according to any one of claims 1 to 5, wherein a plurality of indicator lights connected to the output control unit are disposed under the touch panel, the touch panel being transparent to light, the method further comprising:
the processor regulates and controls the plurality of indicator lights through the output control unit to indicate the power output state of each output circuit, wherein the indicator lights of each touch area are respectively used for indicating the power output state of the output circuit corresponding to each touch area.
7. The control method of claims 1 to 5, wherein the touch switch further comprises a light sensor connected to the processor, the method further comprising:
the processor senses the ambient brightness through the light sensor;
the processor regulates and controls the brightness of a plurality of indicator lights arranged under the touch panel according to the sensed ambient brightness, and/or regulates the power output state of an output circuit connected with the electric lights.
8. A touch switch, comprising a processor, and a touch panel, an output control unit and a memory connected to the processor, wherein:
the memory stores a computer program;
the processor for executing the computer program in the memory to implement the steps of the method of any one of claims 1 to 5.
9. The touch switch of claim 8, wherein a plurality of indicator lights connected to the output control unit are disposed under the touch panel, and the touch panel is transparent to light, wherein:
the processor is further configured to execute the computer program in the memory to implement the steps of the method of claim 6.
10. The touch switch of claim 8, further comprising a light sensor coupled to the processor, wherein:
the processor is further configured to execute the computer program in the memory to implement the steps of the method of claim 7.
11. A storage medium on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202010209235.7A 2020-03-23 2020-03-23 Control method of touch switch, touch switch and storage medium Pending CN111443798A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010209235.7A CN111443798A (en) 2020-03-23 2020-03-23 Control method of touch switch, touch switch and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010209235.7A CN111443798A (en) 2020-03-23 2020-03-23 Control method of touch switch, touch switch and storage medium

Publications (1)

Publication Number Publication Date
CN111443798A true CN111443798A (en) 2020-07-24

Family

ID=71649011

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010209235.7A Pending CN111443798A (en) 2020-03-23 2020-03-23 Control method of touch switch, touch switch and storage medium

Country Status (1)

Country Link
CN (1) CN111443798A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201639820U (en) * 2010-01-08 2010-11-17 张万明 Multi-gang control switch
US20110001722A1 (en) * 2009-07-02 2011-01-06 Nartron Corporation Vehicle accessory control interface having capactive touch switches
CN102073403A (en) * 2009-11-24 2011-05-25 联发科技股份有限公司 Touch sensitive apparatus and method for providing side touch panel
CN103809888A (en) * 2012-11-12 2014-05-21 北京三星通信技术研究有限公司 Mobile terminal and manipulation method thereof
CN105677129A (en) * 2016-03-25 2016-06-15 京东方(河北)移动显示技术有限公司 Touch control detection circuit, driving method of touch control detection circuit and display device
CN106293479A (en) * 2016-08-22 2017-01-04 维沃移动通信有限公司 The control method of a kind of screen backlight brightness and mobile terminal
CN209748518U (en) * 2019-01-28 2019-12-06 佛山市汇凯达科技有限公司 Touch control switch panel

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110001722A1 (en) * 2009-07-02 2011-01-06 Nartron Corporation Vehicle accessory control interface having capactive touch switches
CN102073403A (en) * 2009-11-24 2011-05-25 联发科技股份有限公司 Touch sensitive apparatus and method for providing side touch panel
CN201639820U (en) * 2010-01-08 2010-11-17 张万明 Multi-gang control switch
CN103809888A (en) * 2012-11-12 2014-05-21 北京三星通信技术研究有限公司 Mobile terminal and manipulation method thereof
CN105677129A (en) * 2016-03-25 2016-06-15 京东方(河北)移动显示技术有限公司 Touch control detection circuit, driving method of touch control detection circuit and display device
CN106293479A (en) * 2016-08-22 2017-01-04 维沃移动通信有限公司 The control method of a kind of screen backlight brightness and mobile terminal
CN209748518U (en) * 2019-01-28 2019-12-06 佛山市汇凯达科技有限公司 Touch control switch panel

Similar Documents

Publication Publication Date Title
US11563595B2 (en) Home device controller with touch control grooves
US10986720B2 (en) Intelligent lighting control system automated adjustment apparatuses, systems, and methods
US10743388B2 (en) Intelligent lighting control multi-switch apparatuses
CN109076687B (en) Gesture-based control device for controlling electrical loads
CN105630290A (en) Interface processing method and device based on mobile device
US11032894B2 (en) Intelligent lighting control system line voltage detection apparatuses, systems, and methods
CN108713350B (en) Techniques for gesture-based control of color-tunable lighting
KR101572819B1 (en) System for controlling light sources
US11422521B2 (en) Configuring a load control system
WO2018009758A1 (en) Intelligent lighting control system electrical connector apparatuses, systems, and methods
CN104053286B (en) A kind of intelligent switch with lamplight brightness and color adaptation
CN103955327B (en) Information processing method and electronic equipment
CN204707310U (en) Multichannel light modulating device and apply its lighting device
US11147143B2 (en) Intelligent lighting control system bulb self identification apparatuses, systems, and methods
US8803704B2 (en) Traffic signal loading platform
US11528794B2 (en) Intelligent lighting control system multi-way apparatuses, systems, and methods
US10159133B2 (en) System for distributing low-voltage DC power to LED luminaires
CN111506225A (en) Control method of touch switch, touch switch and storage medium
CN111443798A (en) Control method of touch switch, touch switch and storage medium
CN206224202U (en) Intelligent double-control is switched
WO2018180635A1 (en) Operation device and apparatus control system
CN105573130A (en) Control panel and control method
CN204883230U (en) Automatically controlled membrane glass controlling means that adjusts luminance
US20160018809A1 (en) Ladder chart creation device, monitoring device, computer program, and machine control device
US20190103745A1 (en) Load Controller with Constant Power Mode

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination