TWI445992B - Method and device of proximity sensing - Google Patents

Method and device of proximity sensing Download PDF

Info

Publication number
TWI445992B
TWI445992B TW101137700A TW101137700A TWI445992B TW I445992 B TWI445992 B TW I445992B TW 101137700 A TW101137700 A TW 101137700A TW 101137700 A TW101137700 A TW 101137700A TW I445992 B TWI445992 B TW I445992B
Authority
TW
Taiwan
Prior art keywords
light
signal
light signal
reflected light
emitting element
Prior art date
Application number
TW101137700A
Other languages
Chinese (zh)
Other versions
TW201415058A (en
Original Assignee
Lite On Semiconductor Corp
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 Lite On Semiconductor Corp filed Critical Lite On Semiconductor Corp
Priority to TW101137700A priority Critical patent/TWI445992B/en
Publication of TW201415058A publication Critical patent/TW201415058A/en
Application granted granted Critical
Publication of TWI445992B publication Critical patent/TWI445992B/en

Links

Landscapes

  • Geophysics And Detection Of Objects (AREA)
  • Measurement Of Optical Distance (AREA)

Description

近接感測方法及裝置Proximity sensing method and device

本發明是有關於一種偵測方法及裝置,特別是指一種偵測物體是否接近的近接感測方法及裝置。The invention relates to a detection method and device, in particular to a proximity sensing method and device for detecting whether an object is close.

近年來,近接感測裝置被廣泛應用在具有觸控面板的電子裝置,例如行動電話上。參見圖1所示,習知的近接感測裝置設置在行動電話(圖未示)的一觸控面板40下方,其主要包括一紅外線發光二極體41、一與紅外線發光二極體41相鄰且以一隔光機構42相阻隔的光感測器43,以及一處理器44。紅外線發光二極體41會發射一光訊號E,光感測器43接收該光訊號E由一物體50反射回來的一反射光訊號R並傳給處理器44,處理器44將該反射光訊號R數位化為一光強度值。一般來說,如圖2所示,該光強度值會隨著物體50與光感測器43之間的距離漸短而漸強,直到趨近於一最大值2000。因此,處理器44會根據預設的一臨界距離,例如70mm,設定一臨界值,例如1000,並判斷得到的光強度值是否大於該臨界值,若是,則判定物體50接近行動電話,則關閉觸控面板40,以避免物體50誤觸觸控面板40而導致電子裝置產生誤動作。In recent years, proximity sensing devices have been widely used in electronic devices having touch panels, such as mobile phones. As shown in FIG. 1 , a conventional proximity sensing device is disposed under a touch panel 40 of a mobile phone (not shown), and mainly includes an infrared light emitting diode 41 and an infrared light emitting diode 41. A photo sensor 43 adjacent to and separated by a light blocking mechanism 42 and a processor 44. The infrared illuminating diode 41 emits an optical signal E. The optical sensor 43 receives a reflected optical signal R reflected by the optical signal E from an object 50 and transmits it to the processor 44. The processor 44 transmits the reflected optical signal. R is digitized to a light intensity value. Generally, as shown in FIG. 2, the light intensity value will gradually increase as the distance between the object 50 and the photo sensor 43 becomes shorter until it approaches a maximum value of 2000. Therefore, the processor 44 sets a threshold value, for example, 1000 according to a preset critical distance, for example, 70 mm, and determines whether the obtained light intensity value is greater than the threshold value. If yes, it determines that the object 50 is close to the mobile phone, and then turns off. The touch panel 40 prevents the object 50 from accidentally touching the touch panel 40 to cause malfunction of the electronic device.

惟,如圖3及圖4所示,當物體60是一反射率很低的物體,例如黑卡或使用者的黑髮時,會發現當物體60相當貼近行動電話時,例如與行動電話的距離在2-3mm的範圍時,由物體60反射之反射光訊號的光強度值會高於臨界值 1000,但是當物體60與行動電話的距離短於2mm時,由物體60反射的反射光訊號之強度值反而急劇地衰減至低於臨界值1000,導致處理器44誤判物體60與行動電話遠離而開啟觸控面板40。However, as shown in FIGS. 3 and 4, when the object 60 is an object having a low reflectance, such as a black card or a user's black hair, it is found that when the object 60 is relatively close to the mobile phone, for example, with a mobile phone. When the distance is in the range of 2-3 mm, the light intensity value of the reflected light signal reflected by the object 60 will be higher than the critical value. 1000, but when the distance between the object 60 and the mobile phone is shorter than 2 mm, the intensity value of the reflected light signal reflected by the object 60 is sharply attenuated to below the threshold value 1000, causing the processor 44 to misjudge the object 60 away from the mobile phone. The touch panel 40 is turned on.

因此,本發明之目的,即在提供一種可避免因物體的反射率太低而誤判物體沒有靠近之近接感測方法及裝置。Accordingly, it is an object of the present invention to provide a proximity sensing method and apparatus that avoids misjudging an object from being approached because the reflectivity of the object is too low.

為達到上述目的,本發明第一種近接感測方法預設有相鄰的一第一發光元件及一光感測器,以及一與該光感測器間隔一預定距離的第二發光元件,並進行步驟包括:(A)令該第一發光元件發射一第一光訊號,使該光感測器感測該第一光訊號的一第一反射光訊號;(B)判斷該第一反射光訊號的強度是否大於一臨界值,若是,判定有物體接近;(C)再判斷該第一反射光訊號的強度是否持續大於一臨界值,若否,令該第二發光元件發射一第二光訊號,使該光感測器感測該第二光訊號的一第二反射光訊號;及(D)判斷該第一反射光訊號的強度與該第二反射光訊號的強度的一比值是否大於一預設值,若是,判定有物體接近。In order to achieve the above object, the first proximity sensing method of the present invention is preliminarily provided with an adjacent first light emitting component and a light sensor, and a second light emitting component spaced apart from the photo sensor by a predetermined distance. And performing the steps of: (A) causing the first light emitting element to emit a first light signal, so that the light sensor senses a first reflected light signal of the first light signal; (B) determining the first light reflection Whether the intensity of the optical signal is greater than a critical value, and if so, determining that an object is close; (C) determining whether the intensity of the first reflected optical signal continues to be greater than a threshold, and if not, causing the second illuminating element to emit a second a light signal, wherein the light sensor senses a second reflected light signal of the second light signal; and (D) determines whether a ratio of the intensity of the first reflected light signal to the intensity of the second reflected light signal is It is greater than a preset value, and if so, it is determined that an object is close.

較佳地,在步驟(B)中,當判斷該第一反射光訊號的強度小於或等於該臨界值,則判定沒有物體接近。Preferably, in step (B), when it is determined that the intensity of the first reflected light signal is less than or equal to the critical value, it is determined that no object is approaching.

較佳地,在步驟(D)中,當判斷該比值小於或等於該預設值,則判定沒有物體接近,並關閉該第二發光元件。Preferably, in step (D), when it is determined that the ratio is less than or equal to the preset value, it is determined that no object is approaching, and the second light-emitting element is turned off.

較佳地,在步驟(D)中,該第一發光元件及該第二發光元件是交錯地發射該第一光訊號及第二光訊號。Preferably, in the step (D), the first light-emitting element and the second light-emitting element alternately emit the first light signal and the second light signal.

本發明第二種近接感測方法預設有相鄰的一第一發光元件及一光感測器,以及一與該光感測器間隔一預定距離的第二發光元件,並進行步驟包括:(A)令該第一發光元件發射一第一光訊號,使該光感測器感測該第一光訊號的一第一反射光訊號;(B)判斷該第一反射光訊號的強度是否大於一臨界值,若是,判定有物體接近,並令該第二發光元件發射一第二光訊號,使該光感測器感測該第二光訊號的一第二反射光訊號;及(C)判斷該第一反射光訊號的強度與該第二反射光訊號的強度的一比值是否大於一預設值,若是,判定有物體接近,否則判定沒有物體接近。The second proximity sensing method of the present invention is provided with a first first light-emitting element and a light sensor, and a second light-emitting element spaced apart from the light sensor by a predetermined distance, and the steps include: (A) causing the first illuminating element to emit a first optical signal, such that the photo sensor senses a first reflected optical signal of the first optical signal; (B) determining whether the intensity of the first reflected optical signal is More than a threshold value, if yes, determining that an object is close, and causing the second light emitting element to emit a second light signal, so that the light sensor senses a second reflected light signal of the second light signal; and (C And determining whether a ratio of the intensity of the first reflected light signal to the intensity of the second reflected light signal is greater than a predetermined value, and if so, determining that an object is close, otherwise determining that no object is close.

本發明第三種近接感測方法預設有相鄰的一第一發光元件及一光感測器,以及一與該光感測器間隔一預定距離的第二發光元件,並進行步驟包括:(A)令該第一發光元件與該第二發光元件交錯地發射一第一光訊號及一第二光訊號,使該光感測器分別感測該第一光訊號的一第一反射光訊號,以及感測該第二光訊號的一第二反射光訊號;及(B)判斷該第一反射光訊號的強度與該第二反射光訊號的強度的一比值是否大於一預設值,若是,判定有物體接近,否則判定沒有物體接近。The third proximity sensing method of the present invention is provided with a first first light-emitting element and a light sensor, and a second light-emitting element spaced apart from the light sensor by a predetermined distance, and the steps include: (A) causing the first light-emitting element and the second light-emitting element to alternately emit a first light signal and a second light signal, so that the light sensor respectively senses a first reflected light of the first light signal a signal, and a second reflected light signal for sensing the second optical signal; and (B) determining whether a ratio of the intensity of the first reflected light signal to the intensity of the second reflected light signal is greater than a predetermined value, If yes, it is determined that there is an object approaching, otherwise it is determined that no object is close.

而本發明實現上述第一種方法的第一種近接感測裝置,包括一第一發光元件,一與該第一發光元件相鄰的光感測器,一與該光感測器間隔一預定距離的第二發光元件,一控制器及一處理器;該控制器控制該第一發光元件發射一第一光訊號,使該光感測器感測該第一光訊號的一 第一反射光訊號,且該處理器判斷該第一反射光訊號的強度大於一臨界值時,判定有物體接近,並於後續判斷該第一反射光訊號的強度小於或等於該臨界值時,令該控制器控制該第二發光元件發射一第二光訊號,使該光感測器感測該第二光訊號的一第二反射光訊號,且該處理器判斷該第一反射光訊號的強度與該第二反射光訊號的強度的一比值大於一預設值時,則判定有物體接近。The first proximity sensing device of the first method of the present invention comprises a first illuminating component, a photosensor adjacent to the first illuminating component, and a predetermined interval from the photosensor. a second illuminating component of the distance, a controller and a processor; the controller controls the first illuminating component to emit a first optical signal, so that the photo sensor senses one of the first optical signals When the first reflected light signal is detected, and the processor determines that the intensity of the first reflected light signal is greater than a threshold value, determining that an object is close, and subsequently determining that the intensity of the first reflected light signal is less than or equal to the critical value, Having the controller control the second illuminating element to emit a second optical signal, so that the photo sensor senses a second reflected optical signal of the second optical signal, and the processor determines the first reflected optical signal When a ratio of the intensity to the intensity of the second reflected light signal is greater than a predetermined value, it is determined that an object is close.

較佳地,該處理器一開始判斷該第一反射光訊號的強度小於或等於該臨界值時,則判定沒有物體接近。Preferably, when the processor first determines that the intensity of the first reflected light signal is less than or equal to the critical value, it is determined that no object is approaching.

較佳地,該處理器判斷該比值小於或等於該預設值,則判定沒有物體接近,並令該控制器關閉該第二發光元件。Preferably, the processor determines that the ratio is less than or equal to the preset value, determines that no object is close, and causes the controller to turn off the second illuminating element.

較佳地,當該第二發光元件發射該第二光訊號時,該控制器控制該第一發光元件及該第二發光元件交錯發射該第一光訊號及該第二光訊號。Preferably, when the second light emitting component emits the second light signal, the controller controls the first light emitting component and the second light emitting component to alternately emit the first optical signal and the second optical signal.

較佳地,該第二發光元件設在該第一發光元件遠離該光感測器的一側,且該近接感測裝置還包括一設在該第一發光元件與該光感測器之間的第一隔光機構,以及一設在該第二發光元件之接近該第二發光元件的一側的第二隔光機構。Preferably, the second illuminating component is disposed on a side of the first illuminating component away from the photo sensor, and the proximity sensing device further includes a first illuminating component and the photo sensor. a first light blocking mechanism and a second light blocking mechanism disposed on a side of the second light emitting element adjacent to the second light emitting element.

本發明實現上述第二種方法的第二種近接感測裝置,包括一第一發光元件,一與該第一發光元件相鄰的光感測器,一與該光感測器間隔一預定距離的第二發光元件,一控制器及一處理器;該控制器控制該第一發光元件發射一第一光訊號,使該光感測器感測該第一光訊號的一第一反 射光訊號,且該處理器判斷該第一反射光訊號的強度大於一臨界值時,判定有物體接近,並令該控制器控制該第二發光元件發射一第二光訊號,使該光感測器感測該第二光訊號的一第二反射光訊號,且該處理器判斷該第一反射光訊號的強度與該第二反射光訊號的強度的一比值大於一預設值時,則判定有物體接近。The second proximity sensing device of the second method of the present invention comprises a first light emitting element, a light sensor adjacent to the first light emitting element, and a predetermined distance from the light sensor. a second illuminating component, a controller and a processor; the controller controls the first illuminating component to emit a first optical signal, so that the optical sensor senses a first inverse of the first optical signal And detecting, by the processor, that the intensity of the first reflected light signal is greater than a threshold, determining that an object is close, and causing the controller to control the second light emitting component to emit a second light signal, so that the light is sensed Sensing a second reflected light signal of the second optical signal, and the processor determines that a ratio of the intensity of the first reflected light signal to the intensity of the second reflected light signal is greater than a predetermined value, Some objects are close.

本發明實現上述第三種方法的第三種近接感測裝置,包括一第一發光元件,一與該第一發光元件相鄰的光感測器,一與該光感測器間隔一預定距離的第二發光元件,一控制器及一處理器;該控制器控制該第一發光元件與該第二發光元件交錯地發射一第一光訊號及一第二光訊號,使該光感測器分別感測該第一光訊號的一第一反射光訊號,以及感測該第二光訊號的一第二反射光訊號,且該處理器判斷該第一反射光訊號的強度與該第二反射光訊號的強度的一比值大於一預設值時,則判定有物體接近,否則判定沒有物體接近。The third proximity sensing device of the third method of the present invention comprises a first illuminating component, a photosensor adjacent to the first illuminating component, and a predetermined distance from the photosensor a second illuminating component, a controller and a processor; the controller controls the first illuminating component and the second illuminating component to alternately emit a first optical signal and a second optical signal, so that the optical sensor Sensing a first reflected light signal of the first optical signal and a second reflected light signal of the second optical signal, and the processor determines the intensity of the first reflected light signal and the second reflection When a ratio of the intensity of the optical signal is greater than a predetermined value, it is determined that an object is close, otherwise it is determined that no object is close.

本發明近接感測裝置藉由設置一近一遠的兩個發光元件搭配一個光感測器或者設置一近一遠的兩個光感測器搭配一個發光元件,並在只開啟較近的該發光元件或光感測器時,發現由物體反射的反射光強度從大於臨界值變成小於臨界值時,可藉由再開啟較遠的該發光元件或光感測器,求得在此情況下由物體反射的一近一遠兩個反射光強度之與物體和近接感測裝置之間的距離成反比的一比值,並藉由判斷該比值是否大於一預設值,即可進一步確定物 體是相對近接感測裝置靠近或遠離,避免因物體之反射率低而誤判的情況發生,達到本發明的功效和目的。The proximity sensing device of the present invention is provided by disposing two light-emitting elements that are one far away with one light sensor or two light sensors that are close to one farther with one light-emitting element, and only open the closer one In the case of a light-emitting element or a light sensor, when the intensity of the reflected light reflected by the object is changed from greater than a critical value to less than a critical value, the light-emitting element or the light sensor can be turned on again to obtain a case in this case. a ratio of the intensity of a near-far reflected light reflected by the object that is inversely proportional to the distance between the object and the proximity sensing device, and further determining the object by determining whether the ratio is greater than a predetermined value The body is relatively close to or far from the sensing device, avoiding the occurrence of misjudgment due to low reflectivity of the object, and achieves the efficacy and purpose of the present invention.

有關本發明之前述及其他技術內容、特點與功效,在以下配合參考圖式之較佳實施例的詳細說明中,將可清楚的呈現。The foregoing and other objects, features, and advantages of the invention are set forth in the <RTIgt;

參見圖5所示,本發明近接感測裝置可應用在一設有一觸控螢幕20的電子裝置(圖未示),例如行動電話上,其第一較佳實施例包括設在一印刷電路板10上且位於觸控螢幕20下方的一第一發光元件11,一與第一發光元件11相鄰且以一隔光機構12相隔的光感測器13,一與光感測器13間隔一預定距離D的第二發光元件14,一與第一發光元件11及第二發光元件14電耦接的控制器15,以及一與控制器15及觸控螢幕30電耦接的處理器16。其中預定距離D至少是第一發光元件11和光感測器13的距離的2倍(以上)。Referring to FIG. 5, the proximity sensing device of the present invention can be applied to an electronic device (not shown) provided with a touch screen 20, such as a mobile phone. The first preferred embodiment includes a printed circuit board. A first light-emitting element 11 on the bottom of the touch screen 20, a light sensor 13 adjacent to the first light-emitting element 11 and separated by a light-shielding mechanism 12, and a photo sensor 13 are spaced apart from each other. A second light-emitting element 14 having a predetermined distance D, a controller 15 electrically coupled to the first light-emitting element 11 and the second light-emitting element 14, and a processor 16 electrically coupled to the controller 15 and the touch screen 30. The predetermined distance D is at least twice (above) the distance between the first light-emitting element 11 and the photo sensor 13.

其中第一發光元件11及第二發光元件14是發出紅外光的紅外線發光二極體,且光感測器13是一紅外光感測器,隔光機構12是用以避免第一發光元件11發出的光線未經物體反射即直接被光感測器13接收。又第二發光元件14是設在第一發光元件11之與光感測器13相反的一側,且第二發光元件14之靠近第一發光元件11的一側還設有另一隔光機構17,用以避免第二發光元件14發出的光線未經物體反射即直接被光感測器13接收。The first light-emitting element 11 and the second light-emitting element 14 are infrared light-emitting diodes that emit infrared light, and the light sensor 13 is an infrared light sensor, and the light-shielding mechanism 12 is used to avoid the first light-emitting element 11 The emitted light is directly received by the photo sensor 13 without being reflected by the object. The second light-emitting element 14 is disposed on the opposite side of the first light-emitting element 11 from the photo sensor 13, and the other side of the second light-emitting element 14 adjacent to the first light-emitting element 11 is further provided with another light-blocking mechanism. 17. The light emitted by the second illuminating element 14 is prevented from being directly received by the photo sensor 13 without being reflected by the object.

且近接感測裝置的第一實施例實現本發明近接感測方 法的第一較佳實施例,如圖6的步驟S61所示,首先,控制器15控制第一發光元件11發射一第一光訊號E1,如圖5所示,使光感測器13感測第一光訊號E1從一物體30反射回來的一第一反射光訊號R1並傳給處理器16,然後,如步驟S62,處理器16將第一反射光訊號R1進行類比/數位轉換成一第一光強度值V1。且設若物體30是一低反射率物體,則可得到如圖7所示,第一光訊號E1從物體30反射回來的第一反射光訊號R1的光強度值與物體30和近接感測裝置之間的距離的對應關係之一第一光強度值曲線S1。又假設處理器16預先設定一第一臨界值,例如1000,以藉由判斷第一光強度值V1是否大於第一臨界值來決定是否關閉或開啟觸控螢幕20。And the first embodiment of the proximity sensing device implements the proximity sensing side of the present invention The first preferred embodiment of the method is as shown in step S61 of FIG. 6. First, the controller 15 controls the first light-emitting element 11 to emit a first optical signal E1. As shown in FIG. 5, the light sensor 13 is sensed. The first reflected optical signal R1 reflected from the first optical signal E1 is detected and transmitted to the processor 16, and then, in step S62, the processor 16 converts the first reflected optical signal R1 into an analog/digital number. A light intensity value V1. And if the object 30 is a low reflectivity object, the light intensity value of the first reflected light signal R1 reflected by the first light signal E1 from the object 30 and the object 30 and the proximity sensing device can be obtained as shown in FIG. 7 . One of the correspondences between the distances is the first light intensity value curve S1. It is also assumed that the processor 16 presets a first threshold, for example 1000, to determine whether to close or turn on the touch screen 20 by determining whether the first light intensity value V1 is greater than the first threshold.

因此,在步驟S62中,處理器16判斷第一光強度值V1是否大於第一臨界值(1000),若是,如步驟S63,處理器16判定物體30接近,則對應產生一關閉訊號關閉該觸控螢幕20,並進行步驟S64,繼續判斷光感測器13感測第一反射光訊號R1所對應產生的第一光強度值V1是否大於一預設的第二臨界值,該第二臨界值可以等於或小於第一臨界值,例如600,若是,則持續重覆步驟S63及S64,直到發現第一光強度值V1小於或等於第二臨界值。且由圖7所示可知,由於物體30具有低反射率之特性,故當物體30如圖8所示非常靠近光感測器13時,或者如圖5所示遠離光感測器13時,都會導致第一光強度值V1下降。Therefore, in step S62, the processor 16 determines whether the first light intensity value V1 is greater than the first threshold (1000), and if so, if the processor 16 determines that the object 30 is approaching in step S63, the corresponding signal is generated to close the touch. Controlling the screen 20, and proceeding to step S64, continuing to determine whether the first light intensity value V1 generated by the light sensor 13 corresponding to the first reflected light signal R1 is greater than a predetermined second threshold value, the second threshold value It may be equal to or smaller than the first critical value, for example 600, and if so, repeat steps S63 and S64 until the first light intensity value V1 is found to be less than or equal to the second critical value. As can be seen from FIG. 7, since the object 30 has a low reflectivity characteristic, when the object 30 is very close to the photo sensor 13 as shown in FIG. 8, or as far away from the photo sensor 13 as shown in FIG. This will cause the first light intensity value V1 to drop.

又如圖5及圖7所示,當控制第一發光元件11與第二 發光元件14交錯(輪流)發射第一光訊號E1及第二光訊號E2,可得到第二發光元件14發射的一第二光訊號E2從物體30反射回來的第二反射光訊號R2的光強度值與物體30和近接感測裝置之間的距離的對應關係之一第二光強度值曲線S2,且處理器16以第一光強度值曲線S1之數值除以第二光強度值曲線S2之數值,可以得到圖7所示之一比值曲線S3,且該比值曲線S3之高低變化與物體30和近接感測裝置的距離成反比,尤其是物體30越靠近近接感測裝置時,比值越高,故處理器16可進一步藉由比值來判斷物體30是更靠近還是遠離,因此,處理器16設定一對應於圖7中之該第二臨界值(600)的第三臨界值,例如1.74。As shown in FIG. 5 and FIG. 7, when the first light-emitting element 11 and the second are controlled The light-emitting elements 14 alternately (in turn) emit the first light signal E1 and the second light signal E2, and the light intensity of the second reflected light signal R2 reflected from the object 30 by the second light signal E2 emitted by the second light-emitting element 14 can be obtained. a value corresponding to the distance between the object 30 and the proximity sensing device, a second light intensity value curve S2, and the processor 16 divides the value of the first light intensity value curve S1 by the second light intensity value curve S2 The value can be obtained as a ratio curve S3 shown in FIG. 7, and the change of the ratio curve S3 is inversely proportional to the distance between the object 30 and the proximity sensing device, especially when the object 30 is closer to the proximity sensing device, the higher the ratio Therefore, the processor 16 can further determine whether the object 30 is closer or farther by the ratio. Therefore, the processor 16 sets a third threshold corresponding to the second threshold (600) in FIG. 7, for example, 1.74.

藉此,在步驟S64中,當處理器16發現第一光強度值V1從大於第二臨界值變成小於(或等於)第二臨界值時,為了確定此時物體30是更接近還是遠離,如步驟S65,處理器16令控制器15控制第二發光元件14發射第二光訊號E2,且第二光訊號E2與第一光訊號E1是由第一發光元件11和第二發光元件14分別,例如交錯(輪流)發射,故光感測器15會分別接收並感測第一光訊號E1由物體30反射回來的第一反射光訊號R1及第二光訊號E2由物體30反射回來的一第二反射光訊號R2,並將第一反射光訊號R1及第二反射光訊號R2分別傳送給處理器16。則如步驟S66,處理器16將第一反射光訊號R1與第二反射光訊號R2進行類比/數位轉換成第一光強度值V1及一第二光強度值V2,並求得第一光強度值V1與第二光強度值V2的一比值,即 V1/V2,並判斷該比值是否大於該第二臨界值(1.74),若是,表示物體30更接近,則回到步驟S63,令觸控螢幕20持續關閉;若否,表示物體30確實朝遠離方向移動,則執行步驟S67,關閉第二發光元件14,以節省電力消耗,並如步驟S68,判定物體30遠離光感測器13,則產生一開啟訊號令觸控螢幕20開啟,並重覆步驟S62。Thereby, in step S64, when the processor 16 finds that the first light intensity value V1 is changed from greater than the second threshold value to less than (or equal to) the second threshold value, in order to determine whether the object 30 is closer or farther away, such as In step S65, the processor 16 causes the controller 15 to control the second light-emitting element 14 to emit the second light signal E2, and the second light signal E2 and the first light signal E1 are respectively separated by the first light-emitting element 11 and the second light-emitting element 14, For example, the interlaced (rotation) transmission, the photo sensor 15 receives and senses the first reflected light signal R1 and the second optical signal E2 reflected by the object 30 from the object 30 to be reflected back from the object 30. The two reflected optical signals R2 transmit the first reflected optical signal R1 and the second reflected optical signal R2 to the processor 16, respectively. Then, in step S66, the processor 16 performs analog/digital conversion of the first reflected light signal R1 and the second reflected light signal R2 into a first light intensity value V1 and a second light intensity value V2, and obtains a first light intensity. a ratio of the value V1 to the second light intensity value V2, ie V1/V2, and determining whether the ratio is greater than the second threshold (1.74). If yes, indicating that the object 30 is closer, returning to step S63, the touch screen 20 is continuously turned off; if not, indicating that the object 30 is indeed facing away If the direction is moved, step S67 is executed to turn off the second light-emitting element 14 to save power consumption. If the object 30 is determined to be away from the light sensor 13 in step S68, an open signal is generated to cause the touch screen 20 to be turned on, and the steps are repeated. S62.

值的一提的是,在步驟S65中,第一發光元件11與第二發光元件14也可以同時以不同的頻率分別發射第一光訊號及第二光訊號,則處理器16收到第一反射光訊號R1及第二反射光訊號R2時,即可從兩者頻率之不同而辨別出這兩者是分別由第一光訊號及第二光訊號反射而得。It is noted that, in step S65, the first light-emitting element 11 and the second light-emitting element 14 can simultaneously transmit the first light signal and the second light signal at different frequencies, respectively, and the processor 16 receives the first When the reflected light signal R1 and the second reflected light signal R2 are reflected, it can be distinguished from the difference between the two frequencies that the two are respectively reflected by the first optical signal and the second optical signal.

又在步驟S62中,當處理器16判斷第一光強度值V1小於或等於第一臨界值時,則進行步驟S68,判定物體20沒有接近光感測器13,且令觸控螢幕20持續開啟,並且重覆步驟S62,持續判斷光感測器13所感測到的第一反射光訊號R1。In step S62, when the processor 16 determines that the first light intensity value V1 is less than or equal to the first threshold, step S68 is performed to determine that the object 20 is not in proximity to the light sensor 13, and the touch screen 20 is continuously turned on. And repeating step S62, continuously determining the first reflected light signal R1 sensed by the light sensor 13.

藉此,有效解決低反射率之物體30靠近時,不致因為由物體30反射之反射光強度下降而誤判物體遠離,而對應開啟電子裝置的觸控螢幕20,導致觸控螢幕20被誤觸的情況發生。當然本實施例近接感測裝置並不限於觸控螢幕之應用,其亦可根據物體接近或遠離產生觸發訊號控制電子裝置中需要與物體的接近或遠離產生連動(或互動)的其它零組件或功能。Therefore, when the object 30 with low reflectivity is effectively disposed, the object is not misjudged because the intensity of the reflected light reflected by the object 30 is decreased, and the touch screen 20 of the electronic device is turned on, causing the touch screen 20 to be accidentally touched. The situation happened. Of course, the proximity sensing device of the embodiment is not limited to the application of the touch screen, and may also control other components in the electronic device that need to be linked or moved away from or close to the object according to the object approaching or moving away from the trigger signal. Features.

再參見圖9所示,是本實施例近接感測裝置實現本發明 近接感測方法的第二較佳實施例,其與第一實施例相同處在於:步驟S91至S93與圖6之步驟S61至S63相同,步驟S94至S97與圖6之步驟S65至S68相同,其與第一實施例不同處在於:省略圖6中的步驟S64,亦即在步驟S93中,當處理器16判定物體30接近光感測器13後,即執行步驟S94(對應圖6的步驟S65),令控制器15控制第一發光元件11與第二發光二件14分別,例如交錯發射第一光訊號E1及第二光訊號E2,並進行步驟S95,處理器16判斷第一光訊號E1對應產生的第一光強度值V1與第二光訊號E2對應產生的第二光強度值V2的比值V1/V2,是否大於該第三臨界值(1.74),若是,則回到步驟S93,判定物體30接近,並令觸控螢幕20持續關閉,若否,則執行步驟S96,關閉第二發光元件14,並如步驟S97,判定物體30未接近,並產生一開啟訊號令觸控螢幕20開啟。Referring again to FIG. 9, the proximity sensing device of the present embodiment implements the present invention. A second preferred embodiment of the proximity sensing method is the same as the first embodiment in that steps S91 to S93 are the same as steps S61 to S63 of FIG. 6, and steps S94 to S97 are the same as steps S65 to S68 of FIG. The difference from the first embodiment is that step S64 in FIG. 6 is omitted, that is, in step S93, when the processor 16 determines that the object 30 is close to the photo sensor 13, step S94 is executed (corresponding to the step of FIG. 6). S65), the controller 15 controls the first illuminating element 11 and the second illuminating unit 14 to respectively transmit, for example, the first optical signal E1 and the second optical signal E2, and proceeds to step S95, and the processor 16 determines the first optical signal. Whether the ratio V1/V2 of the first light intensity value V1 corresponding to the second light intensity value V2 generated by E1 is greater than the third threshold value (1.74), and if yes, returning to step S93, It is determined that the object 30 is close, and the touch screen 20 is continuously turned off. If not, step S96 is executed to turn off the second light-emitting element 14, and in step S97, it is determined that the object 30 is not in proximity, and an open signal is generated to cause the touch screen 20 to be Open.

另參見圖10所示,是本實施例近接感測器實現本發明近接感測方法的第三較佳實施例,由於處理器16已知第一發光元件11發射的第一光訊號E1由物體30反射至光感測器13的第一反射光訊號R1與第二發光元件14發射的第二光訊號E2由物體30反射回來的第二反射光訊號R2,兩者經數位化後產生的比值曲線S3與物體30和光感測器13之間的距離成反比,因此,本實施例之處理器16其實也可以直接根據該第三臨界值(1.74)來判斷物體30是否接近,亦即如圖10之步驟S101,由控制器15控制第一發光元件11與第二發光元件14交錯地發射第一光訊號E1及第二光訊 號E2,使光感測器13分別感測第一光訊號E1由物體30反射回來的第一反射光訊號R1,以及感測第二光訊號E2由物體30反射回來的第二反射光訊號R2並分別傳送給處理器16,再進行步驟S102,處理器16將第一反射光訊號R1和第二反射光訊號R2分別數位化為第一光強度值V1及第二光強度值V2並求得兩者的比值V1/V2後,判斷該比值是否大於該第三臨界值(1.74),若是,則如步驟S103,判定物體30接近,並關閉觸控螢幕20,否則,如步驟S104,判定物體30未接近,則開啟觸控螢幕20(亦即令觸控螢幕20維持開啟狀態)。Referring to FIG. 10, it is a third preferred embodiment of the proximity sensor of the present embodiment to implement the proximity sensing method of the present invention. Since the processor 16 knows that the first light signal E1 emitted by the first light emitting element 11 is from an object. The first reflected light signal R1 reflected from the light sensor 13 and the second reflected light signal E2 emitted by the second light-emitting element 14 are reflected by the object 30, and the ratio between the two is digitized. The curve S3 is inversely proportional to the distance between the object 30 and the photo sensor 13. Therefore, the processor 16 of the embodiment can also directly determine whether the object 30 is close according to the third critical value (1.74), that is, as shown in the figure. Step S101, the controller 15 controls the first light-emitting element 11 and the second light-emitting element 14 to alternately emit the first optical signal E1 and the second optical signal. No. E2, the photo sensor 13 senses the first reflected light signal R1 reflected by the object 30 by the first optical signal E1, and the second reflected light signal R2 reflected by the object 30 by the second optical signal E2. And transmitting to the processor 16, respectively, and then performing the step S102, the processor 16 digitizes the first reflected light signal R1 and the second reflected light signal R2 into a first light intensity value V1 and a second light intensity value V2, respectively. After the ratio V1/V2, it is determined whether the ratio is greater than the third threshold (1.74). If yes, then in step S103, the object 30 is determined to be close, and the touch screen 20 is turned off. Otherwise, in step S104, the object is determined. When the 30 is not in proximity, the touch screen 20 is turned on (that is, the touch screen 20 is kept on).

值得一提的是,圖9之步驟S92中的”第一臨界值”是對應於本發明申請專利範圍第6及14項中的”臨界值”,且圖9之步驟S95中的”第三臨界值”是對應於本發明申請專利範圍第6及14項中的”預設值”;又圖10之步驟S102中的”第三臨界值”是對應於本發明申請專利範圍第7及15項中的”預設值”。It is worth mentioning that the "first threshold value" in step S92 of FIG. 9 corresponds to the "threshold value" in items 6 and 14 of the patent application scope of the present invention, and the "third value" in step S95 of FIG. The "threshold value" corresponds to the "preset value" in items 6 and 14 of the scope of the present invention; and the "third threshold value" in the step S102 of FIG. 10 corresponds to the seventh and fifteenth claims of the present invention. The "preset value" in the item.

再參見圖11所示,是本發明近接感測裝置的第二較佳實施例,與第一實施例不同處在於第一實施例是以兩個發光元件11、14搭配一光感測器13,而第二實施例則是一個發光元件21搭配兩個光感測器22、23(以下稱第一光感測器22及第二光感測器23),其餘元件皆相同。發光元件21與第一光感測器22相鄰並以一隔光機構24相阻隔,第二光感測器23設在第一光感測器22之與發光元件21相反的另一側並以一隔光機構25與第一光感測器22相阻隔。Referring to FIG. 11, which is a second preferred embodiment of the proximity sensing device of the present invention, the difference from the first embodiment is that the first embodiment is a light sensor 13 with two light-emitting elements 11 and 14 In the second embodiment, one light-emitting element 21 is combined with two photo sensors 22, 23 (hereinafter referred to as a first photo sensor 22 and a second photo sensor 23), and the remaining components are the same. The light emitting element 21 is adjacent to the first photo sensor 22 and is blocked by a light blocking mechanism 24, and the second photo sensor 23 is disposed on the opposite side of the first photo sensor 22 opposite to the light emitting element 21 and The first photo sensor 22 is blocked by a light blocking mechanism 25.

且如圖12所示,近接感測裝置的第二實施例實施本發明近接感測方法的第四較佳實施例與圖6不同處在於:步驟S121(對應於圖6的步驟S61)是開啟發光元件21與第一光感測器22,使第一光感測器22接受發光元件21發射的光訊號E由物體30反射回來的第一反射光訊號R1’並傳送給處理器16,使處理器16在步驟S122及S124中根據第一反射光訊號E1’數位化後的第一光強度值V1’判斷物體30是否接近電子裝置的觸控螢幕20,且在步驟S125(對應於圖6的步驟S65)中,處理器16令控制器15開啟第二光感測器23,使接受發光元件21發射的光訊號E由物體30反射回來的第二反射光訊號R1’並傳送給處理器16,且在步驟S126(對應圖6的步驟66)中,處理器16是將第一光感測器22和第二光感測器23分別傳來的第一反射光訊號R1’及第二反射光訊號R2’數位化成第一光強度值V1’及第二光強度值V2’並求得兩者的比值V1’/V2’,則後續判斷方式則與前述圖6之步驟66相同。另外,在步驟S126中,當處理器16判斷比值V1’/V2’小於該第三臨界值,例如1.74時,則執行步驟S127(對應圖6的步驟67)關閉第二光感測器23,以節省電力消耗,並如步驟S128,判定物體30沒有接近。As shown in FIG. 12, the fourth preferred embodiment of the proximity sensing device of the second embodiment of the present invention is different from that of FIG. 6 in that step S121 (corresponding to step S61 of FIG. 6) is turned on. The first photo sensor 22 receives the first reflected light signal R1 ′ reflected by the object 30 from the optical signal E emitted by the light-emitting element 21 and transmits the first reflected light signal R1 ′ to the processor 16 . The processor 16 determines whether the object 30 is close to the touch screen 20 of the electronic device according to the first light intensity value V1' digitized by the first reflected light signal E1' in steps S122 and S124, and corresponds to FIG. 6 In step S65), the processor 16 causes the controller 15 to turn on the second photo sensor 23 to transmit the second reflected light signal R1' reflected by the object 30 from the optical signal E emitted by the light-emitting element 21 and transmit it to the processor. 16. In step S126 (corresponding to step 66 of FIG. 6), the processor 16 is the first reflected light signal R1' and the second transmitted from the first photo sensor 22 and the second photo sensor 23, respectively. The reflected light signal R2' is digitized into a first light intensity value V1' and a second light intensity value V2' and two are obtained The ratio of the ratio V1'/V2' is the same as that of step 66 of Fig. 6 described above. In addition, in step S126, when the processor 16 determines that the ratio V1'/V2' is smaller than the third threshold, for example, 1.74, step S127 (corresponding to step 67 of FIG. 6) is performed to turn off the second photo sensor 23. In order to save power consumption, and as in step S128, it is determined that the object 30 is not in proximity.

再參見圖13所示,近接感測裝置的第二實施例實施本發明近接感測方法的第五較佳實施例與圖12實施例不同處在於省略圖12的步驟S124,其餘相同,故不再贅述。Referring to FIG. 13 again, the second embodiment of the proximity sensing device of the second embodiment of the present invention is different from the embodiment of FIG. 12 in that the step S124 of FIG. 12 is omitted, and the rest are the same, so Let me repeat.

又參見圖14所示,近接感測裝置的第二實施例實施本 發明近接感測方法的第六較佳實施例與圖10類似,其不同處在於:在步驟S141(對應圖10的步驟S101)中,控制器15控制第一光感測器22與第二光感測器23同時開啟,以分別感測發光元件21產生之光訊號E由物體30反射回來的第一反射光訊號R1’及第二反射光訊號R2’並傳送給處理器16,且在步驟S144(對應圖10的步驟104)中,控制器15是關閉第二光感測器23,其餘步驟S142、S143則與圖10之步驟S102、S103雷同,故於此不再贅述。Referring also to FIG. 14, a second embodiment of the proximity sensing device is implemented A sixth preferred embodiment of the inventive proximity sensing method is similar to FIG. 10 except that in step S141 (corresponding to step S101 of FIG. 10), the controller 15 controls the first photo sensor 22 and the second light. The sensor 23 is simultaneously turned on to sense the first reflected light signal R1' and the second reflected light signal R2' reflected by the object 30 from the optical signal E generated by the light-emitting element 21, and transmitted to the processor 16, and in steps In S144 (corresponding to step 104 in FIG. 10), the controller 15 turns off the second photo sensor 23, and the remaining steps S142 and S143 are the same as steps S102 and S103 in FIG. 10, and thus will not be described again.

