- 詳細資訊
商品說明
產品特點與規格
- 板載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);
}
相關商品
-
JoyStick PS2 雙軸遊戲搖桿模組 (XY 類比+Z 軸按鍵) 支援 Arduino 伺服馬達雲台與遙控比例控制專用
0 滿分 5 分Arduino 雙軸按鍵搖桿模組,提供 XY 軸類比輸出和按鍵數位輸出,可用於控制兩自由度舵機或遙控比例控制。它採用金屬搖桿,具備標準電子積木與 2.54mm 插針接口,能與 Arduino 平台完美相容,適用於機器人或遊戲控制器。
NT$62NT$40 未稅 -
微型 RTC DS1307 時間模組 I2C 介面 附贈 CR2032 鋰電池
0 滿分 5 分NT$76 未稅DS1307 I2C 實時時鐘芯片(RTC) , 24C32 32K I2C EEPROM存儲器並帶充電電路, 可自行換用 LIR2032 可充電鋰電池。設計小巧,27mm*28mm*8.4mm 引出DS1307的時鐘引腳,為單片機提供時鐘信號。可以級聯其他I2C設備。
-
PS2 搖桿 無線遙控手把 適用於 Arduino 舵機控制與機械手臂 / 附杜邦線
0 滿分 5 分PS2搖桿手柄為黑色PS2 2.4G雙振動手柄,品質好,手感好。外殼採用1:1原裝外形,全新3D 大小雙馬達振動,配置2.4G接收器,無線接收距離8m,功能鍵select、start、mode,小鍵方方XX。
NT$371NT$300 未稅 -
PL2303HX USB 轉 TTL 序列傳輸線 支援 Raspberry Pi 除錯與 Win7/Linux
0 滿分 5 分絕佳的除錯工具,適合多種開發板使用,Raspberry Pi Model B/Model A+/Model B+/Pi 2/ Pi 3 都可以使用,適合 Windows XP/Vista/7、Linux 使用,注意事項: 目前PL2303HX 僅支援Windows XP/Vista/7 和Linux 使用,如果是Windows 8 以上作業系統,需使用 PL2303TA 才能正常使用。
NT$76NT$40 未稅 -
薄型 Mifare S50 13.56MHz IC感應白卡 (5片裝) 支援門禁考勤與 RFID 開發
0 滿分 5 分薄型 RFID Mifare IC 白卡,相容飛利浦 S50,工作頻率 13.56MHz,具備 8Kbit 儲存容量,讀寫距離 3~5cm。卡片耐用,可擦寫超過 10 萬次,適用於門禁、考勤、校園一卡通、停車場管理等多種應用。
NT$67NT$40 未稅 -
JC4827W543 ESP32 4.3 吋觸控螢幕開發板 | 支援 WiFi/藍牙與遠端 IoT 應用
0 滿分 5 分JC4827W543 是一款基於 ESP32 的 4.3 吋整合型 IoT 開發板,搭載雙核心 240MHz 處理器,支援 WiFi 與藍牙。具備強大的遠端控制與資料擷取能力,並支援視覺化 APP 拖放編程,讓您輕鬆自定義美觀的人機介面(UI),適用於物聯網專案開發與 HMI 應用
NT$857NT$800 未稅 -
TTP223B 電容式觸摸感測器模組 – 1路觸摸開關 (點動型), 支援 Arduino/ESP32
0 滿分 5 分NT$40 未稅TTP223B 電容式觸摸感測器模組,採點動型輸出(輕觸即發),感應靈敏且反應快速。支援 2V-5.5V 寬電壓,具備低功耗模式。可穿透塑膠、玻璃等非金屬材質,適合製作隱藏式按鍵或檯燈控制。內建電源指示燈與 M2 定位孔,是 Arduino 創客與物聯網開發的理想人機介面零件。
-
炫光型電容式觸摸感測器模組
0 滿分 5 分炫光型電容式觸摸感測器模組
在便攜式媒體播放器和移動手持終端等大容量、高可視性產品的應用中,觸摸按鍵已被廣泛採用。由於其具有方便易用,時尚和低成本的優勢,越來越多的電子產品開始從傳統機械按鍵轉向觸摸式按鍵。
-
4×4 16鍵矩陣薄膜鍵盤 支援Arduino
0 滿分 5 分矩陣薄膜鍵盤帶有8P杜邦頭,間距2.54mm。可插上排針,然後連接到Arduino,使用非常簡單。鍵盤背面白色貼紙可揭去,能牢固粘貼於機箱表面。你可以用它輸入數字參數等信息,特別是對於LCD模組,GSM/GPRS模塊等需要參數輸入的模塊。薄膜防水耐用,可經受幾萬次按壓。
NT$60NT$40 未稅 -
RFID RC522 鑰匙扣卡 13.56MHz 相容 Philip Mifare S50 非接觸式 (10個一組)
0 滿分 5 分由ABS外殼封裝芯片線圈並填充環氧樹脂,通過超聲波焊接組合的具有各種造型的異形卡。應用範圍:水錶預付費,校園一卡通、公交儲值卡、高速公路收費、停車場、小區管理
- IC鑰匙扣卡頻率: 13.56MHZ
- IC鑰匙扣卡規格: 28*35.3*4MM IC鑰匙
NT$129NT$86 未稅






















