Hello All,
I have a custom ch101 board with ESP32-S3. I have "SN74LVC2T45DCUR" for INT pin level shift, TCA9416 for I2C level shift. For prog and rst, just a bss138 level shifters.
I am trying to test the board with the example code from the arduino library but the code stucks at the CHx01.begin(). More specifically, "rc = ch_group_start(this);" at this in CHx01.cpp.
SDA pin is at GPIO48 and SCL is at GPIO35. I set the I2C pin in the setup() with Wire.setPins(SDA,SCL). I can see the Sensor with I2C scanner. With PROG on LOW just 0x29, with PROG HIGH both 0x29 and 0x45!
I am not sure where is the problem. I have tried to change I2C level shifting. It didn't help. I have all the necessary pull-up resistors. 2.2k for I2C and 10k for the reset pin. I am started to think it is not related with the hardware but just the library because of ESP32-S3.
Hi ,
I faced similar issues whiling testing the arduino library. Hence, I ported the library to another platform, it gives more understanding on library and debugging steps. Level shifter is very crucial here. Use I2C compliant level shifter for I2C lines, prog and reset, for interrupt use bidirectional level shifter.
Last but not least that don't expect reply from TDK
Regards,
Hi Johnsnow,
Thank you for the info. I have tried to used different microcontrollers, It looks like the issue is with the provided firmware. I am going to follow your advice.
Best regards,