Arduino: Arducam Mini w/ 2 MP OV2640 on Arduino Uno: Can't find OV2640 module
I am trying to get an “ArduCAM Mini 2MP Rev. B” to work with an Arduino Uno running version 1.6.5 of the Software, and the latest ArduCAM library from GitHub.
Oddly I am seeing the following error with the ArduCAM_Mini_OV2640_LowPowerMode
example
Can't find OV2640 module!
I’ve verified that that both vid
and pid
aren’t updated by the two calls to rdSensorReg8_8
.
Anything I am doing wrong, or things I could try?
Much apprechiated!
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 19 (17 by maintainers)
@ArduCAM Hi Lee, I did some testing and I believe I now know what happened:
I first tested the
ArduCAM_Mini_OV2640_LowPowerMode
example, because I was interested in using the module in low-power scenarios. This probably worked the first time, but starting with the second time it must have failed withCan't find OV2640 module!
.Why? Because the module, when idle, is in low-power mode, which persists even after resetting the Arduino Uno (or uploading a new sketch). Because the module is still in sleep at the beginning of setup(), the I2C communication via
myCAM.rdSensorReg8_8(OV2640_CHIPID_HIGH, &vid)
fails, and I never saw anACK
on the logic analyzer. (I sent a pull-request to fix that https://github.com/ArduCAM/Arduino/pull/91)Then I tested
ArduCAM_Mini_OV2640_Video_Streaming
, but I must not have removed the module from power in the mean time, so - when the sketch was running the module must have still in low-power mode, and I was seeing the same error messages.I tested with both modules. They both seem to work. Must have been this software issue!