![]() On the configurable modules like the ones above, all jumpers including the write protection WP should be open. The I2C addresses of the modules are between 0x50 and 0x57. The considerably cheaper 24Cxxx need between 2.7V and 5V. These are the 24FCxxx type which xxx denoting the EEPROM size in bits. There are models with minimum voltages down to 1.7V. Connect the SDA pin of the Arduino (on an UNO this is A4) with the SDA pin of the module and the SCL pin (A5 on an UNO) as well. Most modules have the pinout printed on the board. This standalone library can be downloaded from my repo. The library is part of my Arduino BASIC interpreter ( ) but described here as a standalone solution for use with C/C++ from the Arduino IDE. In addition to this, there is a raw API for buffered direct EEPROM access.ĮEPROM write and read timing is exactly to the data sheet specification without any unnecessary delay() function in the code. Buffering makes the EEPROM reasonably fast and protects it against too many write cycles. EEPROM data is buffered in a small page buffer for read and write. It creates a very primitive file system on the EEPROM which a C-style API. Bytes, numbers or strings can be stored at specific storage location. ![]() Most of them address the EEPROM as a big storage array. There are many libraries for serial EEPROM on the market. They work on the I2C bus and only need two pins that they can share with other I2C devices. 4kB and 32kB modules are the most common ones. SD cards need the SPI bus and block pins for other peripherals.Ī low cost alternative are I2C EEPROM modules. Card quality varies and some don't work well on different microcontrollers. Typically buffers sizes of 512 bytes have to be allocated. The disadvantage of SD cards is the large memory footprint of the SD card filesystems. There are a lot of shield on the market for SD cards and a large number of tutorials how to use them. SD cards are a standard way of logging data on an Arduino. This is a brief tutorial on data storage on EEPROMs for Arduino data logger projects.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |