Search found 16 matches

by mikruth
Fri Feb 03, 2017 4:46 pm
Forum: ESP8266 boards
Topic: I2C EEPROM on uPy/ESP8266?
Replies: 48
Views: 2305

Re: I2C EEPROM on uPy/ESP8266?

That's great.....Thanks!
by mikruth
Thu Feb 02, 2017 7:07 pm
Forum: ESP8266 boards
Topic: I2C EEPROM on uPy/ESP8266?
Replies: 48
Views: 2305

Re: I2C EEPROM on uPy/ESP8266?

Just a thought... The eeprom memory is 16 bits. Arduino sends 2 bytes consisting of MSB followed by LSB. Are we sending a 16 bit address with micropython?
by mikruth
Thu Feb 02, 2017 10:11 am
Forum: ESP8266 boards
Topic: Despite copying a new one, old main.py is operational
Replies: 15
Views: 838

Re: Despite copying a new one, old main.py is operational

I had this problem loading a new main.py with webrepl. Although Send a File was already populated with main.py I found I had to Choose file again and select main.py from the directory to get the new file loaded.
by mikruth
Thu Feb 02, 2017 9:47 am
Forum: ESP8266 boards
Topic: I2C EEPROM on uPy/ESP8266?
Replies: 48
Views: 2305

Re: I2C EEPROM on uPy/ESP8266?

After many tests, it seems that the ESP running micropython is not reading, writing or destroying any data on the eeprom. I previously had some problems with erroneous data due to a broken jumper cable. The eeprom can be found OK with xxx.scan() on the ESP and will also be found correctly, when the ...
by mikruth
Tue Jan 31, 2017 4:13 pm
Forum: ESP8266 boards
Topic: I2C EEPROM on uPy/ESP8266?
Replies: 48
Views: 2305

Re: I2C EEPROM on uPy/ESP8266?

ioukos or mcauser ... is the module you have working ok with micropython?
Thanks
by mikruth
Mon Jan 30, 2017 10:17 pm
Forum: ESP8266 boards
Topic: I2C EEPROM on uPy/ESP8266?
Replies: 48
Views: 2305

Re: I2C EEPROM on uPy/ESP8266?

Powering chip with 3.3v only. Yes....the chip changed by just booting up ESP with chip connected. Will try tomorrow without boot.py or main.py to see if something in there is causing problems.
by mikruth
Mon Jan 30, 2017 8:57 pm
Forum: ESP8266 boards
Topic: I2C EEPROM on uPy/ESP8266?
Replies: 48
Views: 2305

Re: I2C EEPROM on uPy/ESP8266?

That's fine. I used arduino to write the first 200 memory locations on the eeprom. Then read them back. Disconnected arduino and power to eeprom. Reconnected and booted a new sketch to read only and it was all correct. Then tried to read 1 memory location with ESP which returned xff. Tried again wit...
by mikruth
Mon Jan 30, 2017 7:41 pm
Forum: ESP8266 boards
Topic: I2C EEPROM on uPy/ESP8266?
Replies: 48
Views: 2305

Re: I2C EEPROM on uPy/ESP8266?

Not sure about commit but here is write code.

Wire.beginTransmission(deviceaddress);
Wire.write((int)(eeaddress >> 8)); // MSB
Wire.write((int)(eeaddress & 0xFF)); // LSB
Wire.write(data);
Wire.endTransmission();
delay(5);
by mikruth
Mon Jan 30, 2017 4:11 pm
Forum: ESP8266 boards
Topic: I2C EEPROM on uPy/ESP8266?
Replies: 48
Views: 2305

Re: I2C EEPROM on uPy/ESP8266?

Sorry didn't make that very clear. I wrote random values to eeprom with Arduino and the values read back were OK. After trying to read them on the ESP all I got was xff at each memory location. When read again on the Arduino all addresses returned xff.
by mikruth
Mon Jan 30, 2017 4:05 pm
Forum: ESP8266 boards
Topic: I2C EEPROM on uPy/ESP8266?
Replies: 48
Views: 2305

Re: I2C EEPROM on uPy/ESP8266?

Yes, I am connecting with pull-up resistors. After more tests I find if I write the eeprom with Arduino and only read it with ESP the values are all xff however, if I then read the eeprom with Arduino, all the memory has been changed to xff.

Go to advanced search