- 描述
- Size Guide
- 評價 (0)
描述
描述
Grove – 數位距離中斷器 感應範圍 0.5至5cm 基於 GP2Y0D805Z0F 紅外距離感應模組
Grove – 數位距離中斷器 感應範圍 0.5至5cm 基於 GP2Y0D805Z0F 紅外距離感應模組。 通常,此感測器的輸出為1(高),當物體進入感測器的測量範圍時,它將被觸發並輸出0(低)。同時,板載LED將亮起。 顧名思義,測量範圍為0.5cm至5cm。GP2Y0D805Z0F是一款距離測量感測器單元,由PD(光電二極體),IRED(紅外發光二極體)和信號處理電路的集成組合而成。 由於採用三角測量方法,物體的反射率,環境溫度和操作持續時間的變化不易受到距離檢測的影響。
產品特性
- 易用
- 集成指示燈LED
- 數位輸出
規格參數
Item | Value |
工作電壓 | 3.3v/5v |
觸發範圍 | 0.5cm – 5cm |
工作溫度 | -10℃ — 60℃ |
應用
- 無觸摸開關(衛生設備,照明控制等)
- 掃地機器人
範例
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
/* * * Copyright (c) 2018 Seeed Technology Co., Ltd. * Website : www.seeed.cc * Author : downey * Create Time: May 2018 * Change Log : * * The MIT License (MIT) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ #define SENSOR 2 void setup() { Serial.begin(115200); pinMode(SENSOR,INPUT); } void loop() { short val=0; val=digitalRead(SENSOR); Serial.print("val="); Serial.println((int)val); if(0==val) { Serial.println("Sensor is triggered!!"); } delay(1000); } |
文件下載與範例
[Wiki] Grove – Digital Distance Interrupter 0.5 to 5cm
Grove – Digital Distance Interrupter 0.5 to 5cm(GP2Y0D805Z0F)
Grove – Digital Distance Interrupter 0.5 to 5cm is an infrared proximity sensor module based on GP2Y0D805Z0F. Normaly the output of this sensor is 1(High), when the object enters the measurement range of the sensor, it will be triggered and output a 0(LOW).At the same time the on-board LED will light up. As the name suggests, the measurement range is from 0.5cm to 5cm.
There are two types of Grove – Digital Distance Interrupter 0.5 to 5cm: Grove – Digital Distance Interrupter 0.5 to 5cm(GP2Y0D805Z0F) and Grove – Digital Distance Interrupter 0.5 to 5cm(GP2Y0D805Z0F)(P). For the version without letter P, the lens and the grove interface are at the same side; for the version with letter P, the lens and the grove interface are at the different sides. If you want the lens and the grove interface are at the different side, please click the Grove – Digital Distance Interrupter 0.5 to 5cm(GP2Y0D805Z0F)(P)
GP2Y0D805Z0F is a distance measuring sensor unit, composed of an integrated combination of PD(photo diode) , IRED (infrared emitting diode) and signal processing circuit. The variety of the reflectivity of the object, the environmental temperature and the operating duration are not influenced easily to the distance detection because of adopting the triangulation method.
商品評價
目前沒有評價。