Detection of switching states by mapping the switching states to a potential that can be read at an analog input.

The circuit design using resistors, switches, capacitors, and optocouplers addresses the challenge of detecting multiple switching states with reduced key bouncing and isolation, enabling reliable manual control in human-machine interfaces.

DE202023102011U1Active Publication Date: 2024-08-29WAGO VERW GMBH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
DE202023102011
Authority / Receiving Office
DE · DE
Patent Type
Utility models
Current Assignee / Owner
Filing Date
2023-04-18
Publication Date
2024-08-29
Estimated Expiration
2033-04-30

AI Technical Summary

Technical Problem

Existing technologies face challenges in efficiently detecting and distinguishing multiple switching states of switches using analog inputs, particularly in human-machine interfaces, due to issues with key bouncing and the need for galvanic isolation.

Method used

A circuit design utilizing resistors and switches in parallel or series configurations, combined with capacitors and optocouplers, to form voltage or current dividers, allowing processors to read and assign potential or current values to specific switching states, and incorporating transistors for galvanic isolation.

Benefits of technology

Enables accurate detection of multiple switching states with reduced sensitivity to key bouncing and provides galvanic isolation, facilitating reliable manual control of electronic devices through human-machine interfaces.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure DE202023102011U1_0000_ABST
    Figure DE202023102011U1_0000_ABST
Patent Text Reader

Abstract

Device (100) comprising: a processor (30) having an analog input; a first resistor (20) and a first switch (12) connected in parallel to the first resistor (20); and a second resistor (22) and a second switch (14) connected in parallel to the second resistor (14); wherein the first resistor (20) and the second resistor (22) are configured to form a voltage divider; wherein the processor (30) is configured to read a potential formed between the first resistor (20) and the second resistor (22) via the analog input and to assign the potential to a plurality of value ranges (A, B, C); and wherein at least a first value range (A) is assigned to a switching state (S1) of the first switch (12) and a second value range (B) is assigned to a switching state (S2) of the second switch (14).
Need to check novelty before this filing date? Find Prior Art

Description

AREA This description relates to the detection of switching states of switches. In particular, this description relates to the manual generation of a signal that can be read and evaluated by a processor. BACKGROUND To make the function of electronic devices manually controllable by a user, they can be equipped with a human-machine interface. For example, a human-machine interface can comprise an analog input of a processor, where the potential applied to the input can be controlled by the user, and the processor can read and evaluate the potential. For example, the processor can be configured to switch from a first operating state to a second operating state in response to a potential change. SUMMARY A first device according to the invention comprises a processor having an analog input, a first resistor and a first switch connected in parallel with the first resistor, and a second resistor and a second switch connected in parallel with the second resistor, wherein the first resistor and the second resistor are provided to form a voltage divider, wherein the processor is configured to read in a potential formed between the first resistor and the second resistor via the analog input and to assign the potential to a plurality of value ranges, and wherein at least one first value range is assigned to a switching state of the first switch and a second value range is assigned to a switching state of the second switch. Furthermore, a third value range can be assigned to a switching state of the first switch and a switching state of the second switch. In this context, the term "processor," as used in the context of the present description and the claims, is to be understood in particular as an electronic circuit that is configured to process instructions from a predetermined instruction set. The sequence of the instructions to be processed can result from a program stored in a memory assigned to the processor, which program specifies the function provided by the processor. The provided function can also depend on an operating mode that can be manually specified by a user of the device. For example, the program can provide for two, three or more operating modes, and the change between the operating modes can be triggered by the switching states of the switches. E.g.A first operating mode can be activated when the first switch is closed and the second switch is open, and a second operating mode can be activated when the first switch is open and the second switch is closed. Furthermore, a third operating mode can be activated when the first switch is closed and the second switch is closed, or when the first switch is open and the second switch is open. Furthermore, the term "analog input," as used in the context of this description and the claims, is to be understood in particular as an electrical connection configured to assign a digital value (approximately) representing the numerical value of the potential to an electrical potential applied at the input. Furthermore, the term "switch," as used in the context of this description and the claims, is to be understood in particular as an electrical component configured to conductively connect two connections of the electrical component ("switch closed") or non-conductively connect two connections of the electrical component ("switch open") depending on the switching state. The device may further comprise a third resistor and a third switch connected in parallel with the third resistor, and a fourth resistor and a fourth switch connected in parallel with the fourth resistor, wherein the third resistor, the first resistor, the second resistor and the fourth resistor are connected in series. The third resistor, the first resistor, the second resistor, and the fourth resistor can be connected in series between a positive terminal and a negative terminal of a DC voltage supply. The negative terminal can be connected to a ground potential during operation, and the positive terminal can be connected to a logic potential during operation. Alternatively, the negative terminal can be connected to the logic potential during operation, and the positive terminal can be connected to the ground potential during operation. The resistors can have the same or different resistance values. If the resistors have different resistance values, this makes it possible to distinguish whether the first switch or the third switch is open / closed when only one of the two switches is closed, and whether the second switch or the fourth switch is open / closed when only one of the two switches is closed. A second device according to the invention comprises a processor having an analog input, a first resistor and a first switch connected in series with the first resistor, a second resistor and a second switch connected in series with the second resistor, and a third resistor, wherein the first resistor and the second resistor are provided to form a current divider and the third resistor is connected in series with the current divider, wherein the processor is configured to read in a potential dependent on a first current flow through the first resistor and / or a second current flow through the second resistor and formed between the third resistor and the first resistor and / or the second resistor via the analog input and to assign the potential to a plurality of value ranges,and wherein at least a first value range is assigned to a switching state of the first switch and a second value range is assigned to a switching state of the second switch., The devices according to the invention can comprise a first button and a second button, wherein the first switch is controlled by the first button and the second switch is controlled by the second button or wherein the first switch is designed as the first button and the second switch is designed as the second button. The devices according to the invention can further comprise a first capacitor connected in parallel with the first button and a second capacitor connected in parallel with the second button. These capacitors can achieve greater insensitivity to button bounce. The devices according to the invention may further comprise a first optocoupler and a second optocoupler, wherein the first switch is controlled by the first optocoupler and the second switch is controlled by the second optocoupler or wherein the first switch is designed as the first optocoupler and the second switch as the second optocoupler. The devices according to the invention may further comprise a first transistor and a second transistor, wherein the first switch is controlled or implemented by the first transistor and the second switch is controlled or implemented by the second transistor. The transistors may be field-effect transistors. Furthermore, any other switching elements may also be used. Furthermore, it is understood that all steps carried out when using the devices according to the invention can be features of a corresponding method. BRIEF DESCRIPTION OF THE DRAWINGS The invention is explained below in the detailed description using exemplary embodiments, reference being made to drawings in which: Fig. 1 is a schematic representation of parts of a device according to the invention according to a first embodiment; Fig. 2 is a schematic representation of parts of a device according to the invention according to a second embodiment; Fig. 3 illustrates a first possible modification of the devices shown in Fig. 1 and Fig. 2; Fig. 4 illustrates a second possible modification of the devices shown in Fig. 1 and Fig. 2; Fig. 5 illustrates a third possible modification of the devices shown in Fig. 1 and Fig. 2; Fig. 6 is a schematic representation of parts of a device according to the invention according to a third embodiment; Fig. 7 is a schematic representation of parts of a device according to the invention according to a fourth embodiment; Fig.Fig. 8 illustrates a first possible modification of the devices shown in Fig. 6 and Fig. 7; Fig. 9 illustrates a second possible modification of the devices shown in Fig. 6 and Fig. 7; Fig. 10 illustrates a third possible modification of the devices shown in Fig. 6 and Fig. 7; Fig. 11 shows a schematic representation of a device according to the invention, which can comprise the parts shown in Fig. 1 to Fig. 10; and Fig. 12 shows a schematic representation of a potential curve as a function of two switch states. In the drawings, identical or functionally similar elements are identified by the same reference symbols. DETAILED DESCRIPTION Fig. 1 shows a circuit 10 for mapping the switching states of four switches 12, 14, 16, and 18 connected in series. Each of the four switches 12, 14, 16, and 18 is connected in parallel with one of the four resistors 20, 22, 24, and 26, so that five series-connected resistors 20, 22, 24, 26, and 28 are arranged between the positive terminal V+ and the negative terminal GND of the DC voltage supply, four of which resistors (i.e., resistors 20, 22, 24, and 26) can each be individually bridged. When switches 12, 14, 16, and 18 are closed or opened, the voltage U applied to the branch (which is based on the potential between resistors 20 and 22 and the selected reference voltage) changes. If the resistance values of resistors 20 and 24 and resistors 22 and 26 differ, then by evaluating the voltage U it is not only possible to determine whether one of the corresponding switches 12 and 16 or 14 and 18 is closed / open, but also which of the switches 12 and 16 or 14 and 18 is closed / open. The resistor 28 can also distinguish whether there is no voltage applied to the circuit 10 or whether the switches 12, 14, 16 and 18 are open. By arranging an additional resistor on the negative pole side, it can also be detected whether the circuit 10 is conductively connected to the negative pole of the power supply or whether there is a fault, e.g. a cable break. As shown in Fig. 2, the circuit 10 is independent of the polarity of the DC voltage supply and can also be operated with negative voltage. As shown in Fig. 3 using the example of switch 12, switches 12, 14, 16, and 18 can be designed as manually operable switches such as push buttons (or controlled via manually operable switches such as push buttons). Likewise, switches 12, 14, 16, and 18 can be designed as (photo)transistors, as shown in Fig. 4 and Fig. 5 using the example of switch 12 in Fig. 1. For example, the use of optocouplers and MOSFETs (instead of pressing a button) enables the feedback from an electronic circuit to be evaluated either galvanically isolated or directly. For example, circuit 10 can be used as a collective feedback evaluation unit or for the purpose of determining the position along a route. Instead of a direct connection to the analog input of a processor, an optocoupler can also be interposed, which provides the evaluated signal in a galvanically isolated manner. As shown in Fig. 6, the circuit 10 can also be designed as a current circuit in which one of the switches 12, 14, 16 and 18 and one of the resistors 20, 22, 24 and 26 are connected in series, so that four current paths connected in parallel exist, wherein each of the current paths can be activated individually by closing the respective switch 12, 14, 16 and 18. The resistance resulting from the current paths connected in parallel depends on which of the switches 12, 14, 16 and 18 is closed or open, so that the voltage U applied to the branch can be used to determine how many, and in the case of different resistance values of the resistors 20, 22, 24, 26 and 28, which of the switches 12, 14, 16 and 18 are closed or open. As shown in Fig. 7, the circuit 10 shown in Fig. 6 is also independent of the polarity of the DC power supply and can also be operated with a negative voltage. Furthermore, the circuit 10 can be modified to include two current paths upstream of the branch and two current paths downstream of the branch. As shown in Fig. 8 using the example of switch 12, switches 12, 14, 16, and 18 can be designed as manually operable switches such as push buttons (or controlled via manually operable switches such as push buttons). Likewise, switches 12, 14, 16, and 18 can be designed as (photo)transistors, as shown in Fig. 9 and Fig. 10 using the example of switch 12 in Fig. 6. As indicated in Fig. 11, the branch can be connected to the analog input of a processor 30 of a microcontroller 32, via which the voltage U can be read in and evaluated. Based on the read-in voltage, the processor 30 can change its operating mode or perform an action. If the four switches 12, 14, 16 and 18 are designed as buttons or if the four switches 12, 14, 16 and 18 are controlled by buttons, a control panel for manually controlling the microcontroller 32 can be created. By adding further switches and resistors (in the form of series circuits, as in Fig. 1 or Fig. 2 , or in the form of parallel circuits, as in Fig. 6 and Fig. 7 ), the control panel can be expanded if necessary. Fig. 12 shows the curve of the voltage U in the embodiment shown in Fig. 1 as a function of the circuit state S1 / S2 of the switches 12 and 14. If switch 12 is opened, the voltage U increases and is in the value range A. If switch 14 is opened, the voltage U decreases and is in the value range B. If both switches 12 and 14 are opened, the voltage decreases (since the resistor 22 is greater than the resistor 20) and is in the value range C. By assigning the voltage U to one of the value ranges A, B or C, the processor 30 can thus deduce the switching states of the switches 12 and 14. By taking into account the other switches 16 and 18 and possibly additional switches, their switching states can be detected by taking into account further value ranges. LIST OF REFERENCE SYMBOLS 10 Circuit 12 Switch 14 Switch 16 Switch 18 Switch 20 Resistor 22 Resistor 24 Resistor 26 Resistor 28 Resistor 30 Processor 32 Microcontroller 100 Device A Value range B Value range C Value range GND Ground potential S1 Switching state S2 Switching state U Voltage V+ Logic potential V- Logic potential

