Timeline for Multiple I2C devices connected to one Arduino Uno?
Current License: CC BY-SA 4.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 14, 2021 at 1:08 | comment | added | Coder9390 | Adding on to Majenko, you might find A1, A2, A3 on your I2C device, usually these are not connected, by soldering them (individually) you can change the address of your device, which you can then change in your code | |
Jul 13, 2021 at 20:02 | vote | accept | Tobias Guo | ||
Jul 13, 2021 at 20:02 | comment | added | Majenko | Yep. Except you don't normally "give" I2C devices addresses (unless you're making them yourself) - you usually are able to select between a couple of addresses using special pins on the I2C devices. If you can't select different addresses then you have the option of an "I2C multiplexer" to select between them. | |
Jul 13, 2021 at 19:42 | comment | added | Tobias Guo | So, since I don't have a way of connecting multiple devices to the A4/A5 pins, does that mean that I can connect one IMU to the A4/A5 pins and one to the discrete pins and have it still function as long as I give them different addresses? Thanks for your help! | |
Jul 13, 2021 at 19:30 | history | answered | Majenko | CC BY-SA 4.0 |