welcome iCShop!     服務時間:週一 ~ 週五 9:00~12:00 / 13:00~17:00
減價81
1.2
1.2
1.2
1.2
1.2
1.2
1.2
1.2

1.2" 4-Digit 7-Segment Display w/I2C Backpack-Red【限量】

NT$ 790709


產品貨號

368031001248

品牌

原廠貨號

1270

數量

  庫存量:2

運送方式

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

商品簡介

有什麼比單個 LED 更好的? 很多LED! 製作數字顯示的有趣方法之一是使用 4 位 7 段顯示器。 像這樣的 LED 矩陣是“多路復用的”——因此要控制所有七段 LED,您需要 14 個引腳。 這是很多引腳,並且有像 MAX7219 這樣的驅動器晶片可以為您控制矩陣,但是需要設置很多佈線,它們佔用大量空間。 如果您可以在沒有大量佈線的情況下控制矩陣,那不是很棒嗎? 這就是這些可愛的 LED 矩陣背包的用武之地。我們有用於各種 8x8 和 7 段顯示器。 背包使用驅動晶片為您完成所有繁重的工作:它們有一個內置時鐘,因此可以多路顯示。 它們使用恆流驅動器實現超亮、一致的色彩(以上圖像是在最暗的設置下拍攝的,以避免相機過載!),1/16 級顯示調光,所有這些都通過一個簡單的 I2C 接口。 背包帶有地址選擇跳線,因此您可以在單個 I2C 總線上連接多達八個 7 段(或組合,例如四個迷你 8x8 和四個 7 段等)。

The product kit comes with:

當然,在經典的 Adafruit 時尚中,我們也有詳細的教程向您展示如何焊接、接線和控制顯示器。 我們甚至編寫了非常好的程式庫,因此您可以在半小時內開始運行,在 Arduino 或 Raspberry Pi 的 7 段上顯示數字。

程式庫

商品規格
  • 寬:50 毫米
  • 長:120 毫米
  • 高:13 毫米
  • 該板/芯片使用 0x70-0x77 之間的 I2C 7 位地址,可通過跳線選擇。
下載資料

Datasheet

如何查詢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
}
出貨清單
  • 1.2" 4-Digit 7-Segment Display w/I2C Backpack-Red x 1