welcome iCShop!     服務時間:週一 ~ 週五 9:00~12:00 / 13:00~17:00
減價71
Grove-Digital Light Sensor 數位 光照度感測器
Grove-Digital Light Sensor 數位 光照度感測器
Grove-Digital Light Sensor 數位 光照度感測器
Grove-Digital Light Sensor 數位 光照度感測器
Grove-Digital Light Sensor 數位 光照度感測器
Grove-Digital Light Sensor 數位 光照度感測器

Grove-Digital Light Sensor 數位 光照度感測器

NT$ 370299


產品貨號

368030800111

品牌

seeed

原廠貨號

101020030

數量

  庫存量:13

運送方式

7-11取貨付款 郵寄(單一運費) 宅配 宅配貨到付款 外島郵寄 順豐快遞 順豐快遞貨到付款

商品簡介

該模組基於 I2C 光數字轉換器 TSL2561,可將光強度轉換為數字信號。 不同於傳統的模擬光感測器,作為 Grove - 光感測器,該數字模塊由於其雙光敏二極管具有可選的光譜範圍:紅外和全光譜。
您可以在三種檢測模式之間切換以獲取讀數。 它們是紅外模式、全光譜和人類可見模式。 在人類可見模式下運行時,該感測器將為您提供接近您眼睛感覺的讀數。

商品特色:

  • 可選擇的檢測模式
  • 400 kHz I2C 快速模式下的高分辨率 16 位數字輸出
  • 寬動態範圍:0.1 - 40,000 LUX
  • 工作溫度範圍:-40°C 至 85°C
  • 具有用戶定義的上限和下限閾值設置的可編程中斷功能

商品應用:

  • 模塊晶片採用PCF8951
  • 環境光感應
  • 顯示面板背光控制
  • 鍵盤照明控制

下載文件:

如何查詢I2C位址

操作流程

STEP 1. 將欲查詢的模組連接至Arduino UNO(附圖為腳位參考,實際請比對商品標示接線)

STEP 2. 開啟Arduino IDE並新增檔案

STEP 3. 貼入教學下方的範例文件,並上傳到Arduino UNO,即會開始掃描I2C位址

STEP 4. 開啟序列埠監控視窗,即可取得I2C位址

I2C掃描範例程式

/ ---------------------------------------------------------------- /
// Arduino I2C Scanner
// Re-writed by Arbi Abdul Jabbaar
// Using Arduino IDE 1.8.7
// Using GY-87 module for the target
// Tested on 10 September 2019
// This sketch tests the standard 7-bit addresses
// Devices with higher bit address might not be seen properly.
/ ---------------------------------------------------------------- /
#include //include Wire.h library
void setup()
{
Wire.begin(); // Wire communication begin
Serial.begin(9600); // The baudrate of Serial monitor is set in 9600
while (!Serial); // Waiting for Serial Monitor
Serial.println("\nI2C Scanner");
}
void loop()
{
byte error, address; //variable for error and I2C address
int nDevices;
Serial.println("Scanning...");
nDevices = 0;
for (address = 1; address < 127; address++ )
{
// The i2c_scanner uses the return value of
// the Write.endTransmisstion to see if
// a device did acknowledge to the address.
Wire.beginTransmission(address);
error = Wire.endTransmission();
if (error == 0)
{
Serial.print("I2C device found at address 0x");
if (address < 16)
Serial.print("0");
Serial.print(address, HEX);
Serial.println(" !");
nDevices++;
}
else if (error == 4)
{
Serial.print("Unknown error at address 0x");
if (address < 16)
Serial.print("0");
Serial.println(address, HEX);
}
}
if (nDevices == 0)
Serial.println("No I2C devices found\n");
else
Serial.println("done\n");
delay(5000); // wait 5 seconds for the next I2C scan
}
出貨清單
  • Grove 數位光感測器(I2C) x 1