- 詳細資訊
商品說明
產品特點與規格
- 板載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);
}
相關商品
-
DS3231 AT24C32 高精度 時鐘模組 for Arduino IIC 儲存模組 附贈CR2032鋰電池
0 滿分 5 分NT$100 未稅DS3231是低成本、高精度I2C即時時鐘(RTC),具有集成的溫補晶振(TCXO)和晶體。該器件包含電池輸入端,斷開主電源時仍可保持精確的計時。集成晶振提高了器件的長期精確度,並減少了生產線的元件數量。DS3231提供商用級和工業級溫度範圍,採用16引腳300mil的SO封裝。
-
21鍵 38KHz 紅外線遙控器 含 接收 VS1838 接收器 支援 Arduino與樹莓派 附CR2025鈕扣電池
0 滿分 5 分NT$80 未稅紅外線遙控器採用標準38KHz的頻率,適合市面上的各種紅外線接收模組,使用者可以搭配此套件,來做紅外線的應用.。用途:適用於控制帶紅外接收器的產品,使用電源:3v鈕扣電池, 21個超薄按鍵
-
炫光型電容式觸摸感測器模組
0 滿分 5 分炫光型電容式觸摸感測器模組
在便攜式媒體播放器和移動手持終端等大容量、高可視性產品的應用中,觸摸按鍵已被廣泛採用。由於其具有方便易用,時尚和低成本的優勢,越來越多的電子產品開始從傳統機械按鍵轉向觸摸式按鍵。
-
Grove – Encoder 旋轉編碼器 增量式360度旋轉編碼器 Seeed Studio
0 滿分 5 分Grove – Encoder 旋轉編碼器 ,這個模組是增量式旋轉編碼器。它編碼由軸和輸出由電子脈衝信號的旋轉信號。 當你需要一個旋鈕解碼器添加到您的項目,例如音量旋鈕,揚聲器,選擇面板或數字輸入,這將是你第一選擇。NT$200NT$180 未稅 -
PS2 搖桿 無線遙控手把 適用於 Arduino 舵機控制與機械手臂 / 附杜邦線
0 滿分 5 分PS2搖桿手柄為黑色PS2 2.4G雙振動手柄,品質好,手感好。外殼採用1:1原裝外形,全新3D 大小雙馬達振動,配置2.4G接收器,無線接收距離8m,功能鍵select、start、mode,小鍵方方XX。
NT$371NT$300 未稅 -
Grove – Button 按鈕模組 瞬時開關 / 數位輸入 / 20萬次壽命 支援Arduino&樹莓派 Seeed
0 滿分 5 分NT$80 未稅Grove – Button 是一款專為微控制器設計的瞬時 (Momentary) 按鈕模組。具備獨立的觸摸開關,按下時輸出高電位 (High),釋放後自動回彈並輸出低電位 (Low)。內建標準 Grove 接口,無需焊接或使用麵包板即可快速連接。支援 3.3V/5V 寬電壓,並擁有高達 20 萬次的電氣壽命,是學習數位輸入 (Digital Input) 與製作遊戲控制器、互動裝置的理想元件。
-
JoyStick PS2 雙軸遊戲搖桿模組 (XY 類比+Z 軸按鍵) 支援 Arduino 伺服馬達雲台與遙控比例控制專用
0 滿分 5 分Arduino 雙軸按鍵搖桿模組,提供 XY 軸類比輸出和按鍵數位輸出,可用於控制兩自由度舵機或遙控比例控制。它採用金屬搖桿,具備標準電子積木與 2.54mm 插針接口,能與 Arduino 平台完美相容,適用於機器人或遊戲控制器。
NT$62NT$40 未稅 -
10K 線性滑動電位計模組 (滑桿式) | 雙路類比訊號輸出 | 支援 Arduino 互動專案開發
0 滿分 5 分線性滑動電位器模組最大阻值為10K歐,當你把控制桿從一端滑到另外一端,電位器兩端的電壓值在0到輸入的VCC之間變化 。結合Arduino 感測器擴展板,可實現與位置變化相關的互動作品。雙聯直滑電位器,具有2個輸出埠,資料線隨意插一邊使用效果都是一樣的,相當於做了一個備用。
NT$114NT$80 未稅 -
MAX485 模組 TTL TO RS-485 / RS422 5V Arduino 可用
0 滿分 5 分MAX485 模組可將 TTL 訊號轉換為 RS-485,支援 10M 傳輸速率,內建短路保護。搭配 Arduino 和 PLC,能輕鬆實現工業通訊,是可靠的通訊轉換器。
NT$40NT$20 未稅 -
JC4827W543 ESP32 4.3 吋觸控螢幕開發板 | 支援 WiFi/藍牙與遠端 IoT 應用
0 滿分 5 分JC4827W543 是一款基於 ESP32 的 4.3 吋整合型 IoT 開發板,搭載雙核心 240MHz 處理器,支援 WiFi 與藍牙。具備強大的遠端控制與資料擷取能力,並支援視覺化 APP 拖放編程,讓您輕鬆自定義美觀的人機介面(UI),適用於物聯網專案開發與 HMI 應用
NT$857NT$800 未稅























