0

I have done a raspberry pi code transfer a data and receive in my file, but i need use to EEPROM that i have not any experience about this. if possible please help.

Thank you.

3
  • Welcome to the Raspberry Pi Stack Exchange. Hopefully, you have already read through some of the documentation, and taken the Tour. If you've not done that, please do so. I feel that your question is unclear, and this may prevent you from getting a good answer to your question. If English is an issue, you may find some help using the Google Translate app.
    – Seamus
    May 10, 2019 at 14:19
  • EEPROM might not be the best solution; use it only when you absolutely need to.
    – user96931
    May 10, 2019 at 16:56
  • 1
    @user96931 Yes I very much agree. I was about to say the following: "If the OP is going to use the real time clock module DS3231 which includes a "free" EEPROM inside the module, then using the free EEPROM is a better choice.
    – tlfong01
    May 11, 2019 at 2:53

1 Answer 1

1

Question

I have binary/text data in a text file.

How do I copy the data to an EEPROM?

Answer

I would recommend the 24C256 EEPROM module. I once played with a similar through hole chip 25LC256 but the wiring and soldering by hand is quite messy. For newbies, I would recommend the dirt cheap modules.

at24c256

You can google sample programs. See YouTube in references below. I once wrote one myself in Rpi python and found it tedious, but then learning what is going on inside the little chip is itself a joy.

References

AliExpress AT24C256 24C256 I2C Interface EEPROM Memory Module 8P Chip Power Supply Indicator Pull Up Resistor Direct Jumper Setting US$2.54/5Pcs

MicroShip I2C-Compatible (2-Wire) Serial EEPROM 256‑Kbit (32,768 x 8) Datasheet

Raspberry Pi I2C Python Initial Testing with I2C-Tools - 3,929 views

Raspberry Pi Read/Write data to EEPROM through I2C - 28,482 views

Update 2019may11hkt1109

FRAM Module

The OP's question is on EEPROM. However, if he is doing R&D, small memory size, money is no concern, I think he should consider FRAM.

AliExpress WaveShare I2C FM24CLXX FRAM module - US$12

Ferroelectric RAM - Wiki

Ferroelectric RAM (FeRAM, F-RAM or FRAM) is a random-access memory similar in construction to DRAM but using a ferroelectric layer instead of a dielectric layer to achieve non-volatility. FeRAM is one of a growing number of alternative non-volatile random-access memory technologies that offer the same functionality as flash memory.

FeRAM's advantages over Flash include: lower power usage, faster write performance and a much greater maximum read/write endurance (about 1010 to 1014 cycles). FeRAMs have data retention times of more than 10 years at +85 °C (up to many decades at lower temperatures). Market disadvantages of FeRAM are much lower storage densities than flash devices, storage capacity limitations and higher cost. Like DRAM, FeRAM read process is destructive, necessitating a write-after-read architecture.

6
  • Note that there are pin compatible, drop in FRAM alternatives that are both better and sometimes cheaper.
    – crasic
    May 10, 2019 at 21:37
  • 1
    @crasic Ah I very much agree with you. One problem is that I am a poor hobbyist who cannot afford new but more expensive things. The WaveShare FRAM module is many times more expensive than AT24xx EEPROM. I think I should point out in my answer that if OP is working in industrial or college R&D rather than newbie Micky Mouse projects, then he should definitely try FRAM first, otherwise his workplace's reputation would be damaged, and losing face of course, ... :)
    – tlfong01
    May 11, 2019 at 2:59
  • I use cypress 64Kb for EEPROM Replacement FM24CL64B-GTR It is $4 vs $0.40 for an EEPROM equivalent, but still not excessive in onesie-twosie situations. The access time improvement is almost 10000x (500ns vs 5ms) for a 10x difference in cost, that is quite some value
    – crasic
    May 11, 2019 at 3:44
  • 1
    Yes, I agree that for onsie-twosie situations, FRAM is the way to go. By the way, I am very surprised to learn that the performance is 1000x. I think it is very likely that FRAM cost will drop very fast, and in 10 or 20 years, EEPROM would disappear and become an item in computing history museum.
    – tlfong01
    May 13, 2019 at 12:43
  • One more zero 10000x (for write) ! And I agree completely. However, Microchip (which now bought atmel) general policy is to not obsolete parts, so the vanilla 24c or some rev of it will be around as long as there are customers I suppose.
    – crasic
    May 14, 2019 at 4:20

Not the answer you're looking for? Browse other questions tagged or ask your own question.