Skip to content

SI4713 behind a TCA9548 I2C multiplexer is not recognised by this library? #10

@JohanBenko

Description

@JohanBenko
  • Arduino board: Arduino pro micro

  • Arduino IDE version (found in Arduino -> About Arduino menu): 1.8.19

  • List the steps to reproduce the problem below (if possible attach a sketch or
    copy the sketch code in too):

The SI4713 behind a TCA9548 I2C multiplexer is not recognised by this library
in this project the Adafruit Si4713 is connected to I2C(0) of the TCA9548. The reset of the Si4713 is connected to pin 21.

Code (based on the example):
`
#include <Wire.h>
#include <Adafruit_Si4713.h>
#define _BV(n) (1 << n)
#define RESETPIN 21
#define TCAADDR 0x70
#define FMSTATION 10230 // 10230 == 102.30 MHz

Adafruit_Si4713 radio;

void setup() {
Serial.begin(9600);
while (!Serial);

Serial.println("Adafruit Radio - Si4713 Test");
tcaselect(0);
radio = Adafruit_Si4713(RESETPIN);
if (! radio.begin()) { // begin with address 0x63 (CS high default)
Serial.println("Couldn't find radio?");
while (1);
}

Serial.print("\nSet TX power");
//...
}
void loop() {
//...
}

void tcaselect(uint8_t i) {
if (i > 7) return;
Wire.beginTransmission(TCAADDR);
Wire.write(1 << i);
Wire.endTransmission();
}
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions