Switch for microcomputer input
阅读说明:本技术 微型计算机输入用开关 (Switch for microcomputer input ) 是由 山下明彦 古瀬达也 中田知里 铃木章平 于 2018-01-24 设计创作,主要内容包括:本发明提供一种即使在浸水时触电电蚀也少,能够可靠地检测开关的断开状态的微型计算机输入用开关。在具有构成开关(5)的一侧触电(6)和另一侧触电(7)的微型计算机输入用开关中,作为用于检测开关(5)的断开状态的电流,将输出脉冲波形的恒定电流施加于开关(5)。将恒定电流设为100mA以下的微小电流。一侧触电(6)或另一侧触电(7)与用于检测开关(5)的断开状态的电压阈值检测单元(4)连接,并具备控制部(8),控制部(8)基于电压阈值检测单元(4)的输出信号来判断开关(5)的断开状态。控制部(8)根据施加的电流超过预定的阈值(Va),判断为开关(5)为断开状态。(The invention provides a microcomputer input switch which is less in electric shock and electric erosion even when immersed in water and can reliably detect the off state of the switch. In a microcomputer input switch having a first side contact 6 and a second side contact 7 constituting a switch 5, a constant current of an output pulse waveform is applied to the switch 5 as a current for detecting an off state of the switch 5. The constant current is set to a minute current of 100mA or less. The one-side contact (6) or the other-side contact (7) is connected to a voltage threshold detection unit (4) for detecting the off-state of the switch (5), and is provided with a control unit (8), and the control unit (8) determines the off-state of the switch (5) on the basis of an output signal of the voltage threshold detection unit (4). The control unit (8) determines that the switch (5) is in the off state when the applied current exceeds a predetermined threshold value (Va).)
1. A switch for microcomputer input, having a first contact (6) and a second contact (7) constituting a switch (5),
as a current for detecting the off state of the switch (5), a constant current of an output pulse waveform is applied to the switch (5).
2. The switch for microcomputer input according to claim 1,
the constant current is a minute current of 100mA or less.
3. The switch for microcomputer input according to claim 1 or claim 2,
the one-side contact (6) or the other-side contact (7) is connected with a voltage threshold detection unit (4) for detecting the disconnection state of the switch (5),
and a control unit (8), wherein the control unit (8) determines the off state of the switch (5) based on the output signal of the voltage threshold detection unit (4),
the control unit (8) determines that the switch (5) is in the off state based on the fact that the applied current exceeds a predetermined threshold value (Va).
4. The switch for microcomputer input according to any one of claims 1 to 3,
the width (T1) of the pulse of the current applied to the switch (5) is set to a minimum value including a range in which the detected voltage value exceeds a threshold value (Pa).
5. The switch for microcomputer input according to claim 3,
the detection of the open state of the switch (5) is performed a plurality of times within the width (T1) of the pulse of current conducted to the switch (5).
6. The switch for microcomputer input according to claim 3,
when the detected voltage value exceeds a threshold value (Va), the current application is stopped.
7. The switch for microcomputer input according to claim 3,
the control unit (8) detects the off states of the plurality of switches in a predetermined order,
the sequence is set such that the detection interval of the off state of the switch requiring a fast response speed becomes short.
Technical Field
The present invention relates to a microcomputer input switch, and more particularly, to a microcomputer input switch applied to a manual switch for operating electrical equipment of a vehicle or the like.
Background
Conventionally, in a manual switch for operating electrical equipment of a vehicle such as a horn switch or a starter switch, there has been an attempt to prevent operation failure of the electrical equipment when the switch is immersed in water due to moisture such as rain.
Disclosure of Invention
Problems to be solved by the invention
However, the switching circuit disclosed in
The present invention has been made to solve the above-described problems of the prior art, and an object of the present invention is to provide a microcomputer input switch in which, in a non-waterproof switch, electric shock and corrosion are reduced even when the switch is immersed in water, and the off state of the switch can be reliably detected.
Means for solving the problems
In order to achieve the above object, a first feature of the present invention is that, in a microcomputer input switch having a first side contact (6) and a second side contact (7) constituting a switch (5), a constant current of an output pulse waveform is applied to the switch (5) as a current for detecting an off state of the switch (5).
Further, the second characteristic is that the constant current is a minute current of 100mA or less.
Furthermore, the third characteristic is that the one side contact (6) or the other side contact (7) is connected to a voltage threshold detection means (4) for detecting an off state of the switch (5), and a control unit (8) is provided, the control unit (8) determines the off state of the switch (5) based on an output signal of the voltage threshold detection means (4), and the control unit (8) determines that the switch (5) is in the off state when the applied current exceeds a predetermined threshold (Va).
In addition, according to a fourth aspect, a width (T1) of a pulse of the current applied to the switch (5) is set to a minimum value including a range in which the detected voltage value exceeds a threshold value (Va).
Furthermore, a fifth feature is that the detection of the open state of the switch (5) is performed a plurality of times within the width (T1) of the pulse of the current that is conducted to the switch (5).
In addition, according to a sixth feature, the current application is stopped when the detected voltage value exceeds a threshold value (Va).
Further, according to a seventh aspect, the control unit (8) detects the off states of the plurality of switches in a predetermined order set such that the detection interval of the off states of the switches requiring a high response speed becomes shorter.
Effects of the invention
According to the first feature, in the microcomputer input switch having the one-side contact (6) and the other-side contact (7) constituting the switch (5), a constant current of an output pulse waveform is applied to the switch (5) as a current for detecting an off state of the switch (5), so that an amount of current applied when detecting an on/off state of the switch can be reduced, and electric corrosion of the contacts during immersion can be minimized. Further, since the current having the pulse waveform is output, the off state of the switch can be detected with high accuracy by monitoring the pulse waveform of the current. Further, when the resistance value is increased by the oxide film in the case of a constant current, the oxide film is broken by increasing the voltage between contacts in order to allow a predetermined current to flow, and the generation of the oxide film can be suppressed. This can keep the on-resistance low.
According to the second feature, since the constant current is a minute current of 100mA or less, the progress of the contact erosion can be suppressed to the minimum.
According to the third feature, the one side contact (6) or the other side contact (7) is connected to a voltage threshold detection unit (4) for detecting an off state of the switch (5), and a control unit (8) for determining the off state of the switch (5) based on an output signal of the voltage threshold detection unit (4) is provided, and the control unit (8) determines that the switch (5) is in the off state based on the fact that the applied current exceeds a predetermined threshold value (Va), so that the off state of the switch can be reliably detected in a pulse waveform manner.
According to the fourth feature, since the width (T1) of the pulse of the current applied to the switch (5) is set to a minimum value including a range in which the detected voltage value exceeds the threshold value (Va), the detection time of the off state of the switch can be shortened, and the electrolytic corrosion during the water immersion can be suppressed to a minimum.
According to the fifth feature, since the detection of the off state of the switch (5) is performed a plurality of times within the width (T1) of the pulse of the current flowing through the switch (5), the detection accuracy of the off state of the switch can be improved.
According to the sixth aspect, since the current application is stopped when the detected voltage value exceeds the threshold value (Va), the time for applying the current can be shortened, and the galvanic corrosion during immersion can be minimized.
According to the seventh feature, the control unit (8) detects the off states of the plurality of switches in a predetermined order, and the order is set such that the detection interval of the off states of the switches requiring a high response speed is shortened, so that the response speed of the horn switch, the stop lamp switch, or the like can be increased.
Drawings
Fig. 1 is a schematic diagram (switch on state) of a switch circuit to which the switch structure of the present embodiment is applied.
Fig. 2 is a schematic diagram (switch off state) of a switch circuit to which the switch structure of the present embodiment is applied.
Fig. 3 is a graph showing a transition of a voltage of an input signal input to the voltage threshold detection means in a state where the switch is turned off.
Fig. 4 is a flowchart showing the procedure of the off
Fig. 5 is a flowchart showing the procedure of the off
Fig. 6 is a diagram showing changes in the switch electric shock when used for a long time in a submerged state.
Detailed Description
Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. Fig. 1 and 2 are schematic diagrams of a
The
The
Conventionally, in order to detect the off state of the
In the present embodiment, in the configuration in which the
Fig. 3 is a graph showing a transition of the voltage of the input signal to the voltage threshold detection means 4 in the off state of the
In the present embodiment, the minute current is a pulse current having a pulse waveform. Thus, the off state of the switch can be easily detected by monitoring the pulse waveform of the current, and further, the amount of the applied current can be suppressed, thereby reducing the electric erosion of the electric shock.
At time t, 0, the switch is in the off state to be detected. At time t1, the application of the input signal to the voltage threshold detection unit 4 is started, and the first pulse of the minute constant current starts to rise. Further, since the off state of the
Here, the width T1 of the pulse of the applied constant current is set to a minimum value including a range in which the detected voltage value exceeds the threshold Va based on the peak voltage V2. This can shorten the detection time of the off state of the
In the present embodiment, in order to improve the detection accuracy of the off state of the
Further, as another method, it may be set so that the application of the current is immediately stopped when the detected voltage value exceeds the threshold Va, thereby shortening the time for applying the current and minimizing the galvanic corrosion during the immersion.
On the other hand, the
Fig. 4 is a flowchart showing a procedure of the off
In step S5, it is determined whether or not the detection voltage V exceeds the threshold voltage Va. If an affirmative determination is made in step S5, the process proceeds to step S6, where it is determined that the switch is in the off state, and the application of the minute constant current is stopped in step S7, and the series of controls is ended. If a negative determination is made in step S5, steps S6 and S7 are skipped and the series of control is ended.
Fig. 5 is a flowchart showing a procedure of the off
In step S10, detection of the off states of the plurality of switches is started. In step S11, the application of the minute constant current is started. In step S12, it is determined whether or not the application elapsed time T exceeds a predetermined time T2. If an affirmative determination is made in step S12, the process proceeds to step S13, where voltage detection is performed. On the other hand, if a negative determination is made in step S12, the process returns to the determination in step S12.
In step S14, it is determined whether or not the detection voltage V exceeds the threshold voltage Va. If an affirmative determination is made in step S14, the routine proceeds to step S15, where the disconnection detection counter is incremented by (+ 1). On the other hand, if a negative determination is made in step S14, step S15 is skipped and the process proceeds to step S16.
In step S16, it is determined whether or not the application elapsed time T is less than a predetermined time T3. If an affirmative determination is made in step S16, the process returns to step S13. On the other hand, if a negative determination is made in step S16, the process proceeds to step S17.
In step S17, it is determined whether or not the disconnection detection count value Nc exceeds 5 times. If an affirmative determination is made in step S17, the process proceeds to step S18, where it is determined that the switch is in the off state. Then, in step S19, the off detection counter is reset, and in step S20, the application of the minute constant current is stopped, and the series of controls is ended.
Fig. 6 is a diagram showing changes in the switch electric shock when used for a long time in a submerged state. (a) The state in which a current is applied by the method of the present embodiment is shown, and (b) the state in which a current is applied by the conventional method is shown. In the conventional embodiment of (b), since the current is continuously applied to the switch in order to detect the off state of the switch, the electrolytic corrosion rapidly proceeds, whereas in the present embodiment shown in (a), it is known that the electrolytic corrosion hardly occurs in the switching shock.
The configuration of the switch, the transformer, the FET, the voltage threshold detection means, the shape and configuration of the one-side contact and the other-side contact, the pulse width and the threshold value, and the like are not limited to the above-described embodiments, and various modifications are possible. The switch for microcomputer input of the present invention can be applied to switches of various vehicles and power units, and is not limited to a handlebar switch of a motorcycle.
Description of the symbols
1. a switching circuit; 2. transformer; 3. FET; 4. a voltage threshold detection unit; 5. switch; 6, one side is electrically shocked; 7. another side is shocked; 8. a control section; v2 · peak voltage of the pulse; va · threshold; w.conductive liquid.
- 上一篇:一种医用注射器针头装配设备
- 下一篇:质谱仪碰撞能量的自动测定