ddodge
Junior Member

Posts: 75
|
Post by ddodge on Mar 14, 2019 2:09:41 GMT -8
Yes. Mux board. I verified with your service desk via email and have a tracking number now
Thanks!
|
|
ddodge
Junior Member

Posts: 75
|
Post by ddodge on Mar 17, 2019 10:41:30 GMT -8
SDL: Received replacement board. Thank you. Hooked it up. Having issues that I have started to work thru… Processor: OurWeather ESP8366 board / Arduino IDE 1.8.8
Connections: 1. Grove connector from OurWeather I2C to TCA9545 J1 0x73 2. LCD display connected to TCA9545 via Grove to J4 0x3C 3. SunAirPlus connected to TCA9545 via Grove to J2 0x40 0x48 RESULT: Running TCA9545 test program shows NO devices connected
Replaced Grove connecter from OurWeather to TCA9545 with a Grove attached to OurWeather but female ends. Connected to pins on JP1 on TCA9545 GND, VCC, SDA, SCL (black, red, white, yellow) RESULT: Running TCA9545 test program shows NO devices connected
Switched SDA & SCL lines (white and yellow) and got following output: (what I was expecting)
Bus 0 Control Register:1 Scanning... I2C device found at address 0x40 ! I2C device found at address 0x48 ! I2C device found at address 0x73 ! done
------------------------------ Bus 1 Control Register:2 Scanning... I2C device found at address 0x73 ! done
------------------------------ Bus 2 Control Register:4 Scanning... I2C device found at address 0x3C ! I2C device found at address 0x73 ! done
------------------------------ Bus 3 Control Register:8 Scanning... I2C device found at address 0x73 ! done
Added code to OURWEATHER V35 for the TCA9545 (using same code from test program):
>>>>> (before void (setup))
// TCA9545 4-Channel Mux #include <SDL_Arduino_TCA9545.h> // DD V1.2 drivers for 4-channel MUX
SDL_Arduino_TCA9545 TCA9545;
>>>>> In void(setup)
Wire.begin();
// DD V1.5 TCA9545 TCA9545.TCA9545SetConfig(); // DD V1.5 4-channel mux
uint8_t config; Serial.println("------------------------------"); Serial.println("------------------------------"); Serial.println("SDA_Arduino_TCA9545_Test"); Serial.println("Reading all four I2C Buses"); Serial.println("------------------------------"); Serial.println("------------------------------"); Serial.println(); // Bus 0 TCA9545.write_control_register(TCA9545_CONFIG_BUS0);
TCA9545.read_control_register(&config); Serial.print("Bus 0 Control Register:"); Serial.println(config & 0x0F, HEX); scan_i2c_devices_TCA9545(); delay(2000); Serial.println("------------------------------"); // Bus 1 TCA9545.write_control_register(TCA9545_CONFIG_BUS1);
TCA9545.read_control_register(&config); Serial.print("Bus 1 Control Register:"); Serial.println(config & 0x0F , HEX); scan_i2c_devices_TCA9545(); delay(2000); Serial.println("------------------------------"); // Bus 2 TCA9545.write_control_register(TCA9545_CONFIG_BUS2); TCA9545.read_control_register(&config); Serial.print("Bus 2 Control Register:"); Serial.println(config & 0x0F, HEX); scan_i2c_devices_TCA9545(); delay(2000); Serial.println("------------------------------"); // Bus 3 TCA9545.write_control_register(TCA9545_CONFIG_BUS3);
TCA9545.read_control_register(&config); Serial.print("Bus 3 Control Register:"); Serial.println(config & 0x0F, HEX); scan_i2c_devices_TCA9545(); // END OF DD 1.5 TCA9545 bus scan
>>>>> No TCA9545 code in LOOP section
RESULT: Got the following debug output. LCD display does NOT light up. SunAirPlus is not found. What am I doing wrong? Why did I have to switch the SDA/SCL to get any output? I really expected this to be a plug-n-play but maybe not?
----------------------------- ------------------------------ SDA_Arduino_TCA9545_Test Reading all four I2C Buses ------------------------------ ------------------------------
Bus 0 Control Register:F Scanning TCA9545... I2C device found at address 0x49 ! I2C device found at address 0x57 ! I2C device found at address 0x68 ! I2C device found at address 0x77 ! done TCA9545 loop
------------------------------ Bus 1 Control Register:F Scanning TCA9545... I2C device found at address 0x49 ! I2C device found at address 0x57 ! I2C device found at address 0x68 ! I2C device found at address 0x77 ! done TCA9545 loop
------------------------------ Bus 2 Control Register:F Scanning TCA9545... I2C device found at address 0x49 ! I2C device found at address 0x57 ! I2C device found at address 0x68 ! I2C device found at address 0x77 ! done TCA9545 loop
------------------------------ Bus 3 Control Register:F Scanning TCA9545... I2C device found at address 0x49 ! I2C device found at address 0x57 ! I2C device found at address 0x68 ! I2C device found at address 0x77 ! done TCA9545 loop If I switch the SDA/SCL back around again I get the following output with OurWeather… -----------------------------
Bus 0 Control Register:1 Scanning TCA9545... I2C device found at address 0x40 ! I2C device found at address 0x48 ! I2C device found at address 0x49 ! I2C device found at address 0x57 ! I2C device found at address 0x68 ! I2C device found at address 0x73 ! I2C device found at address 0x77 ! done TCA9545 loop
------------------------------ Bus 1 Control Register:2 Scanning TCA9545... I2C device found at address 0x49 ! I2C device found at address 0x57 ! I2C device found at address 0x68 ! I2C device found at address 0x73 ! I2C device found at address 0x77 ! done TCA9545 loop
------------------------------ Bus 2 Control Register:4 Scanning TCA9545... I2C device found at address 0x3C ! I2C device found at address 0x49 ! I2C device found at address 0x57 ! I2C device found at address 0x68 ! I2C device found at address 0x73 ! I2C device found at address 0x77 ! done TCA9545 loop
------------------------------ Bus 3 Control Register:8 Scanning TCA9545... I2C device found at address 0x49 ! I2C device found at address 0x57 ! I2C device found at address 0x68 ! I2C device found at address 0x73 ! I2C device found at address 0x77 ! done TCA9545 loop
|
|
|
Post by SDL on Mar 17, 2019 18:08:18 GMT -8
Sounds like you have wired up the board strangely. You should have ALL the devices connected to the I2CMux board outputs. Otherwise (like 0x49) the device shows up on all bus segments.
BP
|
|
ddodge
Junior Member

