-18%
AT24C256 EEPROM 儲存模組/記憶體模組 Arduino 擴充儲存記憶體專用
NT$81 NT$67 未稅
AT24C256 EEPROM 儲存模組/記憶體模組 Arduino 擴充儲存記憶體專用
容量:256KB I2C接口
- 板載8P晶片座,安裝AT24C256晶片;
- 排針供電,板載電源指示燈;
- 板載I2C通訊所需的上拉電阻;
- 所有管腳均引出並標注,地址輸入和寫保護管腳直接可以跳線設置;
- PCB板子尺寸:36.5(mm)x12(mm)
尚有庫存
- 商品說明
商品說明
AT24C256 EEPROM 儲存模組/記憶體模組 Arduino 擴充儲存記憶體專用
容量:256K I2C接口
- 板載8P晶片座,安裝AT24C256晶片;
- 排針供電,板載電源指示燈;
- 板載I2C通訊所需的上拉電阻;
- 所有管腳均引出並標注,地址輸入和寫保護管腳直接可以跳線設置;
- PCB板子尺寸:36.5(mm)x12(mm)
發貨清單: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); }
相關商品
-
加入購物車Quick View
Grove – Button按鈕控制器 支援Arduino與樹莓派 seeed原廠
0 滿分 5 分加入購物車Quick View -
TXS0108E 8路電平轉換模組 高速全雙工 8位元雙向電壓轉換器
0 滿分 5 分NT$114NT$86 未稅加入購物車Quick View -
4X4 微動開關 矩陣鍵盤模組 16 外擴鍵盤模組
0 滿分 5 分4X4微動開關矩陣鍵盤模組 16 外擴鍵盤模組
16-Button Tactile Keypad Matrix
NT$71NT$33 未稅加入購物車Quick View -
有源蜂鳴器 驅動模組 低電平觸發 蜂鳴器控制板
0 滿分 5 分有源蜂鳴器驅動模組
- 模組採用S8550三極管驅動
- 工作電壓3.3V-5V
- 設有固定螺栓孔,方便安裝
- 小板PCB尺寸:3.2cm * 1.3cm
- 當I/O口輸入低電平時,蜂鳴器發聲
NT$48NT$29 未稅加入購物車Quick View -
加入購物車Quick View
21鍵 38KHz 紅外線遙控器 含 接收(VS1838) 接收器 支援 Arduino與樹莓派 附CR2025鈕扣電池
0 滿分 5 分21鍵 38KHz 紅外線遙控器
紅外線遙控器採用標準38KHz的頻率,適合市面上的各種紅外線接收模組,使用者可以搭配此套件,來做紅外線的應用.。用途:適用於控制帶紅外接收器的產品,使用電源:3v鈕扣電池, 21個超薄按鍵
加入購物車Quick View -
RS232 轉TTL模組 2代串口模組 帶收發指示燈
0 滿分 5 分RS232 轉TTL模組2代 串口模組
全新升級RS232串口轉TTL模組2代,晶片更穩定,3V , 5V 兼用,出廠100%檢測!
NT$71NT$38 未稅加入購物車Quick View -
無源蜂鳴器 驅動模組 低電平觸發 蜂鳴器控制板
0 滿分 5 分無源蜂鳴器模組
- 無源內部不帶震盪源,所以如果用直流信號無法令其鳴叫。必須用2K~5K的方波去驅動它
- 聲音頻率可控,可以做出“多來米發索拉西”的效果。
NT$38NT$20 未稅加入購物車Quick View -
Micro SD卡讀寫模組 SPI介面,迷你TF卡讀寫 MicroSD Card Adapter 相容Arduino
0 滿分 5 分MicroSD Card Adapter是Micro SD卡讀寫模組,通過檔案系統及SPI介面驅動程式,單片機系統即可完成MicroSD卡內
的檔進行讀寫。Arduino用戶可直接使用Arduino IDE自帶的SD卡程式庫即可完成卡的初始化和讀寫,本模組特點如下:- 支持Micro SD卡、Micro SDHC卡(高速卡)
- 板載電平轉換電路,即介面電平可為5V或3.3V
- 供電電源為4.5V~5.5V,板載3.3V穩壓電路
- 通信介面為標準SPI介面
- 4個M2螺絲定位孔,便於安裝
NT$48NT$38 未稅加入購物車Quick View -
PL2303HX USB 轉 TTL 序列傳輸線
0 滿分 5 分注意事項: 目前PL2303HX 僅支援Windows XP/Vista/7 和Linux 使用,如果是Windows 8 和Mac 作業系統,需使用 PL2303TA 才能正常使用。
對於所有使用USB轉TTL 下載線的機子,無論是3端的,或是4端5端6端的,都是只需要就3條線的,就是下載線的發送端接機子的接收端(TXD–RXD),下載線的接收端接機子發送端的(RXD–TXD),下載線的地接機子的地(GND–GND)就可以。
NT$76NT$40 未稅加入購物車Quick View -
微動開關 TACK-SW 4P 6x6x5mm(H) 10個一包
0 滿分 5 分微動開關 TACK-SW 10P 一包
尺寸:6mm x 6mm x 5.0mmNT$29NT$24 未稅加入購物車Quick View