值得一提的是,圖13之步驟S132中的”第一臨界值”是對應於本發明申請專利範圍第17及20項中的”臨界值”,且圖13之步驟S135中的”第三臨界值”是對應於本發明申請專利範圍第17及20項中的”預設值”;又圖14之步驟S142中的”第三臨界值”是對應於本發明申請專利範圍第8及21項中的”預設值”。It is to be noted that the "first threshold value" in the step S132 of FIG. 13 corresponds to the "threshold value" in the items 17 and 20 of the scope of the present invention, and the third portion in the step S135 of FIG. The "threshold value" corresponds to the "preset value" in the items 17 and 20 of the scope of the present invention; and the "third threshold value" in the step S142 of Fig. 14 corresponds to the eighth and the 21st of the patent application scope of the present invention. The "preset value" in the item.

綜上所述,本實施例之近接感測裝置藉由設置一近一遠的兩個發光元件搭配一個光感測器或者設置一近一遠的兩個光感測器搭配一個發光元件,並在只開啟較近的該發光元件或光感測器時,發現由物體反射的反射光強度從大於臨界值變成小於臨界值時,可藉由再開啟較遠的該發光元件或光感測器,並求得在此情況下由物體反射的一近一遠兩個反射光強度之與物體和近接感測裝置之間的距離成反比的一比值,而藉由判斷該比值是否大於一預設值,即可進一步確定物體是相對近接感測裝置靠近或遠離,避免了因物體之反射率低而誤判的情況發生,確實達成本發明的功效和目的。In summary, the proximity sensing device of the present embodiment is provided by combining two light-emitting elements that are one far away with one light sensor or two light sensors that are nearly one far away, and one light-emitting element. When only the light-emitting element or the light sensor is turned on, when the intensity of the reflected light reflected by the object is changed from greater than a critical value to less than a critical value, the light-emitting element or the light sensor can be turned on again. And determining, in this case, a ratio of the intensity of a near-far reflected light reflected by the object that is inversely proportional to the distance between the object and the proximity sensing device, and determining whether the ratio is greater than a preset The value can further determine that the object is close to or away from the proximity sensing device, avoiding the occurrence of misjudgment due to the low reflectivity of the object, and indeed achieves the efficacy and purpose of the present invention.

