- 詳細資訊
商品說明
產品特點與規格
- 板載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);
}
相關商品
-
RS232 轉TTL模組 2代串口模組 帶收發指示燈
0 滿分 5 分全新升級RS232串口轉TTL模組2代,晶片更穩定,3V , 5V 兼用,出廠100%檢測!可以用於燒寫各類單片機:如STM32、NXP、STC、瑞薩等。電臺改裝、手機刷機、XBOX360刷機、GPS、汽車檢測,DVD刷機,硬碟維修,機頂盒升級。
NT$71NT$40 未稅 -
Micro SD卡讀寫模組 SPI介面,迷你TF卡讀寫 MicroSD Card Adapter 相容Arduino
0 滿分 5 分NT$40 未稅MicroSD Card Adapter是Micro SD卡讀寫模組,通過檔案系統及SPI介面驅動程式,單片機系統即可完成MicroSD卡內的檔進行讀寫。Arduino用戶可直接使用Arduino IDE自帶的SD卡程式庫即可完成卡的初始化和讀寫。
-
RFID RC522 鑰匙扣卡 13.56MHz 相容 Philip Mifare S50 非接觸式 (10個一組)
0 滿分 5 分由ABS外殼封裝芯片線圈並填充環氧樹脂,通過超聲波焊接組合的具有各種造型的異形卡。應用範圍:水錶預付費,校園一卡通、公交儲值卡、高速公路收費、停車場、小區管理
- IC鑰匙扣卡頻率: 13.56MHZ
- IC鑰匙扣卡規格: 28*35.3*4MM IC鑰匙
NT$129NT$86 未稅 -
微動開關 TACK-SW 4P 6x6x5mm(H) 10個一包
0 滿分 5 分NT$40 未稅微動開關 TACK-SW 10P 一包
尺寸:6mm x 6mm x 5.0mm -
4X4 微動開關 矩陣鍵盤模組 16 外擴鍵盤模組
0 滿分 5 分16鍵觸覺鍵盤矩陣,這是一個4×4矩陣的觸覺按鈕,牢固地安裝在PCB上,帶有一個8針單排0.1英寸間距接頭。開關清晰編號,帶有白色絲網印刷。每個開關在按下時都能提供令人滿意的觸覺反饋。0.1“單排公頭是麵包板友好的.
NT$71NT$40 未稅 -
Grove-Magnetic Switch 磁力開關模組 seeed
0 滿分 5 分Grove Magnetic Switch是一個磁力開關模組,它是基於密封的干簧管開關CT10.CT10是單刀,單擲(SPST)開關,有常開的釕觸點。CT10是一種有觸點的無源電子開關元件,具有結構簡單,體積小便於控制等優點,其外殼一般是一根密封的玻璃管,管中裝有兩個鐵質的彈性簧片電板,還灌有一種叫金屬銠的惰性氣體。
NT$114NT$100 未稅 -
10K 線性滑動電位計模組 (滑桿式) | 雙路類比訊號輸出 | 支援 Arduino 互動專案開發
0 滿分 5 分線性滑動電位器模組最大阻值為10K歐,當你把控制桿從一端滑到另外一端,電位器兩端的電壓值在0到輸入的VCC之間變化 。結合Arduino 感測器擴展板,可實現與位置變化相關的互動作品。雙聯直滑電位器,具有2個輸出埠,資料線隨意插一邊使用效果都是一樣的,相當於做了一個備用。
NT$114NT$80 未稅 -
DS3231 AT24C32 高精度 時鐘模組 for Arduino IIC 儲存模組 附贈CR2032鋰電池
0 滿分 5 分NT$100 未稅DS3231是低成本、高精度I2C即時時鐘(RTC),具有集成的溫補晶振(TCXO)和晶體。該器件包含電池輸入端,斷開主電源時仍可保持精確的計時。集成晶振提高了器件的長期精確度,並減少了生產線的元件數量。DS3231提供商用級和工業級溫度範圍,採用16引腳300mil的SO封裝。
-
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 未稅 -
無源蜂鳴器 驅動模組 低電平觸發 蜂鳴器控制板
0 滿分 5 分NT$40 未稅無源蜂鳴器模組可透過 3.3V-5V 寬電壓驅動,需要 2K-5KHz 方波信號才能發聲。其聲音頻率可自由控制,可以在 Arduino、單晶片 等專案中輕鬆實現**“多來米”**等樂音或各式警示音效。






















