- 詳細資訊
商品說明
SHARP GP2Y0A710K0F 是一種距離測量傳感器組件,由一個PSD (位置靈敏感測器)、IRED(紅外發光二極管) 和信號處理電路組成。採用三角測量法:檢測距離不易受到,各種物體反射率,對環境的溫度和持續操作時間的影響。輸出的電壓對應檢測距離。因此,這種感測器也可以用來作為接近感測器。
- SHARP GP2Y0A710K0F
- 感測距離:長距離型
- 距離測量範圍:100 ~ 550cm
- 輸出類型:類比電壓輸出
- 消耗電流: Typ. 30mA
- 電源電壓:4.5 ~ 5.5 V
應用領域:
投影機 (自動對焦)、機器人清潔器、自動照明開關等、人體檢測、遊樂設備(街機遊戲機機器人)
文件資料
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
}














相關商品
-
seeed Grove – Infrared Receiver 紅外接收模組 10公尺感應距離 支援 Arduino & 樹莓派遠端控制
0 滿分 5 分Grove – Infrared Receiver紅外線接收器用於接收紅外信訊號,也可用於遠端控制檢測。紅外線接收器上有一個IR探測器,用於獲得紅外發射器發出的紅外線。紅外探測器內部有一個解調器,尋找38 KHz的訊號。紅外線接收器可以在10公尺以內接收訊號。如果超過10公尺,接收器可能無法得到訊號。
NT$180NT$140 未稅 -
DFRobot 數位紅外接近開關感測器 (0-200cm 可調) – IP67 防水 / 一鍵設定距離
0 滿分 5 分專業級數位紅外接近開關感測器,支援 0-200cm 自定義感應距離。具備 IP67 防水性能、一鍵距離校準功能與高電位數位輸出。完美相容 Arduino 與 ESP32,廣泛應用於機器人避障、智慧家具及自動化安防系統。
NT$600NT$500 未稅 -
Seeed Grove – PIR Motion Sensor 人體移動感測器 (紅外線) – 6米偵測範圍,距離與時間皆可調
0 滿分 5 分GrovePIR 紅外線人體移動感測器,即插即用,輕鬆實現感應應用。 可偵測 6 米內的人體移動,並可調整感應距離與保持時間。適用於智慧燈光、安全監控或互動藝術。只要將其接到Grove – Base Shield上,並且下載程序,當有人走入它的探測範圍時,PIR運動探測感測就會在它的SIG腳上輸出一個HIGH信號。
NT$333NT$260 未稅 -
SparkFun ToF Range Finder Sensor – VL6180 測距儀 距離與環境光感測器模組
0 滿分 5 分這是 SparkFun 的「飛行時間」(ToF)測距儀,它是一款用於 VL6180 距離感測器的感測器板。與大多數依賴反射光強度或反射角度來確定距離的距離感測器不同,VL6180 使用精確的時鐘來測量光線從物體表面反射回來所需的時間。
NT$1,048NT$920 未稅 -
38KHz 紅外線接收模組 數位感測器模組 紅外線接收器 for Arduino 與樹莓派
0 滿分 5 分Arduino 專用模組,端口與感測擴充板相容,38KHz 紅外接收頭,可接受各種紅外遙控信號。
NT$57NT$40 未稅 -
38khz 紅外線發射模組 Digital 38khz Ir Transmitter Sensor
0 滿分 5 分Arduino 專用模組,端口與感測擴充板相容;帶有發射狀態指示燈,方便測試;提供範例程式測試。
NT$71NT$40 未稅 -
IR紅外線避障模組 (LM393)| 循跡感測器|黑白線識別與距離可調光電開關
0 滿分 5 分高靈敏度 IR 紅外線避障模組,搭載 LM393 比較器,支援 3.3V-5V 寬電壓。具備 2-30cm 可調感應距離,完美兼容 Arduino、樹莓派與各類單片機。適用於智能小車避障、黑白線循跡、流水線計數等專題製作。
NT$81NT$40 未稅 -
JSN-SR04 (相容 AJ-SR04M) 一體化防水超音波測距模組
0 滿分 5 分NT$200 – NT$300 未稅JSN-SR04 一體化防水超音波測距模組 採用工業方案設計,超低功耗20uA低功耗電流,高達8米遠距離測量範圍,業界最低20cm低盲區控制,3.0-5.5V工作電壓,高穩定靈敏性能。一體化封閉式防水帶線探頭,適用於潮濕,惡劣的各種測量場合,多種模式選擇適合不同的場合測試使用.
-
Seeed Grove – Infrared Emitter 紅外線發射模組
0 滿分 5 分用於通過紅外LED傳輸紅外信號,而在另一側有紅外接收器用於獲取信號。紅外LED就像任何其他LED一樣,它的波長940nm。我們不僅可以使用發射器來傳輸數據或命令,而且還可以使用Arduino模擬遙控控制您的家用電器。紅外發射器可以傳輸10米有效的信號。超過10米,接收器可能無法獲得信號。
NT$200NT$120 未稅

