惟以上所述者,僅為本發明之較佳實施例而已,當不能以此限定本發明實施之範圍,即大凡依本發明申請專利範圍及發明說明內容所作之簡單的等效變化與修飾,皆仍屬本發明專利涵蓋之範圍內。The above is only the preferred embodiment of the present invention, and the scope of the invention is not limited thereto, that is, the simple equivalent changes and modifications made by the scope of the invention and the description of the invention are All remain within the scope of the invention patent.

10‧‧‧印刷電路板10‧‧‧Printed circuit board

11‧‧‧第一發光元件11‧‧‧First light-emitting element

12、17‧‧‧隔光機構12, 17‧‧‧Light-shielding mechanism

13‧‧‧光感測器13‧‧‧Light sensor

14‧‧‧第二發光元件14‧‧‧Second light-emitting element

15‧‧‧控制器15‧‧‧ Controller

16‧‧‧處理器16‧‧‧ Processor

20‧‧‧觸控螢幕20‧‧‧ touch screen

21‧‧‧發光元件21‧‧‧Lighting elements

22‧‧‧第一光感測器22‧‧‧First light sensor

23‧‧‧第二光感測器23‧‧‧Second light sensor

24、25‧‧‧隔光機構24, 25‧‧‧Light-shielding mechanism

30‧‧‧物體30‧‧‧ objects

