1. Technical Field
The present disclosure relates to switches, particular to a waterproof electronic device and its magnetic sensing switch.
2. Description of Related Art
Mechanical switches are widely used. However, most of the mechanical switches are contact switches and have poor waterproof performance. When used in some special environment, such as underwater, these mechanical switches easily break down. Existing Hall switches have good waterproof performance, and have a magnetic element and a Hall sensor to perform their functions. However, external magnetic interference interferes with the switches affect operation.
Therefore, there is room for improvement within the art.
Many aspects of the embodiments can be better understood with reference to the following drawings. The components in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the present disclosure. Moreover, in the drawings, like reference numerals designate corresponding parts throughout the several views.
The magnetic sensing switch 30 includes a magnetic sensing unit 31 arranged in the interior of the shell 20 and a magnetic button 32 arranged on the exterior of the shell 20. In the embodiment, a groove 21 is defined on an external surface of the shell 20 for receiving the magnetic button 32. In the embodiment, the magnetic button 32 is a spring-loaded push button which may be momentary or latching in function. The magnetic button 32 can stay in a first position, move to a second position closer to the interior of the groove 21 when pressed, and return to the first position when it is pushed again or when a pressing force is removed.
In the embodiment, the magnetic sensing unit 31 is a Hall sensor, and includes an N-pole sensor 311 and an S-pole sensor 312. In the embodiment, the magnetic button 32 is a permanent magnet, and has an N-pole and an S-pole at opposite ends. In the embodiment, the N-pole and the S-pole of the magnetic button 32 spatially and respectively correspond to the N-pole sensor 311 and the S-pole sensor 312 of the magnetic sensing unit 31.
In the embodiment, the waterproof electronic device 100 further includes a logic unit 41. The logic unit 41 includes a first input terminal Vin, a second input terminal V′in, and an output terminal Vout. In the embodiment, the first input terminal Vin and the second input terminal V′in are electrically connected respectively to an output terminal V1out of the N-pole sensor 311 and an output terminal V2out of the S-pole sensor 312, and the output terminal Vout of the logic unit 41 is electrically connected to the button responding circuit 40. In other embodiments, the button responding circuit 40 can be a function chip, with one of its function pins connected to the output terminal Vout of the logic unit 41.
In the embodiment, the logic unit 41 is an OR gate, and is configured to execute an OR function in relation to signals output from the N-pole sensor 311 and the S-pole sensor 312, to yield the trigger signal.
In the embodiment, each of the N-pole sensor 311 and the S-pole sensor 312 outputs a logic high voltage signal, such as “1,” if they are not activated, and the logic unit 41 receives logic high voltage signals output from the N-pole sensor 311 and the S-pole sensor 312, and executes an OR function in relation to the logic high voltage signals to yield a logic high voltage signal. If both of the N-pole sensor 311 and the S-pole sensor 312 are activated by the Hall effect, each of sensors 311, 312 outputs a logic low voltage signal, such as “0.” The logic unit 41 receives the logic low voltage signals, and executes an OR function in relation to the logic low voltage signals to yield a logic low voltage signal.
In the embodiment, if only one of the N-pole sensor 311 and the S-pole sensor 312 is activated by the Hall effect, only one of the sensors 311, 312 will output a logic low voltage signal, and the other one of the sensors 311, 312 will output a logic high voltage signal, and the logic unit 41 executes an OR function in relation to the logic low voltage signal and the logic high voltage signal, to yield a logic high voltage signal.
In the embodiment, the button responding circuit 40 is activated by a logic low voltage signal, and performs a desired function when it receives a logic low voltage signal. Therefore, the waterproof electronic device 100 can be used underwater at any depth, and avoids external magnetic interference, and unintended operations.
Moreover, it is to be understood that the disclosure may be embodied in other forms without departing from the spirit thereof. Thus, the present examples and embodiments are to be considered in all respects as illustrative and not restrictive, and the disclosure is not to be limited to the details given herein.
Number | Date | Country | Kind |
---|---|---|---|
101150533 | Dec 2012 | TW | national |