Claims

Device (100), comprising: a processor (30) having an analog input; a first resistor (20) and a first switch (12) connected in parallel with the first resistor (20); and a second resistor (22) and a second switch (14) connected in parallel with the second resistor (14); wherein the first resistor (20) and the second resistor (22) are provided to form a voltage divider; wherein the processor (30) is configured to read in a potential formed between the first resistor (20) and the second resistor (22) via the analog input and to assign the potential to a plurality of value ranges (A, B, C); and wherein at least one first value range (A) is assigned to a switching state (S1) of the first switch (12) and a second value range (B) is assigned to a switching state (S2) of the second switch (14). Device (100) according to claim 1, wherein a third value range (C) is assigned to a switching state (S1) of the first switch (12) and a switching state (S2) of the second switch (14). The device (100) of claim 1 or 2, further comprising:a third resistor (24) and a third switch (16) connected in parallel with the third resistor (24); anda fourth resistor (26) and a fourth switch (18) connected in parallel with the fourth resistor (26);wherein the third resistor (24), the first resistor (20), the second resistor (22), and the fourth resistor (26) are connected in series. The device (100) according to claim 3, wherein the third resistor (24), the first resistor (20), the second resistor (22), and the fourth resistor (26) are connected in series between a positive pole and a negative pole of a DC voltage supply; wherein the negative pole is provided to be connected to a ground potential (GND) during operation, and the positive pole is provided to be connected to a logic potential (V+) during operation; or wherein the negative pole is provided to be connected to the logic potential (V-) during operation, and the positive pole is provided to be connected to the ground potential (GND) during operation. Device (100) according to one of claims 1 to 4, wherein a resistance value of the first resistor (20) corresponds to a resistance value of the second resistor (22). Device (100) according to one of claims 1 to 4, wherein the resistors (20, 22, 24, 26) have different resistance values. A device (100) comprising: a processor (30) having an analog input; a first resistor (20) and a first switch (12) connected in series with the first resistor (20); a second resistor (22) and a second switch (14) connected in series with the second resistor (22); and a third resistor (28); wherein the first resistor (20) and the second resistor (22) are provided to form a current divider, and the third resistor (28) is connected in series with the current divider; wherein the processor (30) is configured to read in a potential, dependent on a first current flow through the first resistor (20) and / or a second current flow through the second resistor (22), and formed between the third resistor (28) and the first resistor (20) and / or the second resistor (22), via the analog input, and to assign the potential to a plurality of value ranges (A, B, C);andwherein at least a first value range (A) is assigned to a switching state (S1) of the first switch (20) and a second value range (B) is assigned to a switching state (S2) of the second switch (22); Device (100) according to one of claims 1 to 7, further comprising: a first button; and a second button; wherein the first switch (12) is controlled by the first button and the second switch (14) is controlled by the second button; or wherein the first switch (12) is configured as the first button and the second switch (14) is configured as the second button. The device (100) of claim 8, further comprising:a first capacitance connected in parallel with the first button; anda second capacitance connected in parallel with the second button. The device (100) according to any one of claims 1 to 7, further comprising: a first optocoupler; and a second optocoupler; wherein the first switch (12) is controlled by the first optocoupler and the second switch (14) is controlled by the second optocoupler; or wherein the first switch (12) is configured as the first optocoupler and the second switch (14) is configured as the second optocoupler. The device (100) according to any one of claims 1 to 7, further comprising: a first field-effect transistor; and a second field-effect transistor; wherein the first switch (12) is controlled by the first field-effect transistor and the second switch (14) is controlled by the second field-effect transistor; or wherein the first switch (12) is configured as the first field-effect transistor and the second switch (14) is configured as the second field-effect transistor.

Citation Information

Patent Citations

  • Methods and apparatus for multiplexed digital inputs using an analog-to-digital converter

    US20070120719A1

  • Actuation of a light source

    WO2012022649A1