Search found 4 matches

by BastelBaus
Thu Oct 26, 2023 9:18 pm
Forum: ESP-IDF
Topic: Parallel dynamic I2C PIN switch for I2C Multiplexing
Replies: 5
Views: 2248

Re: Parallel dynamic I2C PIN switch for I2C Multiplexing

After adding WiFi to my code, I get quite soon after some accesses this error:
>> [ 44354][E][Wire.cpp:513] requestFrom(): i2cRead returned Error -1
I assume this has to to with the threading. Don't switching the pins does work perfekt. Any idea how to debug ?

BR
BastelBaus
by BastelBaus
Thu Oct 12, 2023 10:00 pm
Forum: ESP-IDF
Topic: Parallel dynamic I2C PIN switch for I2C Multiplexing
Replies: 5
Views: 2248

Re: Parallel dynamic I2C PIN switch for I2C Multiplexing

I really works like charm ! Please find my short proof of concept: https://hackaday.io/page/21183-hacking-esp32-multiplexing-i2c . Thanks for your good advice, this was the reason why it did not work the first time :-). Do you see any chances to create out of this a real feature within the ESP libra...
by BastelBaus
Thu Oct 12, 2023 4:44 am
Forum: ESP-IDF
Topic: Parallel dynamic I2C PIN switch for I2C Multiplexing
Replies: 5
Views: 2248

Re: Parallel dynamic I2C PIN switch for I2C Multiplexing

That’s promising, thanks for the fast reply. I will give it a try!
by BastelBaus
Wed Oct 11, 2023 9:55 pm
Forum: ESP-IDF
Topic: Parallel dynamic I2C PIN switch for I2C Multiplexing
Replies: 5
Views: 2248

Parallel dynamic I2C PIN switch for I2C Multiplexing

Dear community, I am new here and not sure if I am right here. I have 3 identical I2C slaves with the same address, want to avoid bit banging and an extra I2C multiplexing. I was wandering If I could connect my slaves to different pins and just switch the IO_MUX of teh ESP32S to the PINS of device I...