0104110000016423
New product
This TCA9548A I2C Multiplexer Module can bind up to 8 same-address I2C in order to control 64 I2C addresses.
See Description for more details about the product.
Add to cart now!
47 Item Items
Warning: Last items in stock!
Availability date:
This TCA9548A I2C multiplexer module can bind up to eight I2C of the same address. It serves selects and sends commands to the selected set of I2C pins. Using it is quite easy, the multiplexer is on I2C address 0x70 (but can be adjusted from 0x70 to 0x77), write a single byte with the desired multiplexed output number to that port so that future I2C packets will get sent to that port.
You can connect 8 of these multiplexers on each of 0x70-0x77 addresses, controlling 64 I2C addresses
TCA9548A multiplexer is interesting because it has set 0x70 I2C address and send out I2C commands and specify that you want to communicate with. You can use this small code example:
0x70 #define TCAADDR
tcaselect void (uint8_t i) { if (i> 7) return;
Wire.beginTransmission (TCAADDR); Wire.write (1 << i); Wire.endTransmission (); }
Thus you can use tcaselect (0) - tcaselect (7) to set multiplexer.
For Arduino recommend using this script to find out the current configuration.
/ ** * TCA9548 I2CScanner.pde - I2C bus scanner for Arduino * * Based on code c. 2009 Tod E. Kurt, http://todbot.com/blog/ * * /#include "Wire.h" external "C" { #include "utility / twi.h" // Wire from library, so we can do bus scanning }#define TCAADDR 0x70void tcaselect (uint8_t i) { if (i> 7) return;Wire.beginTransmission (TCAADDR); Wire.write (1 << i); Wire.endTransmission (); }// Standard Arduino setup () void setup () { while (! Serial); delay (1000);Wire.begin ();Serial.begin (115200); Serial.println ( "nTCAScanner ready!");for (uint8_t t = 0, t <8; t ++) { tcaselect (t); Serial.print ( "TCA Port #"); Serial.println (t);for (uint8_t addr = 0; addr <= 127; addr ++) { if (addr == TCAADDR) continue;uint8_t date; if (! twi_writeTo (addr, & date, 0, 1, 1)) { Serial.print ( "Found I2C 0x"); Serial.println (addr, HEX); } } } Serial.println ( "ndone"); }Void loop () { }
The Micro 180 ° Servo Motors SG90 is useful for...
₱129.00
This white mini breadboard is ideal for your...
₱22.00