I am using an PCA9456A i2c switch to help me toggle between i2c devices with the same address, but i am having problems opening channel 1 (second channel out of 4) and i ran out of ideas what is causing it
import busio import board i2c = busio.I2C(board.SCL, board.SDA, frequency=100000) i2c.writeto(0x70, bytes([0x0F]), stop=True) # 0x0F = b00001111 which turns all channels on
With this code i am able to toggle between the other 3 channels (be it only 1 channel is enabled or any combination of the 3)
I am planning of using it on a raspberry pi 4.
what i have tried checking:
- I have tried double checking all connections and if they are
connected to the correct pins EDIT: This turns out to be false
- I have tried changing the pull up resistors' value (decreasing and increasing it)
- I have tried creating another circuit using another PCA chip and a different i2c device than what i am supposed to be using. It is always channel one that i cannot enable
here a picture for the i2c scan, you may notice that there is a gap between the addresses, 0x49. That is the device connected to channel 1.