ROSANNAPAPINI.IT ≡ Accessories Circuitoimpreso Kits Educativos Amplifier
  • Proximity

  • IR Sensor for Obstacle Avoidance KY-032

IR Sensor for Obstacle Avoidance KY-032

$20.7 $26.29
This Infrared Obsta­cle Avoid­ance Sen­sor returns a sig­nal when it detects an object in range. The range of the sen­sor is around 2–40 cm is dis­tance. It oper­ates at 3.5 to 5 volts at around 20 mil­liamps. The Obsta­cle Avoid­ance Sen­sors usu­al­ly come in two types — with 3 and 4 pins. The 3 pin ver­sion does not have the abil­i­ty to be enabled/disabled. The 4 pin ver­sion has option­al Enable pin. Infrared obsta­cle avoid­ance sen­sor is designed to detect obsta­cles or the dif­fer­ence in reflec­tive ser­vices. One appli­ca­tion is to help a wheeled robot avoid obsta­cles with a sen­sor to react to adjustable dis­tance set­tings. This device has an infrared trans­mit­ter and receiv­er, that forms the sen­sor pair. The trans­mit­ter LED emits a cer­tain fre­quen­cy of infrared, which the receiv­er LED will detect. The receiv­ing LED will detect some of the sig­nal back and will trig­ger the dig­i­tal on/off “sig­nal” pin when a spe­cif­ic thresh­old “dis­tance” has been detect­ed. Most boards will have 2 poten­tiome­ters, one of which is to adjust how sen­si­tive the sen­sor is. You can use it to adjust the dis­tance from the object at which the sen­sor detects it. Typ­i­cal­ly, the oth­er poten­tiome­ter, which changes the trans­mit­ter IR fre­quen­cy is not adjust­ed.SpecificationsWork­ing volt­age: DC 3.3V-5VWork­ing cur­rent: ≥ 20mAOper­at­ing tem­per­a­ture: ‑10 ℃ — 50 ℃detec­tion dis­tance :2–40cmIO Inter­face: 4‑wire inter­faces (- / / S / EN)Out­put sig­nal: TTL lev­el (low lev­el there is an obsta­cle, no obsta­cle high)Adjust­ment: adjust mul­ti-turn resis­tanceEffec­tive angle: 35 °Size: 28mm × 23mmWeight Size: 9gHere we use the obsta­cle avoid­ance mod­ule and a dig­i­tal inter­face, built-in 13 LED build a sim­ple cir­cuit, mak­ing avoid­ance warn­ing lamp, the obsta­cle avoid­ance Sen­sor Access Dig­i­tal 3 inter­face, when obsta­cle avoid­ance sen­sor sens­es a sig­nal, LED light, and vice ver­sa off.Example code Arduino int Led = 13 ;// define LED Interface int buttonpin = 3; // define the obstacle avoidance sensor interface int val ;// define numeric variables val void setup () { pinMode (Led, OUTPUT) ;// define LED as output interface pinMode (buttonpin, INPUT) ;// define the obstacle avoidance sensor output interface } void loop () { val = digitalRead (buttonpin) ;// digital interface will be assigned a value of 3 to read val if (val == HIGH) // When the obstacle avoidance sensor detects a signal, LED flashes { digitalWrite (Led, HIGH); } else { digitalWrite (Led, LOW); } }1234567891011121314151617181920int Led = 13 ;// define LED Inter­faceint but­ton­pin = 3; // define the obsta­cle avoid­ance sen­sor inter­faceint val ;// define numer­ic vari­ables valvoid set­up (){  pin­Mode (Led, OUTPUT) ;// define LED as out­put inter­face  pin­Mode (but­ton­pin, INPUT) ;// define the obsta­cle avoid­ance sen­sor out­put inter­face}void loop (){  val = dig­i­tal­Read (but­ton­pin) ;// dig­i­tal inter­face will be assigned a val­ue of 3 to read val  if (val == HIGH) // When the obsta­cle avoid­ance sen­sor detects a sig­nal, LED flash­es  {    dig­i­tal­Write (Led, HIGH);  }  else  {    dig­i­tal­Write (Led, LOW);  }}
Proximity

Proximity

  • Waterproof Integrated Ultrasonic Ranging Module — JSN-B02
    $60.3 $75.38
  • Ultrasonic Ranging Sensor Bracket
    $12.6 $16.25
  • TF-Luna (ToF) Micro Single-point Ranging LiDAR
    $62.5 $118.75
  • IR Sensor for Obstacle Avoidance KY-032
    $20.7 $26.29
  • VL53L0XV2 Laser Ranging Sensor Time-of-Flight (ToF)
    $22.5 $31.05
  • Ultrasonic Ranging Module HC-SR04
    $19.8 $28.71
  • Sweep Hand Sensor Switch Module
    $21.6 $26.35
  • GYVL53L0XV2 Laser Ranging Sensor Time-of-Flight (ToF)
    $17.1 $20.86
  • HB100 X 10.525GHz Microwave Sensor
    $35.1 $48.09

© 2026 - ROSANNAPAPINI.IT