Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Camera Initialization Issue on ESP32-S3 Custom PCB (IDFGH-14145) #14947

Closed
3 tasks done
hardikofficial963 opened this issue Nov 28, 2024 · 12 comments
Closed
3 tasks done
Assignees
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally

Comments

@hardikofficial963
Copy link

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

General issue report

We are currently developing a custom PCB based on the ESP32-S3 that integrates the following components:
- OV5640 Camera
- ES8311 Codec IC (for microphone and speaker functionality)
- Servo Port
- I2C Port
- SD Card Port

While all other components are functioning as expected, we are facing a recurring issue with the camera.

Issue Description:
The PCB works fine initially after assembly, but after some time, the camera fails to initialize, showing errors such as:

"Camera initialization error"
"Camera SCCB failed"

Steps Taken:

  1. Testing with Custom PCB:
    The camera works immediately after assembly but stops functioning after some time.
    Testing with ESP32-S3 Development Board:

  2. We connected the OV5640 camera using an FFC breakout board and the same pins used in the custom PCB. The same initialization errors occur.

Attachments for Reference:
- PCB Design Schematic (1-4, 2-4)
- PCB Layout (3-4)
- List of Pins Used (4-4)

Could you please help us identify and resolve the issue? Any insights or suggestions would be greatly appreciated.

Looking forward to your guidance.
Camera_pcb_1-4
Camera_pcb_2-4
Camera_pins_4-4
Camera_Schematic_3-4

@espressif-bot espressif-bot added the Status: Opened Issue is new label Nov 28, 2024
@github-actions github-actions bot changed the title Camera Initialization Issue on ESP32-S3 Custom PCB Camera Initialization Issue on ESP32-S3 Custom PCB (IDFGH-14145) Nov 28, 2024
@suda-morris
Copy link
Collaborator

suda-morris commented Nov 28, 2024

what pull-up registers are used by the I2C bus? Are you using the esp32-camera library for driving the camera sensor? Can you use the i2c driver to read/write OV5640 registers correctly (no other dependency, just using the i2c master driver in the esp-idf)

@hardikofficial963
Copy link
Author

what pull-up registers are used by the I2C bus?
Yes, we have tried 2k, 5k, 10k ohm pull up.

Are you using the esp32-camera library for driving the camera sensor?
Yes

Can you use the i2c driver to read/write OV5640 registers correctly (no other dependency, just using the i2c master driver in the esp-idf)
No, currently we are trying to test camera with Arduino Camera webserver example.

@WangYuxin-esp
Copy link
Collaborator

This issue is not clear enough to determine whether it is a problem with the sensor or the development board.
Here is a reference document.
Perhaps using an official development board and running the examples here is a good way to check.

@hardikofficial963
Copy link
Author

This issue is not clear enough to determine whether it is a problem with the sensor or the development board. Here is a reference document. Perhaps using an official development board and running the examples here is a good way to check.

@WangYuxin-esp

The OV5640 sensor works perfectly on the ESP32-S3-Korvo-2 V3.0, as I’ve tested it thoroughly. However, we’re encountering reliability issues with our custom PCB.

Initially, when the PCB is assembled, the camera functions as expected, but after some time, it begins to throw a "Camera Initialization Error", "Camera SCCB Error", "Camera Not Found".
In this state, if I move the same camera module to the ESP32-S3-Korvo-2, it continues to work flawlessly.

This leads me to suspect a hardware-related issue with our custom PCB. Could you please provide guidance on potential causes or troubleshooting steps to resolve this problem?

@WangYuxin-esp
Copy link
Collaborator

Firstly, double check that the pin configuration in the software configuration is consistent with the hardware.
Then we can use an oscilloscope or logic analyzer to compare the relevant circuits on the official development board and custom development board. Including power pins such as XCLK Pin and DVDD Pins.

@hardikofficial963
Copy link
Author

Firstly, double check that the pin configuration in the software configuration is consistent with the hardware. Then we can use an oscilloscope or logic analyzer to compare the relevant circuits on the official development board and custom development board. Including power pins such as XCLK Pin and DVDD Pins.

@WangYuxin-esp
Yes, I have checked the pin configuration, it is accurate.

@WangYuxin-esp
Copy link
Collaborator

Perhaps submitting a hardware review report is a better option.

@hardikofficial963
Copy link
Author

Perhaps submitting a hardware review report is a better option.

@WangYuxin-esp
Yes, I have submitted Schematic and PCB Layout for Hardware Design Review.

@hardikofficial963
Copy link
Author

@WangYuxin-esp
I am curious, if ESP provides a Ticket number or some ID so that I track this issue.

@WangYuxin-esp
Copy link
Collaborator

This seems more like a hardware issue, you can submit a review request first. Then there will be relevant emails to reply to you. The issue channel here is mainly used to provide feedback on software issues, So as far as I know, there won't be an ID associated with these two things.

@hardikofficial963
Copy link
Author

This seems more like a hardware issue, you can submit a review request first. Then there will be relevant emails to reply to you. The issue channel here is mainly used to provide feedback on software issues, So as far as I know, there won't be an ID associated with these two things.

I understand, Thanks @WangYuxin-esp for helping us : )

@espressif-bot espressif-bot added Status: Done Issue is done internally Resolution: Done Issue is done internally and removed Status: Opened Issue is new labels Dec 3, 2024
@Alvin1Zhang
Copy link
Collaborator

Thanks for sharing the updates, feel free to reopen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally
Projects
None yet
Development

No branches or pull requests

5 participants