Search found 7 matches
- Tue Jul 07, 2020 7:11 am
- Forum: General Discussion and Questions
- Topic: KeyError that I don't Understand
- Replies: 2
- Views: 1691
Re: KeyError that I don't Understand
Not just on the simulator: MicroPython v1.12 on 2019-12-20; ESP module with ESP8266 Type "help()" for more information. >>> >>> CONTROLLER_CONFIG = { ... 'ID': 1986, ... 'CE': 1, ... 'NI': 'Controller', ... 'AP': 4 ... } >>> print(CONTROLLER_CONFIG) {'ID': 1986, 'AP': 4, 'NI': 'Controller', 'CE': 1}...
- Mon Jul 06, 2020 7:00 pm
- Forum: Programs, Libraries and Tools
- Topic: Cannot find I2C devices on ESP32
- Replies: 11
- Views: 8604
Re: Cannot find I2C devices on ESP32
ESP32 has hw I2C, doesn't it, as opposed to the 8266? Haven't tried one as yet to see what the configuration differences might be.
That Vcc on the Arduino's definitely 3V3 isn't it?
That Vcc on the Arduino's definitely 3V3 isn't it?
- Mon Jul 06, 2020 3:12 pm
- Forum: Programs, Libraries and Tools
- Topic: Cannot find I2C devices on ESP32
- Replies: 11
- Views: 8604
Re: Cannot find I2C devices on ESP32
And make sure you really do rotate out the wires and don't just think you have (like I did...).
- Fri Jul 03, 2020 10:46 am
- Forum: ESP8266 boards
- Topic: I2C.scan() only returning 1 address in chain
- Replies: 7
- Views: 4289
Re: I2C.scan() only returning 1 address in chain
And after all that, I've found the problem. Should have buzzed it out sooner; it was down to a faulty jumper wire...
- Sun Jun 28, 2020 2:28 pm
- Forum: ESP8266 boards
- Topic: I2C.scan() only returning 1 address in chain
- Replies: 7
- Views: 4289
Re: I2C.scan() only returning 1 address in chain
From inspection, it looks as though the BMP280 has 10k pullups while the GY521 has 2k2 (I'm assuming here, I ought to buzz them out & double check). Both modules are running off 3V3. Interestingly... Having pulled everything apart and rewired it, I2C.scan() is now reporting addresses 0x08..0x77 incl...
- Sun Jun 28, 2020 10:55 am
- Forum: ESP8266 boards
- Topic: I2C.scan() only returning 1 address in chain
- Replies: 7
- Views: 4289
Re: I2C.scan() only returning 1 address in chain
Pulled all the jumper wires, swapped them out for different ones. I've been disconnecting the slaves by pulling VCC from them, so the logic lines are still there. Currently it's the GY521 being detected, which is physically 2nd in the chain. Pull power from it & the BMP280 is detected; repower and i...
- Sun Jun 28, 2020 9:30 am
- Forum: ESP8266 boards
- Topic: I2C.scan() only returning 1 address in chain
- Replies: 7
- Views: 4289
I2C.scan() only returning 1 address in chain
Hi all - I'm running a WEMOS D1 mini clone, with a BMP280 (temp/humidity sensor) & a GY521 (accelerometer) attached on a breadboard. GPIO 4 & 5 (SDA & SCL respectively) are being used as sw I2C; 4k7 pullups (to 3V3...) on both lines. Bus speed set to 400kHz. If only one device is connected to the I2...