alcidesmig
Posts: 8
Joined: Mon Aug 05, 2019 9:12 pm

Enabling more i2c

Sun Aug 11, 2019 2:27 pm

Hi all,

I've tried to follow this tutorial: https://www.instructables.com/id/Raspbe ... c-Devices/ for having more one i2c to use.
But i got the same error that this guy (https://raspberrypi.stackexchange.com/q ... 0235_97973), anyone know what it can be and can help me?

Thank u all.

homeplayer
Posts: 4
Joined: Thu Apr 16, 2020 7:18 pm

Re: Enabling more i2c

Thu Apr 16, 2020 7:25 pm

Bit late, But it works for me

latest raspbian (lite)
rpi 4 2Gb rev 1,2

in config.txt

Code: Select all

# Uncomment some or all of these to enable the optional hardware interfaces
dtparam=i2c_arm=on
dtoverlay=i2c-gpio,bus=2,i2c_gpio_sda=17,i2c_gpio_scl=27
#dtoverlay=i2c-gpio,i2c_gpio_sda=23,i2c_gpio_scl=24
So after a lot of reboot try and error this is it I just added

Code: Select all

dtoverlay=i2c-gpio,bus=2,i2c_gpio_sda=17,i2c_gpio_scl=27
devices connected to gpio 23,24 will show with
i2cdetect -y 1
devices connected to gpio 17,27 will show with
i2cdetect -y 2

Return to “Troubleshooting”