-21%

SHARP GP2Y0A710K0F 紅外線距離感測器 Analog 測距感測器 測量範圍100~550cm

NT$762 NT$600 未稅

SHARP GP2Y0A710K0F 紅外線距離感測器 Analog 測距感測器 測量範圍100~550cm

◎ 是一種距離測量傳感器組件,由一個PSD (位置靈敏感測器)、IRED(紅外發光二極管) 和信號處理電路組成
◎ 採用三角測量法:檢測距離不易受到,各種物體反射率,對環境的溫度和持續操作時間的影響
◎ 輸出的電壓對應檢測距離。因此,這種感測器也可以用來作為接近感測器

尚有庫存

貨號: 282547543(B5-14) 分類: 標籤: , , , ,
  • 商品說明

商品說明

SHARP GP2Y0A710K0F 紅外線距離感測器 Analog 測距感測器 測量範圍100~550cm

◎ 是一種距離測量傳感器組件,由一個PSD (位置靈敏感測器)、IRED(紅外發光二極管) 和信號處理電路組成
◎ 採用三角測量法:檢測距離不易受到,各種物體反射率,對環境的溫度和持續操作時間的影響
◎ 輸出的電壓對應檢測距離。因此,這種感測器也可以用來作為接近感測器

  • SHARP GP2Y0A710K0F
  • 感測距離:長距離型
  • 距離測量範圍:100 ~ 550cm
  • 輸出類型:類比電壓輸出
  • 消耗電流: Typ. 30mA
  • 電源電壓:4.5 ~ 5.5 V
  • 應用:投影機 (自動對焦)、機器人清潔器、自動照明開關等、人體檢測、遊樂設備(街機遊戲機機器人)

原廠技術文件 http://www.sharp.co.jp/products/device/doc/opto/gp2y0a710k_e.pdf

Arduino 範例碼

/*
 Sharp GP2Y0A710K0F infrared proximity sensor (#28999)
 Collects an average of five readings from the sensor and displays the
 resulting value about every half second.
 
 See the Sharp_GP2Y0A710KOF_Simple demonstration for additional usage notes,
 including connection diagram.
 
 This example code is for the Arduino Uno and direct compatible boards, using the
 Arduino 1.0 or later IDE software. It has not been tested, nor designed for, other 
 Arduino boards, including the Arduino Due.

*/

const int irSense = A0; // Connect sensor to analog pin A0
int distance = 0;

void setup() {
 Serial.begin(9600); // Use Serial Monitor window
}

void loop() {
 Serial.println(irRead(), DEC); // Call irRead function to read sensor
 // Print value in Serial Monitor
 delay(250); // Wait another 1/4 second for the next read
 // (Note: Because of delays built into the
 // irRead function the display of values will
 // be slower than in the SharpGP2Y0A21_Simple
 // sketch
}

// Take multiple readings, and average them out to reduce false readings
int irRead() {
 int averaging = 0; // Holds value to average readings

 // Get a sampling of 5 readings from sensor
 for (int i=0; i<5; i++) {
 distance = analogRead(irSense);
 averaging = averaging + distance;
 delay(55); // Wait 55 ms between each read
 // According to datasheet time between each read
 // is -38ms +/- 10ms. Waiting 55 ms assures each
 // read is from a different sample
 }
 distance = averaging / 5; // Average out readings
 return(distance); // Return value
}

 

GP2Y0A710K0F