Skip to content

closedcube/ClosedCube_TCA9546A_Arduino

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ClosedCube Arduino Library for ClosedCube TCA9546A 4-Channel I2C Multiplexer/Switch With Reset Function Breakout Board

This is breakout board for Texas Instruments TCA9546A 4-Channel I2C Multiplexer/Switch With Reset Function

Features:

  • Active-Low Reset Input
  • Three Address Pins, default I2C address is 0x77
  • Channel Selection Via I2C Bus, in Any Combination
  • Power-up With All Switch Channels Deselected
  • Allows Voltage-Level Translation Between 1.8-V, 2.5-V, 3.3-V, and 5-V Buses
  • No Glitch on Power-up
  • Supports Hot Insertion
  • Low Standby Current

Alternative, you can use the following Arduino code fragment:



void selectChannel(uint8_t channel)
{
  if( channel >= 0 && channel < 4 ) {
    Wire.beginTransmission(0x77);
    switch(channel) {
      case 0:
        Wire.write(0x01);
        break;
      case 1:
        Wire.write(0x02);
        break;
      case 2:
        Wire.write(0x04);
        break;
      case 3:
        Wire.write(0x08);
        break;
    }
    Wire.endTransmission();
  } else {
    Serial.print("TCA9546A ERROR - Wrong channel selected: ");
    Serial.print(channel);
    Serial.print(" (available channels 0,1,2 and 3)");
  }
}


Where to Buy?

(UK Store)

I sell on Tindie

About

Arduino library for ClosedCube TCA9546A 4-Channel I2C Multiplexer/Switch breakout board

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages