- 詳細資訊
商品說明
產品特點與規格
- 板載8P晶片座,安裝AT24C256晶片;
- 排針供電,板載電源指示燈;
- 板載I2C通訊所需的上拉電阻;
- 所有管腳均引出並標注,地址輸入和寫保護管腳直接可以跳線設置;
- PCB板子尺寸:36.5(mm)x12(mm)
- 容量:256K I2C接口
發貨清單
AT24C256 存儲模組 x 1塊
原廠技術文件
http://playground.arduino.cc/Code/I2CEEPROM
Arduino 範例
/*
* Use the I2C bus with EEPROM 24LC64
* Sketch: eeprom.pde
*
* Author: hkhijhe
* Date: 01/10/2010
*
*
*/
#include <Wire.h> //I2C library
void i2c_eeprom_write_byte( int deviceaddress, unsigned int eeaddress, byte data ) {
int rdata = data;
Wire.beginTransmission(deviceaddress);
Wire.send((int)(eeaddress >> 8)); // MSB
Wire.send((int)(eeaddress & 0xFF)); // LSB
Wire.send(rdata);
Wire.endTransmission();
}
// WARNING: address is a page address, 6-bit end will wrap around
// also, data can be maximum of about 30 bytes, because the Wire library has a buffer of 32 bytes
void i2c_eeprom_write_page( int deviceaddress, unsigned int eeaddresspage, byte* data, byte length ) {
Wire.beginTransmission(deviceaddress);
Wire.send((int)(eeaddresspage >> 8)); // MSB
Wire.send((int)(eeaddresspage & 0xFF)); // LSB
byte c;
for ( c = 0; c < length; c++)
Wire.send(data[c]);
Wire.endTransmission();
}
byte i2c_eeprom_read_byte( int deviceaddress, unsigned int eeaddress ) {
byte rdata = 0xFF;
Wire.beginTransmission(deviceaddress);
Wire.send((int)(eeaddress >> 8)); // MSB
Wire.send((int)(eeaddress & 0xFF)); // LSB
Wire.endTransmission();
Wire.requestFrom(deviceaddress,1);
if (Wire.available()) rdata = Wire.receive();
return rdata;
}
// maybe let's not read more than 30 or 32 bytes at a time!
void i2c_eeprom_read_buffer( int deviceaddress, unsigned int eeaddress, byte *buffer, int length ) {
Wire.beginTransmission(deviceaddress);
Wire.send((int)(eeaddress >> 8)); // MSB
Wire.send((int)(eeaddress & 0xFF)); // LSB
Wire.endTransmission();
Wire.requestFrom(deviceaddress,length);
int c = 0;
for ( c = 0; c < length; c++ )
if (Wire.available()) buffer[c] = Wire.receive();
}
void setup()
{
char somedata[] = "this is data from the eeprom"; // data to write
Wire.begin(); // initialise the connection
Serial.begin(9600);
i2c_eeprom_write_page(0x50, 0, (byte *)somedata, sizeof(somedata)); // write to EEPROM
delay(10); //add a small delay
Serial.println("Memory written");
}
void loop()
{
int addr=0; //first address
byte b = i2c_eeprom_read_byte(0x50, 0); // access the first address from the memory
while (b!=0)
{
Serial.print((char)b); //print content to serial port
addr++; //increase address
b = i2c_eeprom_read_byte(0x50, addr); //access an address from the memory
}
Serial.println(" ");
delay(2000);
}
相關商品
-
ESP32 2.8吋電阻式觸控螢幕開發板 (附觸控筆) | 支援 Arduino, Scratch 3.0, Mixly | Wi-Fi + 藍牙
0 滿分 5 分搭載 ESP32 雙核心主控晶片,整合 2.8 吋電阻式觸控螢幕(隨附專用觸控筆與收納盒)。支援 Wi-Fi、藍牙,並相容 Arduino IDE、Scratch 3.0 與 Mixly 開發環境。板載 Type-C、TF卡槽與豐富擴充接口,適合物聯網實驗、數據採集與 APP 控制應用。
NT$800NT$660 未稅 -
M5Stack AtomS3U ESP32-S3 開發板|USB Type-A|Wi-Fi|PDM 麥克風|紅外線|RGB LED
0 滿分 5 分M5Stack AtomS3U ESP32-S3 開發板,採用雙核心 Xtensa LX7 240MHz,支援 Wi-Fi、USB OTG,內建 PDM 麥克風、紅外線發射器與 RGB LED,提供 Grove 與 GPIO 擴充介面,適合物聯網、語音辨識與 I/O 控制。
NT$800NT$540 未稅 -
21鍵 38KHz 紅外線遙控器 含 接收 VS1838 接收器 支援 Arduino與樹莓派 附CR2025鈕扣電池
0 滿分 5 分NT$80 未稅紅外線遙控器採用標準38KHz的頻率,適合市面上的各種紅外線接收模組,使用者可以搭配此套件,來做紅外線的應用.。用途:適用於控制帶紅外接收器的產品,使用電源:3v鈕扣電池, 21個超薄按鍵
-
M5Stack StickS3 ESP32-S3 開發套件 (內建螢幕/音訊/電池/六軸IMU)
0 滿分 5 分M5Stack StickS3 搭載 ESP32-S3-PICO 晶片,內建 8MB Flash 與 PSRAM、1.14 吋液晶螢幕、六軸 IMU、麥克風及揚聲器。支援 Wi-Fi 無線通訊、語音辨識與紅外線遙控,提供 Arduino、UIFlow2 多平台開發,適用於智慧家庭與物聯網專案。
NT$1,314NT$1,060 未稅 -
12位 WS2812 5050 RGB LED 內置全彩驅動 環狀彩燈開發板
0 滿分 5 分WS2812B RGB 燈環 內置智慧驅動晶片,僅需一條信號線即可控制 1600萬色。具備智能反接保護與信號整形電路,確保顯示穩定。可在Arduino、單晶片專案中,實現炫彩光效。
NT$120NT$60 未稅 -
TTP223B 電容式觸摸感測器模組 – 1路觸摸開關 (點動型), 支援 Arduino/ESP32
0 滿分 5 分NT$40 未稅TTP223B 電容式觸摸感測器模組,採點動型輸出(輕觸即發),感應靈敏且反應快速。支援 2V-5.5V 寬電壓,具備低功耗模式。可穿透塑膠、玻璃等非金屬材質,適合製作隱藏式按鍵或檯燈控制。內建電源指示燈與 M2 定位孔,是 Arduino 創客與物聯網開發的理想人機介面零件。
-
RS232 轉TTL模組 2代串口模組 帶收發指示燈
0 滿分 5 分全新升級RS232串口轉TTL模組2代,晶片更穩定,3V , 5V 兼用,出廠100%檢測!可以用於燒寫各類單片機:如STM32、STC、瑞薩等。電臺改裝、手機刷機、XBOX360刷機、GPS、汽車檢測,DVD刷機,硬碟維修,機頂盒升級。
NT$80NT$40 未稅 -
360度 旋轉編碼器模組 電子旋轉電位器 旋鈕模組 支援Arduino
0 滿分 5 分360度 旋轉編碼器 可通過旋轉可以計數正方向和反方向轉動過程中輸出脈衝的次數,旋轉計數不像電位計,這種轉動計數是沒有限制的。配合旋轉編碼器上的按鍵,可以復位到初始狀態,即從0開始計數。
NT$62NT$40 未稅 -
無線遙控手把 相容PS2搖桿 適用於 Arduino 舵機控制與機械手臂 / 附杜邦線
0 滿分 5 分搖桿手柄為黑色PS2 2.4G雙振動手柄,品質好,手感好。外殼採用1:1原裝外形,全新3D 大小雙馬達振動,配置2.4G接收器,無線接收距離8m,功能鍵select、start、mode,小鍵方方XX。
NT$371NT$300 未稅 -
Seeed Grove – Button 按鈕模組 瞬時開關 / 數位輸入 / 20萬次壽命 支援Arduino&樹莓派 Seeed
0 滿分 5 分NT$80 未稅Grove – Button 是一款專為微控制器設計的瞬時 (Momentary) 按鈕模組。具備獨立的觸摸開關,按下時輸出高電位 (High),釋放後自動回彈並輸出低電位 (Low)。內建標準 Grove 接口,無需焊接或使用麵包板即可快速連接。支援 3.3V/5V 寬電壓,並擁有高達 20 萬次的電氣壽命,是學習數位輸入 (Digital Input) 與製作遊戲控制器、互動裝置的理想元件。





















