Hi!
Because of weird restrictions in this school project, I have to do this one i2c connection very specifically which makes it hard and I need help.
I have an mpu6050 and atmel speaking with eachother over i2c and I want to put an esp32 between them so it can forward and modify the data sent between the atmel and mpu. My current iteration works like so:
- both the esp32 and mpu6050 are on the same i2c bus as slaves but with the same address!
- Atmel requests data from MPU
- This triggers GPIO pin, which triggers address change for MPU (0x68 -> 0x69)
- everything works now BUT:
For the first data request both the mpu and the esp are on the same address and they both respond with ACKS, which corrupts the first batch of data and that ruins everything.
If I now change esp's address to something different, it wont be able to detect the data request sent by atmel and the switching never happens.
So how can I detect the i2c request between atmel and mpu with the esp without being on the i2c bus with the same address?
I'll respond with more information if needed,
Thanks!