TMCnet News

Improvement of Ir Proximity Sensor Based on Digital Simulation Mixed Subtraction Circuit [Sensors & Transducers (Canada)]
[April 22, 2014]

Improvement of Ir Proximity Sensor Based on Digital Simulation Mixed Subtraction Circuit [Sensors & Transducers (Canada)]


(Sensors & Transducers (Canada) Via Acquire Media NewsEdge) Abstract: This paper analyses the working principle of infrared proximity sensor, puts forward an efficient environmental noise suppression method for the problem that the test results are susceptible to environmental noise impact. The method is based on digital simulation mixed subtraction circuit, through the optical coating filter to filter out noise environment step by step, filtering background current and dark current in the total current of the PD from the IR LED so as to realize the accurate detection of the sensor. On the basis of detailed analysis of the method, this paper designs the related sensor circuit. The circuit can filter the ambient noise with maximum background light of 4000 1x and temperature of 85. Implements the accurate determination of proximity degree of the objects within the scope of 25 cm. Spectre simulation results show that after filtering out the noise, it is close to the detect output value and the ideal value (that is, the background light of 0 1x), and the error is less than 1 %. The designed circuit has been verified under 0. 35 µm 3 V CMOS, the results meet the design targets. Copyright © 2013 IFSA.



Keywords: Mixed digital simulation subtraction circuit, Ir proximity sensor, Ambient noise rejection.

(ProQuest: ... denotes formulae omitted.) 1. Introduction Proximity sensor has been successful in industrial, medical, and aerospace and other fields [1], now it witnessed another success on the consumer electronics market. Proximity sensor according to its basic principle is divided into inductance type, capacitive type, magnetic inductive type, photoelectric type and ultrasonic type, etc. [4], Ir proximity sensor is widely applied in portable handheld devices such as mobile phones, personal digital assistant (PDA). Ir proximity sensor adopts PD (photodiode) which is compatible with CMOS process [5], To integrate the photoelectric detection unit and the signal processing unit in the same chip, in order to reduce the circuit cost and power consumption. By PD detection of light power of the reflected infrared LED (light emitting diode) by the object, determine the degree of closeness of the objects.


Since the IR proximity sensor works under the condition of sunlight and background lights, reflected signals of tested content are faint and easy to be submerged in the complex background noises. And with the increase of temperature, the PD dark current index increases, even bigger than the photoelectric conversion current, so it is unable to accurately detect the degree of closeness of the objects. Traditional practice is to use large current to drive LED and increase the luminous intensity of LED, or keep the chip work under low temperature, thus inevitably increase the power or limit the scope of the chip. Based on the environmental noise problems of background light and dark current of the IR proximity sensor, this paper puts forward a method of highly restrain of the influence of environmental noise, filter out ambient noise step by step through optical filtering and subtraction circuit [3], and the related circuit is designed.

2. Basic Principle of Infrared Proximity Detection Infrared proximity sensor is mainly composed of infrared LED, PD and signal processing units. Its basic working principle [6] is shown in Fig. 1: Infrared LED sends a bunch of infrared signal to the detected objects, part of the signal will bounce back and sensed by PD sensor to produce the photocurrent which is in direct proportion to the degree of closeness of the object and the magnitude of detected infrared light. Through signal processing and analog digital conversion on the chip, digital infrared signals can be sent to the MCU (micro control unit) for postprocessing and then used for various proximity detections.

Specific relationship between light current and degree of closeness of objects is as follows: Suppose the light wavelength sent by infrared LED is LED , radiation flux is M, real output is P0, scattering angle is 0, infrared reflectivity of the detected object to the wavelength is a, penetration rate of optical encapsulation and system cover is T, distance between the detected object and sensor surface is d. By the definition of radiation flux density, radiation flux of infrared LED sensed by photodiode is: ... (1) ... (2) where ApD is the area of the photodiode, light current of the photodiode is: ... (3) where is the responsibility of photodiode to wavelength ÀLED , by equation (l)-(3), the relationship between the photocurrent and distance can be obtained: ... (4) where f is the invariant.

