Arduino and External EEPROM

preview_player
Показать описание
Reading and writing to a 24LC512 external EEPROM chip with Arduino.

Рекомендации по теме
Комментарии
Автор

The best demonstration on YouTube about EEPROM. You forgot that how to erase an EEPROM. Good Works

amitpatelpatel
Автор

That's an amazing and simple tutorial, I finally understand eeprom

MegaJefflin
Автор

Great video. Short, precise, nice. Thank you.

bigheat
Автор

Simple logical and concise. Nice video, thanks.

colindgrant
Автор

For those who received 255 value returned, this is the new code i did fixed it, you just have replace some instructions with data byte ..

#include "Wire.h"

#define EEPROM_I2C_ADDRESS 0x50

void setup()
{
Wire.begin();
Serial.begin(9600);

int address = 0;
byte val = 110;

writeAddress(address, val);
byte readVal = readAddress(address);

Serial.print("The returned value is ");
Serial.println(readVal);


}

void loop()
{

}

void writeAddress(int address, byte val)
{

Wire.write(byte(0x00));

Wire.write(val);
Wire.endTransmission();

delay(5);
}

byte readAddress(int address)
{

char rData ;



Wire.write(byte(0x00));
Wire.endTransmission();

Wire.requestFrom(EEPROM_I2C_ADDRESS, 1);

rData = Wire.read();

return rData;
}

elyesmehri
Автор

Thank you for the great tutorial, it really inspired me to work on the similar chip i found from a broken car security circuit. I really like to test on the cmos serial eeprom from ATMEL 93C46 using your method and the datasheet.

sujanmahmud
Автор

Your valuable tutorial helps a lot. Many many thanks.

P_Manom
Автор

Hi! Is there any difference between programming this eeprom chip and 24LC01B?

Golubnich
Автор

Oh hey, there is a little mix up which may cause some confusion. MSB & LSB are the wrong terms (somewhere around minute 5:00 )
High byte and low byte are the terms i know for describing the two bytes you've shown. I just mention it, so people don't get confused.

DasIllu
Автор

Hey, could you help me? It says 255 instead the needed value every time I try it.

mecemodzada
Автор

I like your EEPROM video demonstration. However I am still a little bit confused. I downloaded your sketch, and wired everything up as show and it seems to work as it should. I enter the value of 110 and it returns it just fine. My question though is how do I have to change the code so I could enter value of say 750. When I try that I get a value back of 0. You mention in your video that you are reading 1 byte on the line Wire.requestFrom(EEPROM_I2C_ADDRESS, 1); How do I read the next byte to be able to enter larger numbers? Thanks

bradhollan
Автор

5:49 Why did you used an AND bitwise operator between an integer “address” and a number formed by all ones (0xFF)? The result should be the same “address” value, so why it would be useful? Thanks

stefano.a
Автор

i dont get the output immediately after opening the serial monitor.
i get the output only after sending any character from the serial monitor.
why is that?

saipratyushapratyusha
Автор

I don't want to be "that guy" but EEPROMs don't have a limit on read cycles. Write/Erase operations are what reduce the life of an EEPROM. So if you have something you want to store in EEPROM, do it... and read till the cows come home.

ianide
Автор

what is most logical eeprom for arduino uno more than 4k sram is enough for me

ahmetselim
Автор

Hi, I saw the datasheet and should't the address be 0xA0 for write and 0xA1 for read ? So it is 0b 1010 0000, why did you write 0x50 & 0x51 ?

psharmahello
Автор

I try make this tutorial but I use EEPROM 24C08A and use same the code in this video and result in serial print "the returned value is 255"
why don't get this message "the returned value is110"

خالدباشميل-بو
Автор

Hi,

Could you use the Arduino to reset/reprogram various BQXXXX ICs that are usually found in laptop batteries ? 🤔😕

Thanks &....

Best Regards,

davidbolha
Автор

Hi but with this programm i can write 24C64?

WearenerdsShop
Автор

Hi, I have a 24 LC 64 chip and I also receive only 255 as a return value. Are there any other tips around than those below? Switching pin 7 to 5v does not work

robostudio