TCA9548A I2C Multiplexer Module View larger

Imaginile sunt utilizate exclusiv cu titlu de prezentare. Fotografiile nu creează obligații contractuale.

TCA9548A I2C Multiplexer Module

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!

More details

75 Items

19,99 lei
tax incl.

Valid in the limit of the available stock

The price includes the costs for collection, treatment and ellimination of WEEE

Add to wishlist

More info

Overview

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

Pin supply:

  • Vin - this is the power pin. Since the image uses 3 V to 5 V DC to power the board, it requires a voltage supply identical to the microcontroller (Arduino ex - 5 V)
  • GND - ground

I2C control pins:

  • SCL - This is the clock pin of the image, connect I2C clock pin microprocessor
  • SDA - This is the image data pin, connect I2C data pin microprocessor
  • RST - It is pin reset, reset the image multiplexer. It is connected to HIGH, the reset connected to ground.
  • A0 A1 A2 - Pins Selection Multiplexer. The default mode is to address 0x70 and pins are connected to LOW (GND). Conectaţii to come to set addresses from 0x71 - 0x77.
  • A0 is the least-significant bit (if connected to the HIGH address increment 1)
  • A1 is the second-least-significant bit (if connected to increment the address HIGH 2)
  • A2 is the third least-significant bit (if connected to increment the address HIGH 4)

I2C multiplexed pins:

  • SDX and SCx: There are 8 sets of pins SDX and SCx from SD0 / SC0 to SD7 / SC7. They are multiplexed pins, each is a completely separate I2C bus. So it can have 8 devices with an identical address as long as each is a separate I2C bus. (These pins have internal pull-up sites!

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:

#define TCAADDR 0x70

void tcaselect(uint8_t i) {
   if (i > 7) return;

   Wire.beginTransmission(TCAADDR);
   Wire.write(1 << i);
   Wire.endTransmission();
}

Astfel puteți folosi tcaselect(0) - tcaselect(7) pentru a seta multiplexorul.
Pentru Arduino recomandăm folosirea acestui script pentru a afla configurația actuală.
/**
* TCA9548 I2CScanner.pde -- I2C bus scanner for Arduino
*
* Based on code c. 2009, Tod E. Kurt, http://todbot.com/blog/
*
*/

#include "Wire.h"
extern "C" {
#include "utility/twi.h" // from Wire library, so we can do bus scanning
}

#define TCAADDR 0x70

void 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 data;
         if (! twi_writeTo(addr, &data, 0, 1, 1)) {
            Serial.print("Found I2C 0x"); Serial.println(addr,HEX);
         }
      }
   }
   Serial.println("ndone");
}

void loop()
{
}


Don't delay. Buy today.


Add to cart now!

Reviews

Write a review

TCA9548A I2C Multiplexer Module

TCA9548A I2C Multiplexer Module

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!

Customers who bought this product also bought:

Download