The driver could not talk to the camera sensor. Error 0x105 means the sensor did not answer on the I2C bus. The usual causes are a loose ribbon cable, wrong pin definitions for your board model, or a weak supply.
What the message means
The camera driver starts the sensor over a small I2C link before it reads any image. If the sensor does not answer, initialisation stops and prints the error code.
Fix it in this order
- Power off and reseat the ribbon cable. Lift the latch, push the cable in fully, close the latch.
- Select the right board in the sketch. The pin definitions for AI-Thinker, M5Stack and other modules differ; use the one that matches your board.
- Power the board from a supply that can give 5 V at 500 mA or more. USB from a weak port causes failed starts.
- In the Arduino IDE, enable PSRAM under Tools if your board has it.
- Keep GPIO 0 free of ground after upload. Held low, it keeps the board in flash mode.
- Try another camera module. Sensors and cables fail, especially on cheap kits.
Why it happens
Camera init failed with 0x105 means the driver could not find the camera sensor. The usual causes are a loose ribbon cable, a camera module that is not the one the code selects, or a pin map that does not match your board.
Re-seat the ribbon cable with the board unpowered, power the board from a supply that can give enough current, and select the right camera model in the sketch for your board (for example CAMERA_MODEL_AI_THINKER on the common ESP32-CAM).
If you see this, do this
| You see | Do this |
|---|---|
| Fails on every start | Cable seating or wrong pin definitions. |
| Works sometimes | Power supply is too weak. |
| Error mentions PSRAM | Enable PSRAM in the board options. |
Related
ESP32 brownout, ESP32 pinout for robotics.
Last reviewed: November 2026. These are the usual causes and the order that finds them fastest. Test on your own board; clones and cables differ.
Why this happens
The camera driver talks to the sensor on a small two-wire control bus (SCCB, which is I2C-like) before any image data flows. During initialisation it sends a probe to the sensor’s address. The error 0x105 is ESP_ERR_NOT_FOUND, meaning nothing answered. Either the sensor is not powered or not connected, or the driver is using the wrong pins for that control bus or for the clock it supplies to the sensor.
The sensor needs a clock from the ESP32 (XCLK, commonly 20 MHz) before it responds to the bus. A wrong pin definition therefore breaks both the clock and the bus, and the sensor stays silent. A power dip during start-up can have the same effect, because the sensor is held in reset.
How to confirm the cause
- Confirm the model define at the top of the sketch matches your board. Only one model should be defined.
- Open the pin file and compare the pin numbers with your board’s schematic or pinout.
- Measure the 3.3 V supply at the board while the sketch starts. It must stay steady during start-up.
- Reseat the ribbon with the board off. The metal contacts face the board’s contacts, and the latch must be fully closed.
- Try the sketch with a second camera module. A fault that follows the module means the module is bad.
Worked example
The usual start-up check that prints the error code, on an AI Thinker board:
#define CAMERA_MODEL_AI_THINKER
#include "camera_pins.h"
// ... fill camera_config_t with the pins from camera_pins.h
// config.xclk_freq_hz = 20000000;
esp_err_t err = esp_camera_init(&config);
if (err != ESP_OK) {
Serial.printf("Camera init failed with error 0x%x\n", err);
return;
}Common mistakes
- Defining two camera models at the same time, or none.
- Hot-plugging the ribbon cable while the board is powered.
- Fitting the ribbon the wrong way round.
- Choosing a board profile for a different module, such as a development board.
- Using the same pins for an SD card or other peripheral at the same time.
If this did not fix it
- A supply that is too weak; add a capacitor across the power input and use a proper 5 V source.
- A camera sensor other than the OV2640, which needs a different setting.
- PSRAM not enabled in the IDE, which gives a different error but may show up as a failed start.