TUTORIAL: How to Wire up & Code an EEPROM with Arduino - Module (Part 2 - Wire Up & Coding)

preview_player
Показать описание
How to wire up and code an EEPROM with Arudino.

Part 1: Theory, and about bits and bytes.
Part 2: Wire up, Coding and testing.
Рекомендации по теме
Комментарии
Автор

Wow! Looks like I have found another friend to spend time learning from! Thanks for your excellent work telling me a bit about a chip I have had in my Altoids box now for well over a year. You see, it came in a bulk parts box from Electronic Goldmine, they sell big lots of this sort of thing, you would be surprised what all comes. The chip I found in my box is nearly the same, but a bit larger, availing me of 256K and made by SK. I ran into it today as I was cleaning around my old power recliner that has been my home for all to many years now following an accident that took me out of the law enforcement game and left me quite unable to work. I just lost my wonderful wife of 51 years and 5 days a bit over a month ago, and that still smarts worse then I could ever have imagined. Cancer took her, it was quick and dirty form that left the whole family exhausted when it was over. Enough about my life, thanks so much for sharing yours. Now I have to figure out exactly what I want to store in my little memory chip, the data sheet says she is good for one million writes so I guess the only danger is, perhaps ESD, I too have been playing with cmos chips since their introduction to the general public and have yet to blow one that way. I think I had one of those wrist bands but never used it, it was, well a bit to confining for me, and for some reason I have developed a quite nasty case of claustrophobia. Too many buried alive films I think, I know when I was planning my late wife's funeral, I happened upon a YouTube video on how they cremate, that cost me over 10 thousand USD, as after watching it, I went against my wonderful wife's wish to be cremated and went forward with a traditional burial. My family all agreed the only reason she wanted to be cremated was the cost, she wanted me to be able to take her insurance money and pay off some debts so I could go on without her paycheck. Wonderful lady, my wife, GOD how I miss her every damn second of every damn day since she was taken from me.

JerryEricsson
Автор

The naming 'Vcc' and 'Vss' has to do with the types of transistor in the IC package, and refer to the power rails within the chip. Vcc = Voltage Common Collector, is positive with respect to ground, while Vss = Voltage Source Supply is negative with respect to ground (and in many cases can just be tied to ground).

talideon
Автор

I thought your video was a little wordy at first - but I ended up really appreciating all the detail ! Great work ! I never saw part 1; your part 2 was more than sufficient by itself.

frankpw
Автор

To elaborate a little on A0, A1 and A2 and the chip address starting at

The chip is designed to allow you have a chain of up to eight of them addressed 80 to 87 (50 to 57 in hex or 1010000 to 1010111 in binary. You do this by setting the A0, A1 and A2 pins high as necessary to form the least three significant bits.
A good example as to why you would want to do this are printer toners. My Ricoh laser printer has four colour toners with 24LC01 (1 kbit) EEPROMS. These are set to addresses 80, 81, 82 and 83 by the wiring on the little PCB they are mounted on to. This way, the printer can address each toner individually on the one I2c bus.

martinconnolly
Автор

Well done Antony! This is a great building block! I was able to reproduce your result here at home. I was wondering what you did with the bit shift and the AND operation. You are such a good developer, you probably did that without even realizing it's on another level! Well thank you and keep these building blocks coming!

OK: figured it out, I think... An unsigned integer is 2 bytes, you shift right 8 places and bitwise AND the value so you have no leading ones as you write the command register byte. Nifty!

iWalkChris
Автор

beautiful tutorial! I plan on making an "open source" mp3 player with programmable pins for projects revolving around simple things, such as hooking up another "open source" mp3 of its kind into making a more powerful variant of itself and etc.

JohnDoe-irte
Автор

Well explained. But just for info, a byte holds between 0 and 255 (not 254 as you said at the end), or in hexadecimal 0x00 to 0xff

Stuart-AJC
Автор

sir, how to save data with char, float, or string?

salmanarizki-bw
Автор

Can you please upload a video . making of rtc module ds3231 and eeprom

muhammedriyaskt
Автор

I dont understand what was happening here for chip and cell address. I thought this was a hardwired thing and therefor the Arduino wouldn't need to be told this, could you explain this part a little more for me plz. eg could i just do something like digital.write (A0 =LOW), A1, A2.

oyoyo
Автор

So can i change the data in immobiliser eeprom and make it accept an value?

fscety_bs
Автор

Where are any of the other pins on the chip used? This looks like all data is read and written from the I2C bus.

MrGeekGamer
Автор

Can I use it for memory extension for program itself? I have lot of libraries in the program and memory is too small

vedatorpeta
Автор

hi, this video has helped me a

Im getting (error: expected ', ' or '...' before numeric constant) error at line 2
i.e #define chipAddress 80 you help me out pls.

shrijithmjain
Автор

Hello, could you help me, how to just read the ink chip, what code inside the chip, using this arduino, the chip is MDK341V

abankruna
Автор

Ottima spiegazione. Vorrei sapere come utilizzare la eeprom esterna, accoppiandola ad un ATTINY 85 per aumentare la memoria e la capacità di caricare uno sketch più grande.
grazie

leonardocarfone
Автор

Very helpful. ..can you please share SPI EEPROM interfacing with pic18f4550

diyelectronics
Автор

How do i adjust the code for the 24LC01B?

JanxZ
Автор

That's pretty cool. Can you use this to read any eeprom off commercial equipment, save it, then re-write it to an new eeprom?

MJ-iyfb
Автор

Definitely a lot safer than using an SD card to store the data. Also, probably uses a lot less memory, too. I think I'll be incorporating an EEPROM in my BMS I'm working on 😎

korishan