Open ghost opened 3 years ago
Hi, The camera can run on secondary I2C, indicating that there is no problem with the camera itself. As for why the camera cannot be used on the default I2C pins, I think you should first use a simple default I2C example to test whether the default I2C is turned on correctly. Finally, connect the camera to test.
Thank you for the response. I have tested an IMU with the default I2C bus and the bus works. I have also tried testing the camera with multiple Arduino DUEs and their I2C buses but only their second I2C bus works (SDA1/SCL1) and not the default bus (SDA0/SCL0) in all of them. I have come to the conclusion that it appears that the ArduCam software is what is not allowing the default I2C bus to work.
Are there any recommendations regarding the software aside from what was mentioned above? Thank you in advance.
Sorry for keeping you waiting. After our test, if the arducam library is not modified, DUE does not support Wire0. Due to the compatibility of some boards before, DUE is defined in the Arducam library to use Wire1. If you want to use Wire0, please follow the steps below:
Comment out the following in Arducam.cpp.
Modify Wire1 to Wire in the test example
Connect SDA and SCL to 20 and 21 respectively
Hi, I try connect ArduCAM on feather M0, and I try using SERCOM pin for the I2C. But, It doesn't work. Any reference for this problem ?
Hello, I haven't been able to get my ArduCam to work with my Arduino DUE's default I2C bus (pins SDA0 and SCL0) which for example, should be made active in the "ArduCAM_Mini_5MP_OV5642_Plus_Functions" example code by replacing Wire1.begin() ( which has pins SDA1 and SCL1) in line 41 with Wire.begin(). I can get the SDA1 and SCL1 I2C bus to work (by keeping Wire1.begin() ) but I don't understand why I can't use the default I2C bus (pins SDA0 and SCL0) on my Arduino DUE by changing the Wire1.begin() line to Wire.begin(). Is there something else I need to change somewhere to make this work?
Note: In order to use the DUE with this camera I had to go to the memorysaver.h file and uncomment "#define OV5642_MINI_5MP_BIT_ROTATION_FIXED" as shown:
Also, yes, I am making the correct connections according to the specified I2C bus as shown:
Any help will be greatly appreciated as I cannot use SDA1 and SCL1 lines for specific reasons. Also, I am using Arduino IDE 1.8.12