... (5) By equation (5), it can be obtained that f is related to factors as photoelectric diode area, radiant power of infrared LED. By equation (4)-(5), the relationship between photocurrent, distance, radiant power of infrared LED and photoelectric diode area is obtained. Through the relationship, the required parameters can be set reasonably according to application requirements.

The light current [2] produced by PD theoretically under unit light is: ... (6) where Pk is the light source spectral irradiance, Tk is the coating penetration rate, Rk is the spectral response of PD, by equation (6), it can be obtained that: ... (7) where \ + (i - 1)AÁ , is the first wavelength of the known spectral data points, AÂ is the difference between the ith wavelength and the i-1 wavelength, i is the serial number of spectral data points, Pk , Tk , and R^ are respectively the light source spectral irradiance, coating penetration rate and the value of spectral response of PD when À = Ái. By equation (7), the responsibility of photodiode on the light source can be approximately obtained. And then the light current produced by ambient light is obtained, and it is used for the design of the related parameters on filtering noise circuit.

Proximity sensor works under sunlight or background light, PD responses to LED infrared light reflected back by the object and also responses to the background light at the same time. Infrared light reflected back by the object is submerged in complex background noise of light, thus may not be able to detect the proximity of the objects. For photodiode, optical filming is used for filtering out the light beyond infrared band of the background light to reduce background noise. But the effect of infrared light of background light on the proximity detection can not be eliminated. The spectral response of sunlight is very wide [7], about 50 % of spectrum falls within the range of infrared light and incandescent lamp also has high infrared radiation. When the infrared radiation power of LED is low or distance between the object and sensor is far, the infrared light of the background light generates light current too large that leads to sensor detection error. And PD dark current and light generated photocurrent is hard to distinguish, so the infrared light and dark current problems seriously affect the accurate detection of the sensor. This study using subtraction circuit of sequential control to shutdown current of infrared LED, which is to filter out the background current and dark current of the total current of PD in order to realize the accurate detection of sensor. First minus background current and dark current of the total current produced by PD, through analogue-to-digital conversion feedback current, reduce the noise current ratio. Then through the sequential control, subtract testing result with LED light and without LED light, after two times of subtraction, the noise current is filtered out and accurate result of proximity detection is obtained. 3. Circuit Design System structure of the sensor is shown in Fig. 2. Circuit is mainly composed of PD and current control module, ADC (analog digital converter) and DAC (digital to analog converter), timing control circuit and the LED driver circuit, etc.

3.1. Photodiode and Current Control Module Photoelectric diode and current control module are shown in Fig. 3.

The module realizes the photoelectric conversion through the PD reversal of biasing. To make the PD output stable photocurrent, PD bias voltage must be stabilized. Through Ml - M6 , M8 , R} and EA, constitutes a negative voltage collapse to stabilize grid voltage M8 and makes the PD work under the stable bias voltage. Introduced current by voltage bias circuit (the current can be filtered out through the filter noise circuit with shutdown current of infrared LED.) and current produced by PD denoted by Ix . Photocurrent produced by charge balance ADC is converted to the corresponding digital output. The control signal frequency of M9, M10 , Mn ' > Mn and M]g is high, in order to prevent its conduction and introducing the noise at the same time, the signals produced by inverter directly are replaced by HOLD circuit. By adding the buffer circuit constituted by OTA (current amplifier) on leakage ends of Mn , M]4 , M1S and M]g to reduce the current switching noise. Reference current h i IR3 in the figure through integrated control of switch control signal Q_EN, Q CTRL1 and Q CTRL2, finally outputs IR as the reference current in the process of analog-to-digital conversion. IFB is feedback current of background current and dark current through analog-to-digital conversion, IpB ~ nJm /127 * 3.2. Analog - Digital Conversion Module and Environmental Noise Elimination 3.2.1. Analog - Digital Conversion Based on the advantages of charge balance ADC such as strong anti-jamming capability, apply ADC to achieve analog-digital conversion of photo-signal, as shown in Fig. 4, the specific working mode is as follows: Reset. Through the RESET signal to reset the ADC before work. Integral input/output short circuit, remove influence on analog - digital conversion accuracy of residual charge from the integrating capacitor.

b. Analog - digital conversion. Refer to the sequence diagram shown in Fig. 5. When the light current Ix is conducted, integral voltage rises. When integral voltage is greater than VR, the output of COMP is high through sequential control which breaks over IR . When IR and Ix break over at the same time, integral voltage drops. When integral voltage is lower than VR , IR is shutoff and Ix break over. Integral voltage rises again. It repeats until the testing process is complete. Through the counter, PROX - CLK pulses are counted when COMP is in high level. Thus complete the simulation - digital conversion.

3.2.2. Working Sequence and Environmental Noise Elimination Environmental noise elimination is realized in the process of proximity detection. It has three stages, the specific sequence is shown in Fig. 5.

Stage 1 infrared LED turns off, shutdown current Ix of infrared LED is in periodic conduction, the counter begins to count, by charge balance relationship, it can be obtained as follows: ... (8) where nx is the number of conduction of reference current IR in the environmental noise elimination phase 1. IR =IRX + IR3 . TCLK is one cycle of ambient light detection work. Nx is the ADC digits (7 digits) of that stage. Simplify equation (8) to the following: ... (9) When Ix = IR , nx = 2'V| - 1, maximum value that can be realized of analog to digital conversion Ix is IRX + IR3 . nx is the maximum count of shutdown current of infrared LED, input to 7 bitREG.

Stage 2 infrared LED turns on, with X breaks over. Count begins after the counter reset. By the charge balance relationship: ... (10) where IR = IR2 .Ix is the substraction of sum of shutdown current and light current generated by LED infrared light reflected by the object to IFB . Ifb = K\Ir\ /127, n2 is the number of conduction of IR in the proximity detection stage 2 of environmental noise elimination. N2 is the ADC digits (8 digits) of that stage. Simplify equation (10) to the following: ... (11) When Ix=Ir/2 , n2= 2*-l , n2 represents the maximum count of substraction of sum of shutdown current and light current generated by LED infrared light reflected by the object to IFB .

Stage 3 infrared LED turns off, with Ix breaks over, without the counter reset. Count based on n2, By the charge balance relationship: ... (12) IR = IR2 , n3 is the count value after the completion of stage 3. n2 - n3 is the number of conduction of reference current IR of stage 3. N2 is the ADC digits (8 digits) of that stage. Simplify equation (12) to the following: ... (13) When Ix = IR / 2, n2 - n3 = 2* -1, n2-n3 represents maximum count of substraction of shutdown current to IFB, n3 is the final count for the proximity degree detection of the object after the filtering out of the background light and dark current, input to 8 bit_REG.

All in all, PROX de noising process consists of two steps: Due to the discontinuity of ADC and DAC, in order to prevent that IFB is greater than the real sum of background current and dark current generated by PD, the sum of background current and dark current in the circuit designed 127 is /"=«,(/",+/",)/127, of which, the value of IR1 and IR3 are respectively 1285nA and 14.5nA. And IFB = 0.99Ixl. In stage 2 and 3, Ix minus IFB, which means that electric current undergoes analog to digital conversion in stage 2 has almost filtered out all shutoff current. Secondly, through the substraction of the testing result with LED light on in stage 2 and with LED light off in stage 3, the rest shutoff current will be further filtered out.

It is important to note that, in equation (4), when d = 0 , the light current generated by photodiode is not infinite, rather the light sent by infrared LED cannot be detected by a photodiode through object reflections. So the photoelectric diode current is 0(not consider dark current). The sensor designed works under sunlight or background light of 4000 lx (given indoor illumination light by GB 50034-2004 building lighting design standard is generally not more than 2000 lx), which meets the general demand. And since close distance between sensor and the detected object will keep out the light, illuminance sensed by the sensor is not more than 4000 lx. So it can be considered that the distance between the object and sensor is far when the sensed illuminance is greater than 4000 lx, so detected output data is set to be 0.

For equation (2), the parameters designed are XLED = 865 nm, M = 14.25 W, Pa= 50 %, 0=30°, a = 30 %, T = 80 %, Apd = 0.076032 mm2, R(A¿£D) = 585.25 mA/W, Through the calculation, it can be obtained that when / = 67.432869 x 10-12A*m2, d =25 mm2, the light current of infrared LED reflected by the object is ILED =107 nA, the value of parameter R2 is 210 nA. Suppose when the distance between the object and the sensor is around 25 mm, detected output value is maximum. For equation (7), take incandescent light bulb as an example, when À, = 350 nm, Xn =1100 nm, AX = 5 nm, the light current generated by PD under unit light is Ib = 0.3 nA/lx, when background light is 4000 lx, light current generated by PD is 1200 nA, in order to filter out the 4000 lx background light, IRi +1R3 must be greater than the sum of background current and dark current. Here, the value of IRl +IR3 is 1299.5 nA, which meets the design requirements.

4. Simulation Results and the Layout The infrared proximity sensor designed is based on 0.35 pm CMOS technology. It applies Spectre simulation tool, when ^dd ~ ^ V, the temperature is 25 V, on the condition of background light of 0 lx and different temperature, simulation verification was carried out before and after noise filtering respectively. The simulation results are shown in Fig. 6 and Fig. 7.

As shown in Fig. 6, before filtering out background noise of light, with the increase of light, the scope which can be detected become smaller, to a certain value, the proximity detection always output maximum value and the proximity degree of the object cannot be detected. After filtering out the noise, the output value of proximity detection is similar to the ideal value (that is, the background light is 0 lx), with error less than 1 %. Background light in Fig. 7 is 0 lx, and detection range reduces with the increase of temperature. When the temperature is 85 °C, the proximity degree cannot be detected. After filtering out the dark current, the result is close to the ideal value. The circuit designed in this paper can filter out maximum environmental noise of background light of 4000 lx and temperature of 85 °C. The value can increase or decrease according to application requirements. The designed circuit module is shown in Fig. 8 (PD array for photoelectric diode, the digital processing module includes sequential control and data storage), the area is 440 pmx420 pm, tip out under 0.35 pm 3 V CMOS technology. The results show that the sensor designed meets the design requirements.

References [1]. M. A. Swartwout, S. Jayaram, The argus mission: detecting thruster plumes for space situational awareness, in Proceedings of the IEEE Aerospace Conference, Big Sky, 2011, pp. 1-10.

[2]. S. Yingfeng, J. E. Speich, K. K. Leang, Low-cost IR reflective sensors for submicrolevel position measurement and control, IEEE/ASME Transactions on Mechatronics, Vol. 6, Issue 3,2008, pp.700-709.

[3]. A. Tar, M. Koller, G. Cserey, 3D geometry reconstruction using large infrared proximity array [7]. for robotic applications, in Proceedings of the IEEE International Conference on Mechatronics, Malaga, 2009, pp. 1-6.

[4]. C. Enchen, S. Chengyang, D. Mingzhi, Polymer infrared proximity sensor array, IEEE Transactions on Electron Devices, Vol. 58, Issue 4, 2011, pp. 1215-1220.

[5]. V. Rana, N. Paliwal, A. Chahar. Touch sensor assembly using infrared radiations and its applications, in Proceedings of the IEEE International Conference on Computational Intelligence, Communication Systems and Networks, Indore, 2009, pp. 96-98.

[6]. R. Ruijian, L. Xinquan, L. Yushan, CMOS image sensor chip imaging technology, Microsystem Electronics, Vol. 31, 2001, pp. 272-275.

[7]. Y. Huang, Q. Cao,. Laser and whole d visual fusion of mobile robot positioning, Journal of Huazhong University of Science and Technology, Vol. 32, Issue SI, 2004, pp. 93-96.

Wu JUNSHENG School of Engineering College, Shanxi Uni versify,Taiyuan, Shanxi, 030013, China E-mail: [email protected] Received: 26 October 2013 /Accepted: 22 November 2013 /Published: 30 December 2013 (c) 2013 International Frequency Sensor Association

[ Back To TMCnet.com's Homepage ]