E1‧‧‧第一光訊號E1‧‧‧first optical signal

E2‧‧‧第二光訊號E2‧‧‧second optical signal

R1、R1’‧‧‧第一反射光訊號R1, R1'‧‧‧ first reflected light signal

R2、R2’‧‧‧第二反射光訊號R2, R2'‧‧‧ second reflected light signal

D‧‧‧預設距離D‧‧‧Preset distance

S1‧‧‧第一光強度值曲線S1‧‧‧first light intensity value curve

S2‧‧‧第二光強度值曲線S2‧‧‧second light intensity value curve

S3‧‧‧比值曲線S3‧‧‧ ratio curve

E1’‧‧‧光訊號E1’‧‧‧Optical signal

S61~S68‧‧‧步驟S61~S68‧‧‧Steps

S91~S97‧‧‧步驟S91~S97‧‧‧Steps

S101~S104‧‧‧步驟S101~S104‧‧‧Steps

S121~S128‧‧‧步驟S121~S128‧‧‧Steps

S131~S137‧‧‧步驟S131~S137‧‧‧Steps

S141~S144‧‧‧步驟S141~S144‧‧‧Steps

圖1顯示習知近接感測裝置的組成元件示意圖;圖2顯示習知近接感測裝置感測一物體時,由該物體反射的反射光訊號的強度通常會與該物體和近接感測裝置之間的距離成反比;圖3顯示一低反射率的物體貼近習知近接感測裝置的示意圖;圖4顯示當一低反射率的物體非常靠近習知的近接感測裝置時,其反射光訊號的強度反而迅速衰減;圖5顯示本發明近接感測裝置的第一較佳實施例的組成元件示意圖;圖6顯示本發明近接感測方法的第一較佳實施例的流程圖;圖7顯示第一實施例之近接感測裝置中的第一發光元件發射的第一光訊號從物體反射回來的第一反射光訊號的光強度值與物體和近接感測裝置之間的距離的對應關係之一第一光強度值曲線S1,第二發光元件發射的一第二光訊號從物體反射回來的第二反射光訊號的光強度值與物體和近接感測裝置之間的距離的對應關係之一第二光強度值曲線S2,以及第一光強度值曲線S1與第二光強度值曲線S2 的一比值曲線S3;圖8是顯示一低反射率的物體貼近第一實施例之近接感測裝置的示意圖1 shows a schematic diagram of the components of a conventional proximity sensing device; FIG. 2 shows that when a conventional proximity sensing device senses an object, the intensity of the reflected light signal reflected by the object is usually the same as the object and the proximity sensing device. The distance between them is inversely proportional; Figure 3 shows a schematic view of a low reflectivity object close to a conventional proximity sensing device; Figure 4 shows a reflected light signal when a low reflectivity object is very close to a conventional proximity sensing device. Figure 5 shows a schematic diagram of the components of the first preferred embodiment of the proximity sensing device of the present invention; Figure 6 shows a flow chart of the first preferred embodiment of the proximity sensing method of the present invention; Corresponding relationship between the light intensity value of the first reflected light signal reflected from the first light signal emitted by the first light-emitting element in the proximity sensing device of the first embodiment and the distance between the object and the proximity sensing device a first light intensity value curve S1, a light intensity value of the second reflected light signal reflected from the object by a second light signal emitted by the second light emitting element, and a distance between the object and the proximity sensing device One relationship between the second light intensity value curve S2, a first light intensity value and a curve S1 and a second light intensity value corresponding to the curve S2 a ratio curve S3; FIG. 8 is a schematic diagram showing that a low reflectivity object is close to the proximity sensing device of the first embodiment;

圖9顯示本發明近接感測方法的第二較佳實施例的流程圖;圖10顯示本發明近接感測方法的第三較佳實施例的流程圖;圖11顯示本發明近接感測裝置的第二較佳實施例的組成元件示意圖;圖12顯示本發明近接感測方法的第四較佳實施例的流程圖;圖13顯示本發明近接感測方法的第五較佳實施例的流程圖;及圖14顯示本發明近接感測方法的第六較佳實施例的流程圖。9 is a flow chart showing a second preferred embodiment of the proximity sensing method of the present invention; FIG. 10 is a flow chart showing a third preferred embodiment of the proximity sensing method of the present invention; and FIG. 11 is a view showing the proximity sensing device of the present invention. FIG. 12 is a flow chart showing a fourth preferred embodiment of the proximity sensing method of the present invention; FIG. 13 is a flow chart showing a fifth preferred embodiment of the proximity sensing method of the present invention; And FIG. 14 shows a flow chart of a sixth preferred embodiment of the proximity sensing method of the present invention.

S61~S68‧‧‧步驟S61~S68‧‧‧Steps

Claims (21)

一種近接感測方法,其預設相鄰的一第一發光元件及一光感測器,以及一與該光感測器間隔一預定距離的第二發光元件,並進行步驟包括:(A)令該第一發光元件發射一第一光訊號,使該光感測器感測該第一光訊號的一第一反射光訊號;(B)判斷該第一反射光訊號的強度是否大於一第一臨界值,若是,判定有物體接近;(C)再判斷該第一反射光訊號的強度是否大於一第二臨界值,若否,令該第二發光元件發射一第二光訊號,使該光感測器感測該第二光訊號的一第二反射光訊號,其中該第二臨界值小於或等於該第一臨界值;及(D)判斷該第一反射光訊號的強度與該第二反射光訊號的強度的一比值是否大於一第三臨界值,若是,判定有物體接近。A proximity sensing method, which presets a first first light-emitting element and a light sensor, and a second light-emitting element spaced apart from the light sensor by a predetermined distance, and the steps include: (A) Having the first light-emitting element emit a first light signal, so that the light sensor senses a first reflected light signal of the first light signal; (B) determining whether the intensity of the first reflected light signal is greater than a first a threshold value, if yes, determining that an object is close; (C) determining whether the intensity of the first reflected light signal is greater than a second threshold, and if not, causing the second light emitting element to emit a second light signal, such that The light sensor senses a second reflected light signal of the second optical signal, wherein the second critical value is less than or equal to the first critical value; and (D) determining the intensity of the first reflected light signal and the first Whether a ratio of the intensities of the two reflected optical signals is greater than a third critical value, and if so, it is determined that an object is close. 依據申請專利範圍第1項所述的近接感測方法,在步驟(B)中,當判斷該第一反射光訊號的強度小於或等於該第一臨界值,則判定沒有物體接近。According to the proximity sensing method of claim 1, in step (B), when it is determined that the intensity of the first reflected light signal is less than or equal to the first critical value, it is determined that no object is approaching. 依據申請專利範圍第1或2項所述的近接感測方法,在步驟(D)中,當判斷該比值小於或等於該第三臨界值,則判定沒有物體接近。According to the proximity sensing method of claim 1 or 2, in the step (D), when it is judged that the ratio is less than or equal to the third threshold, it is determined that no object is approaching. 依據申請專利範圍第3項所述的近接感測方法,在步驟(D)中,當判斷該比值小於或等於該第三臨界值,則關閉該第二發光元件。According to the proximity sensing method of claim 3, in step (D), when it is determined that the ratio is less than or equal to the third threshold, the second illuminating element is turned off. 依據申請專利範圍第1項所述的近接感測方法,在步驟(D)中,該第一發光元件及該第二發光元件是交錯地發射該第一光訊號及第二光訊號或是同時以不同的頻率發射該第一光訊號及第二光訊號。According to the proximity sensing method of claim 1, in the step (D), the first light-emitting element and the second light-emitting element alternately emit the first light signal and the second light signal or simultaneously The first optical signal and the second optical signal are transmitted at different frequencies. 一種近接感測方法,其預設相鄰的一第一發光元件及一光感測器,以及一與該光感測器間隔一預定距離的第二發光元件,並進行步驟包括:(A)令該第一發光元件發射一第一光訊號,使該光感測器感測該第一光訊號的一第一反射光訊號;(B)判斷該第一反射光訊號的強度是否大於一臨界值,若是,判定有物體接近,並令該第二發光元件發射一第二光訊號,使該光感測器感測該第二光訊號的一第二反射光訊號;及(C)判斷該第一反射光訊號的強度與該第二反射光訊號的強度的一比值是否大於一預設值,若是,判定有物體接近,否則判定沒有物體接近。A proximity sensing method, which presets a first first light-emitting element and a light sensor, and a second light-emitting element spaced apart from the light sensor by a predetermined distance, and the steps include: (A) Having the first light-emitting element emit a first light signal, so that the light sensor senses a first reflected light signal of the first light signal; (B) determining whether the intensity of the first reflected light signal is greater than a critical value a value, if yes, determining that an object is in proximity, and causing the second light emitting element to emit a second light signal, so that the light sensor senses a second reflected light signal of the second light signal; and (C) determining the Whether a ratio of the intensity of the first reflected light signal to the intensity of the second reflected light signal is greater than a predetermined value, and if so, it is determined that an object is close, otherwise it is determined that no object is close. 一種近接感測方法,其預設相鄰的一第一發光元件及一光感測器,以及一與該光感測器間隔一預定距離的第二發光元件,並進行步驟包括:(A)令該第一發光元件與該第二發光元件交錯地發射一第一光訊號及一第二光訊號,使該光感測器分別感測該第一光訊號的一第一反射光訊號,以及感測該第二光訊號的一第二反射光訊號;及(B)判斷該第一反射光訊號的強度與該第二反射光訊 號的強度的一比值是否大於一預設值,若是,判定有物體接近,否則判定沒有物體接近。A proximity sensing method, which presets a first first light-emitting element and a light sensor, and a second light-emitting element spaced apart from the light sensor by a predetermined distance, and the steps include: (A) Having the first light-emitting element and the second light-emitting element alternately emit a first light signal and a second light signal, so that the light sensor respectively senses a first reflected light signal of the first light signal, and Sensing a second reflected light signal of the second optical signal; and (B) determining the intensity of the first reflected light signal and the second reflected light signal Whether the ratio of the intensity of the number is greater than a predetermined value, and if so, it is determined that an object is close, otherwise it is determined that no object is close. 一種近接感測裝置,包括:一第一發光元件;一光感測器,與該第一發光元件相鄰;一第二發光元件,與該光感測器間隔一預定距離;一控制器,控制該第一發光元件發射一第一光訊號,使該光感測器感測該第一光訊號的一第一反射光訊號;及一處理器,判斷該第一反射光訊號的強度大於一第一臨界值時,判定有物體接近,並於後續判斷該第一反射光訊號的強度小於或等於一第二臨界值時,令該控制器控制該第二發光元件發射一第二光訊號,使該光感測器感測該第二光訊號的一第二反射光訊號,且該處理器判斷該第一反射光訊號的強度與該第二反射光訊號的強度的一比值大於一第三臨界值時,則判定有物體接近;其中該第二臨界值小於或等於該第一臨界值。A proximity sensing device comprising: a first illuminating element; a photo sensor adjacent to the first illuminating element; a second illuminating element spaced apart from the photo sensor by a predetermined distance; a controller Controlling the first light-emitting element to emit a first light signal, so that the light sensor senses a first reflected light signal of the first light signal; and a processor determining that the intensity of the first reflected light signal is greater than one When the first threshold value is determined, the object is determined to be close, and when the intensity of the first reflected light signal is determined to be less than or equal to a second threshold value, the controller controls the second light emitting component to emit a second light signal. The light sensor senses a second reflected light signal of the second optical signal, and the processor determines that the ratio of the intensity of the first reflected light signal to the intensity of the second reflected light signal is greater than a third At the critical value, it is determined that an object is close to; wherein the second critical value is less than or equal to the first critical value. 依據申請專利範圍第8項所述的近接感測裝置,其中該處理器一開始判斷該第一反射光訊號的強度小於或等於該第一臨界值時,則判定沒有物體接近。According to the proximity sensing device of claim 8, wherein the processor initially determines that the intensity of the first reflected light signal is less than or equal to the first critical value, determining that no object is approaching. 依據申請專利範圍第8或9項所述的近接感測裝置,其中該處理器判斷該比值小於或等於該第三臨界值,則判定沒有物體接近。The proximity sensing device according to claim 8 or 9, wherein the processor determines that the ratio is less than or equal to the third threshold, and determines that no object is approaching. 依據申請專利範圍第10項所述的近接感測裝置,其中該處理器判斷該比值小於或等於該第三臨界值,則令該控制 器關閉該第二發光元件。According to the proximity sensing device of claim 10, wherein the processor determines that the ratio is less than or equal to the third threshold, the control is The second light emitting element is turned off. 依據申請專利範圍第8項所述的近接感測裝置,其中,當該第二發光元件發射該第二光訊號時,該控制器控制該第一發光元件及該第二發光元件交錯發射該第一光訊號及該第二光訊號。The proximity sensing device of claim 8, wherein the controller controls the first light emitting element and the second light emitting element to alternately emit the second light emitting element when the second light emitting element emits the second light signal An optical signal and the second optical signal. 依據申請專利範圍第8項所述的近接感測裝置,其中該第二發光元件設在該第一發光元件遠離該光感測器的一側,且該近接感測裝置還包括一設在該第一發光元件與該光感測器之間的第一隔光機構,以及一設在該第二發光元件之接近該第二發光元件的一側的第二隔光機構。The proximity sensing device of claim 8, wherein the second illuminating element is disposed on a side of the first illuminating element away from the photo sensor, and the proximity sensing device further comprises a a first light blocking mechanism between the first light emitting element and the photo sensor, and a second light blocking mechanism disposed on a side of the second light emitting element adjacent to the second light emitting element. 一種近接感測裝置,包括:一第一發光元件;一光感測器,與該第一發光元件相鄰;一第二發光元件,與該光感測器間隔一預定距離;一控制器,控制該第一發光元件發射一第一光訊號,使該光感測器感測該第一光訊號的一第一反射光訊號;及一處理器,判斷該第一反射光訊號的強度大於一臨界值時,判定有物體接近,並令該控制器控制該第二發光元件發射一第二光訊號,使該光感測器感測該第二光訊號的一第二反射光訊號,且該處理器判斷該第一反射光訊號的強度與該第二反射光訊號的強度的一比值大於一預設值時,則判定有物體接近。A proximity sensing device comprising: a first illuminating element; a photo sensor adjacent to the first illuminating element; a second illuminating element spaced apart from the photo sensor by a predetermined distance; a controller Controlling the first light-emitting element to emit a first light signal, so that the light sensor senses a first reflected light signal of the first light signal; and a processor determining that the intensity of the first reflected light signal is greater than one a threshold value, determining that an object is close, and causing the controller to control the second light emitting component to emit a second light signal, so that the light sensor senses a second reflected light signal of the second light signal, and the When the processor determines that the ratio of the intensity of the first reflected light signal to the intensity of the second reflected light signal is greater than a predetermined value, it is determined that an object is close. 一種近接感測裝置,包括: 一第一發光元件;一光感測器,與該第一發光元件相鄰;一第二發光元件,與該光感測器間隔一預定距離;一控制器,控制該第一發光元件與該第二發光元件交錯地發射一第一光訊號及一第二光訊號,使該光感測器分別感測該第一光訊號的一第一反射光訊號,以及感測該第二光訊號的一第二反射光訊號;及一處理器,判斷該第一反射光訊號的強度與該第二反射光訊號的強度的一比值大於一預設值時,則判定有物體接近,否則判定沒有物體接近。A proximity sensing device comprising: a first light-emitting element; a light sensor adjacent to the first light-emitting element; a second light-emitting element spaced apart from the light sensor by a predetermined distance; a controller controlling the first light-emitting element and the The second light-emitting elements alternately emit a first optical signal and a second optical signal, so that the light sensor respectively senses a first reflected light signal of the first optical signal, and senses the second optical signal. a second reflected light signal; and a processor determining that the ratio of the intensity of the first reflected light signal to the intensity of the second reflected light signal is greater than a predetermined value, determining that an object is close, otherwise determining that there is no object Close. 一種近接感測方法,其預設相鄰的一發光元件及一第一光感測器,以及一與該發光元件間隔一預定距離的第二光感測器,並進行步驟包括:(A)令該發光元件發射一光訊號,並開啟該第一光感測器使感測該光訊號的一第一反射光訊號;(B)判斷該第一反射光訊號的強度是否大於一第一臨界值,若是,判定有物體接近;(C)再判斷該第一反射光訊號的強度是否大於一第二臨界值,若否,開啟該第二光感測器使感測該光訊號的一第二反射光訊號,其中該第二臨界值小於或等於該第一臨界值;及(D)判斷該第一反射光訊號的強度與該第二反射光訊號的強度的一比值是否大於一第三臨界值,若是,則判定有物體接近。A proximity sensing method, which presets an adjacent one of the light emitting elements and a first photo sensor, and a second photosensor spaced apart from the light emitting element by a predetermined distance, and the steps include: (A) Having the light emitting element emit an optical signal, and the first light sensor is turned on to sense a first reflected light signal of the optical signal; (B) determining whether the intensity of the first reflected light signal is greater than a first criticality a value, if yes, determining that an object is close; (C) determining whether the intensity of the first reflected light signal is greater than a second threshold, and if not, turning on the second light sensor to sense the first signal a second reflected light signal, wherein the second critical value is less than or equal to the first critical value; and (D) determining whether a ratio of the intensity of the first reflected light signal to the intensity of the second reflected light signal is greater than a third The critical value, if it is, determines that an object is close. 一種近接感測方法,其預設相鄰的一發光元件及一第一光感測器,以及一與該發光元件間隔一預定距離的第二光感測器,並進行步驟包括:(A)令該發光元件發射一光訊號,並開啟該第一光感測器使感測該光訊號的一第一反射光訊號;(B)判斷該第一反射光訊號的強度是否大於一臨界值,若是,判定有物體接近,並開啟該第二光感測器使感測該光訊號的一第二反射光訊號;及(C)判斷該第一反射光訊號的強度與該第二反射光訊號的強度的一比值是否大於一預設值,若是,則判定有物體接近。A proximity sensing method, which presets an adjacent one of the light emitting elements and a first photo sensor, and a second photosensor spaced apart from the light emitting element by a predetermined distance, and the steps include: (A) Having the light emitting element emit an optical signal, and the first light sensor is turned on to sense a first reflected light signal of the optical signal; (B) determining whether the intensity of the first reflected light signal is greater than a critical value, If yes, determining that an object is in proximity, and turning on the second photo sensor to sense a second reflected light signal of the optical signal; and (C) determining the intensity of the first reflected light signal and the second reflected light signal Whether a ratio of the intensity is greater than a predetermined value, and if so, it is determined that an object is close. 一種近接感測方法,其預設相鄰的一發光元件及一第一光感測器,以及一與該第一發光元件間隔一預定距離的第二光感測器,並進行步驟包括:(A)令該發光元件發射一光訊號,並同時開啟該第一光感測器及該第二光感測器,使分別感測該光訊號的一第一反射光訊號及一第二反射光訊號;及(B)判斷該第一反射光訊號的強度與該第二反射光訊號的強度的一比值是否大於一預設值,若是,判定有物體接近,否則判定沒有物體接近。A proximity sensing method, which presets an adjacent one of the light-emitting elements and a first light sensor, and a second light sensor spaced apart from the first light-emitting element by a predetermined distance, and the steps include: A) causing the illuminating element to emit an optical signal, and simultaneously turning on the first photo sensor and the second photo sensor to respectively sense a first reflected light signal and a second reflected light of the optical signal And (B) determining whether a ratio of the intensity of the first reflected light signal to the intensity of the second reflected light signal is greater than a predetermined value, and if so, determining that an object is close, otherwise determining that no object is approaching. 一種近接感測裝置,包括:一發光元件;一第一光感測器,與該第一發光元件相鄰;一第二光感測器,與該發光元件間隔一預定距離; 一控制器,控制該發光元件發射一光訊號,並開啟該第一光感測器使感測該第一光訊號的一第一反射光訊號;及一處理器,判斷該第一反射光訊號的強度大於一第一臨界值時,判定有物體接近,並於後續判斷該第一反射光訊號的強度小於或等於一第二臨界值時,令該控制器開啟該第二光感測器使感測該光訊號的一第二反射光訊號,且該處理器判斷該第一反射光訊號的強度與該第二反射光訊號的強度的一比值大於一第三臨界值時,則判定有物體接近。A proximity sensing device includes: a light emitting element; a first light sensor adjacent to the first light emitting element; and a second light sensor spaced apart from the light emitting element by a predetermined distance; a controller controlling the light emitting element to emit an optical signal, and turning on the first light sensor to sense a first reflected light signal of the first optical signal; and a processor determining the first reflected light signal When the intensity is greater than a first threshold, determining that an object is close, and subsequently determining that the intensity of the first reflected light signal is less than or equal to a second threshold, causing the controller to turn on the second light sensor Sensing an object of the second reflected light signal of the optical signal, and the processor determines that the ratio of the intensity of the first reflected light signal to the intensity of the second reflected light signal is greater than a third threshold Close. 一種近接感測裝置,包括:一發光元件;一第一光感測器,與該第一發光元件相鄰;一第二光感測器,與該發光元件間隔一預定距離;一控制器,控制該發光元件發射一光訊號,並開啟該第一光感測器使感測該第一光訊號的一第一反射光訊號;及一處理器,判斷該第一反射光訊號的強度大於一臨界值時,判定有物體接近,並令該控制器開啟該第二光感測器使感測該光訊號的一第二反射光訊號,且該處理器判斷該第一反射光訊號的強度與該第二反射光訊號的強度的一比值大於一預設值時,則判定有物體接近。A proximity sensing device comprising: a light emitting element; a first light sensor adjacent to the first light emitting element; a second light sensor spaced apart from the light emitting element by a predetermined distance; a controller Controlling the light emitting element to emit an optical signal, and turning on the first light sensor to sense a first reflected light signal of the first optical signal; and a processor determining that the intensity of the first reflected light signal is greater than one At a threshold value, determining that an object is close, and causing the controller to turn on the second photo sensor to sense a second reflected light signal of the optical signal, and the processor determines the intensity of the first reflected light signal and When a ratio of the intensity of the second reflected light signal is greater than a predetermined value, it is determined that an object is close. 一種近接感測裝置,包括:一發光元件; 一第一光感測器,與該第一發光元件相鄰;一第二光感測器,與該發光元件間隔一預定距離;一控制器,控制該發光元件發射一光訊號,並同時開啟該第一光感測器及該第二光感測器,使分別感測該光訊號的一第一反射光訊號及一第二反射光訊號;及一處理器,判斷該第一反射光訊號的強度與該第二反射光訊號的強度的一比值是否大於一預設值,若是,判定有物體接近,否則判定沒有物體接近。A proximity sensing device comprising: a light emitting element; a first photo sensor adjacent to the first illuminating element; a second photo sensor spaced apart from the illuminating element by a predetermined distance; a controller controlling the illuminating element to emit an optical signal and simultaneously turning on The first photo sensor and the second photo sensor respectively sense a first reflected light signal and a second reflected light signal of the optical signal; and a processor determines the first reflected light signal Whether the ratio of the intensity of the second reflected light signal to the intensity of the second reflected light signal is greater than a predetermined value, and if so, it is determined that an object is close, otherwise it is determined that no object is close.
TW101137700A 2012-10-12 2012-10-12 Method and device of proximity sensing TWI445992B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW101137700A TWI445992B (en) 2012-10-12 2012-10-12 Method and device of proximity sensing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW101137700A TWI445992B (en) 2012-10-12 2012-10-12 Method and device of proximity sensing

