Http://blog.csdn.net/qikaibinglan/article/details/5882898
1. There are stripes in sensor preview:
1. The power supply is unstable, and the CMOS sensor has a high stability on the power supply.
2. The synchronization signal is disturbed, and the color stripe is obviously caused by signal loss in each line of data.
3. Check whether the mclk and pclk are consistent with their ratio and software settings.
1. Random stripe interference, power supply check
2. Random interference of Row-to-row synchronization, which generally does not occur unless hsync and vsync are in the middle of the string or the cabling is too long
3. Non-synchronous stripes are refreshed at 50Hz/60Hz, and the refresh frequency is changed. If the row is not synchronized or the interference occurs, Moore's lines (moving oblique stripes) are displayed. If the field is not synchronized or the interference occurs, the shutter effect is displayed.
This problem is difficult to solve from the software. The best solution is to filter out power interference. There is no problem with the digital power supply of sensor. The key is the analog power supply, which supplies power to the internal A/D and photoelectric conversion circuit, so it is sensitive. Suggestion: power the analog circuit with a high PSSR value (80 dB or more) and use magnetic beads and couple capacitors near the concatenation device to further eliminate interference.
2. Unable to find the camera device. The device is not ready.
Power supply, reset, I2C signal, reset level is correct, some sensor high level reset, power down level is correct, read Sensor ID can read
All of the above are normal, which is basically a problem with the initialization code.
If the power and reset signals are correct, generally the Sensor ID is incorrect. You can print the Sensor ID after reading I2C to check whether I2C can be read normally, and whether your configured sensor ID is correct!
If I2C cannot be normally read, it is a hardware problem. Check the hardware.