Posts: 75
|
Post by ddodge on Mar 17, 2019 19:08:28 GMT -8
Thanks for feedback but I do have each board connected via groove to grove connectors on mux board. What else? I guess I need clarification please
|
|
ddodge
Junior Member

Posts: 75
|
Post by ddodge on Mar 18, 2019 5:19:55 GMT -8
Further testing this morning: Connected Mux to a WeMos D1 ESP8366 board via I2C pins to Grove on the mux. Running test script - nothing found even though there are two devices connected to the mux.
Replaced ESP8266 board with a basic Arduino UNO board. Connected UNO to the MUX via a Grove to Grove cable. Ran test script - IT SAW ALL DEVICES CONNECTED TO MUX!
Reconnected OurWeather ESP8266 to MUX via Grove to Grove cable. Ran test script. Nothing Found!
So - what it is with ESP8266 boards? Do I have to initialize the board in the Setup portion of the IDE sketch?
Appreciate the help. This board is my last hurtle to getting my station online
|
|
ddodge
Junior Member

Posts: 75
|
Post by ddodge on Mar 19, 2019 8:42:05 GMT -8
SDL: Really need your guidance on this one. Weather Station going outside today for first time for field trials... Right now, I have a choice - I can use the BMP280 on the OurWeather Board for pressure and not monitor solar values or the other way around. When I plug SunAirPlus into the I2C bus, the BMP280 stops working.
I have the MUX board connected to OurWeather I2C via Grove (at the COMPUTER connection). The SunAirPlus and the SunLight boards are both connected to the MUX. But - OurWeather does not "see" them. I have to believe the wiring is correct. Just Grove connectors. Problem must be with the software and based upon other tests (mentioned above), problem may be with an ESP8266. Appreciate your help....
|
|
|
Post by SDL on Mar 20, 2019 14:13:20 GMT -8
Take a look at our comments on your i2c mux. You have the I2C mux wired wrong. Yellow goes to SCL.
BP
P.S. And remember it is wire(5,4) with the OurWeather board, not wire (4,5). Check the OurWeather code to see what we did.
|
|
ddodge
Junior Member

Posts: 75
|
Post by ddodge on Mar 20, 2019 14:41:48 GMT -8
Ok. Let me check. I have a grove to grove connected in there now
|
|