Monday 30 July 2018

IR Sensor for Obstacle Avoidance KY-032 (AD-032)

This sensor is known variously as the Keyes, KeyesIR or Keyestudio KY-032.  It is the the functional equivalent of the IrBeady IR-08H, also known as the AD-032.  The sensor uses a four pin connector, The pins are labeled: EN (Enable), out (Output), + (Power) and GND (Ground).  There are also two potentiometers on the board and one jumper (see picture).








Manufacturer's Specifications:

Working voltage: 3.3V to 5VDC
Working current: ≥ 20mA
Operating temperature: -10°C  to +50°C
Detection distance: 2 to 40cm
IO Interface: 4-pin (EN / +V / S / GND)
Output signal: TTL level
LOW level if obstacle detected
HIGH if no obstacle detected
Adjustment: two single-turn variable resistors
Effective angle: ±35°
Size: 28mm × 23mm
Weight: 9g

At the heart of the sensor is an NE555 chip configured to generate a 38kHz square wave. (The IR-08H uses an SN74LS00.)  The 38kHz signal is used to illuminate an Infra Red (IR) LED.  Light reflected from the LED is detected by a Vishay HS0038B IR receiver module (see data sheet).  The receiver module incorporates an external, optical, 950nm IR filter and an internal, electronic, 38kHz band-pass filter that make the module receptive only to IR light pulsing at that frequency.
One of the potentiometers on the board (R6) is used to fine tune the signal to exactly 38kHz. The other (R5) adjusts the duty cycle of the signal, which controls the brightness of the IR LED.
Both adjustments together effect the sensitivity or range of the device.  Proper adjustment of R6 requires an oscilloscope or a frequency counter.  Otherwise it can be left centered or as it came from the manufacturer.
The receiver module also includes an AGC (Automatic Gain Control) that will suppress a continuous signal of any frequency, including 38kHz (see excerpt from data sheet, below).  Therefore, it is absolutley necessary to use the 'EN' or 'Enable' pin for proper operation of the device.  If the Enable function is used correctly, the device will achieve its maximum sensitivity.
On most versions of this device, the Infra Red (IR) LED is already covered with a small piece of black shrink tubing; but I find that additional optical shielding is required.  A small cardboard tube commonly used as packing material will work satisfactorily, as will a variety of other materials.
When the GREEN JUMPER is installed on the board (see picture), the IR LED will flicker continuously at 38kHz.  If the Enable (EN) function will not be used, the jumper must be installed .  When the jumper is removed, pin 4 of the 555 timer is held LOW (RESET) by R3, a 22K pull-down resistor. Then, if a HIGH condition is applied to the EN pin, the reset condition will be relieved and the 555 timer will begin to oscillate. The Enable function cannot be used if the GREEN JUMPER is in place.  You must remove the jumper on the board in order to use the EN (Enable) pin.




This schematic of the KY-032 was created by examining the circuit board.  This is my second attempt. I cannot guarantee its accuracy.  It was drawn using the EasyEDA online electronic circuit design tool.  The values of the two capacitors are not known.
I want to thank Arik Yavilevich for his valuable contribution.  Further comments and corrections will be appreciated.




Daha müthiş projeler için YouTube kanalıma ABONE olmakdan çekinmeyin...

Yaklaşan projeler  ilgili haberler için beni Facebook, Twitter ve Google + 'da takip edebilirsiniz:

No comments: