Search found 19 matches

by mikruth
Mon Jan 20, 2020 10:24 am
Forum: Drivers for External Components
Topic: 24LC512 I2C memory
Replies: 13
Views: 12181

Re: 24LC512 I2C memory

This works for me.

from machine import I2C, Pin
i2c = I2C(scl=Pin(22), sda=Pin(21), freq=400000)
i2c.writeto_mem(80, 0, 'test', addrsize=16)
data = i2c.readfrom_mem(80, 0, 4, addrsize=16)
by mikruth
Wed Aug 09, 2017 6:56 am
Forum: ESP32 boards
Topic: Problem with MicroPython v1.9.1-394-g79feb956
Replies: 2
Views: 3457

Re: Problem with MicroPython v1.9.1-394-g79feb956

Tried several times with no luck but then tried with MicroPython v1.9.1-395-g381bb7e9 and it works fine. I am using a cheap Chinese board with ESP-WROOM-32. All OK now.... Thanks
by mikruth
Tue Aug 08, 2017 12:19 pm
Forum: ESP32 boards
Topic: Problem with MicroPython v1.9.1-394-g79feb956
Replies: 2
Views: 3457

Problem with MicroPython v1.9.1-394-g79feb956

I am unable to import network on the build below. Have tried erasing flash and reloading xx.bin Is this a problem or is it just me. Thanks MicroPython v1.9.1-394-g79feb956 on 2017-08-07; ESP32 module with ESP32 Type "help()" for more information. >>> import machine >>> import network I (51776) wifi:...
by mikruth
Fri Feb 03, 2017 4:46 pm
Forum: ESP8266 boards
Topic: I2C EEPROM on uPy/ESP8266?
Replies: 48
Views: 42438

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: 42438

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: 12860

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: 42438

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: 42438

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: 42438

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: 42438

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...