Publications (2)

Publication Number Publication Date
TW201415058A TW201415058A (en) 2014-04-16
TWI445992B true TWI445992B (en) 2014-07-21

Family

ID=51795189

Family Applications (1)

Application Number Title Priority Date Filing Date
TW101137700A TWI445992B (en) 2012-10-12 2012-10-12 Method and device of proximity sensing

Country Status (1)

Country Link
TW (1) TWI445992B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180375513A1 (en) * 2017-05-03 2018-12-27 Sensortek Technology Corp. Proximity Sensor and Proximity Sensing Module
TWI685670B (en) * 2018-05-07 2020-02-21 新加坡商光寶科技新加坡私人有限公司 Proximity sensor module with two emitters
CN110456367A (en) * 2018-05-07 2019-11-15 光宝新加坡有限公司 Proximity induction module with double transmitters

Also Published As

Publication number Publication date
TW201415058A (en) 2014-04-16

Similar Documents

Publication Publication Date Title
US9696853B2 (en) Optical touch apparatus capable of detecting displacement and optical touch method thereof
US8363894B2 (en) Apparatus and method for implementing a touchless slider
TWI512313B (en) Proximity sensor and operating method thereof
US9485840B2 (en) Sensing within a region
US8212500B2 (en) System for controlling light in dependence of time-of-flight signal
CN105612482B (en) Control system of gesture sensing device and method for controlling gesture sensing device
EP3075215B1 (en) Multi-modal sensing
TW201104537A (en) Apparatus and method for optical proximity sensing and touch input control
TWI540480B (en) Optical touch apparatus and optical touch method
TWI445992B (en) Method and device of proximity sensing
CN103777818A (en) Proximity sensing method and device
US9569028B2 (en) Optical touch system, method of touch detection, method of calibration, and computer program product
US8536531B2 (en) Proximity sensing apparatus and sensing method thereof
EP2904705B1 (en) Multiple function arrangement for electronic apparatus and method thereof
US9575613B2 (en) Touch-sensing apparatus, touch system, and touch-detection method
US20140098025A1 (en) Portable electrical input device capable of docking an electrical communication device and system thereof
US20170212639A1 (en) Optical touch sensing system, optical touch sensing device and touch detection method thereof
US8643309B2 (en) Lighting device and method for adjusting sensing region thereof
US10401976B2 (en) Electronic system and operation method thereof
TWI496054B (en) Optical touch control device, optical touch control and displacement detecing device, adjustable light guiding device, optical touch control method, and optical touch control and displacement detecing method
US10331273B2 (en) Touch display system, touch device and touch display method for avoiding misjudging of touch position
KR101236200B1 (en) Touch screen using multi reflection
KR101332692B1 (en) Proximity CMOS sensor, device having proximity CMOS sensor and auto calibration method
US20110156923A1 (en) Information feedback or message to end-user for led light-control systems
TWM272503U (en) Sensor

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees