# Esp32 cam without ov5640

**URL:** <https://forum.arduino.cc/t/esp32-cam-without-ov5640/1291227>\
**Category:** 3rd Party Boards\
**Created:** [August 12, 2024, 8:26pm UTC](https://forum.arduino.cc/t/esp32-cam-without-ov5640/1291227 "2024-08-12T20:26:03Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Manaswin\_Kath](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/manaswin_kath/32/1126438_2.png) [@Manaswin\_Kath](https://forum.arduino.cc/u/Manaswin_Kath)\
**Post date:** [August 12, 2024, 8:26pm UTC](https://forum.arduino.cc/t/esp32-cam-without-ov5640/1291227/1 "2024-08-12T20:26:03Z")

</div>

Hey there, hope it is the right category :\> ... I recently got a ESP32 cam board and was testing the example sketch  
I got both the onboard LEDs to blink but I noticed that the actual camera attached to my board is not the same as most people on the internet are using, the ov5640.  
I guess it is some off the shelf camera with no identification number of any sort. It has "RHYX-M21-45" printed on the black flex connector.  
The error I get with "CAMERA\_MODEL\_AI\_THINKER" selected is as follows

```arduino
E (699) camera: JPEG format is not supported on this sensor
Camera init failed with error 0x106

```

and with the default "CAMERA\_MODEL\_ESP\_EYE" it simply doesn't recognize the camera  
I'm attaching the pictures of the camera and the esp32 cam module I am using

 ![IMG-20240813-WA0003](https://europe1.discourse-cdn.com/arduino/original/4X/a/1/f/a1f21ed7635367a31f484425f48c5d92d5447171.jpeg)  
 ![IMG-20240813-WA0002](https://europe1.discourse-cdn.com/arduino/original/4X/b/8/f/b8fc4a00c0c7e4daff6fe83eff74241493d22dc6.jpeg)  
 ![IMG-20240813-WA0001](https://europe1.discourse-cdn.com/arduino/original/4X/9/2/e/92e33beac6de184ef529f240d8db0d52cdf34104.jpeg)  
 ![IMG-20240813-WA0000](https://europe1.discourse-cdn.com/arduino/original/4X/c/1/c/c1c299a9b428f3ae0eef4884b90746614284d013.jpeg)  
please advise on what should I do to get it working :')  
I'm relatively new so please be patient :\>

---

<div class="post-metadata">

**Author:** ![sonofcy](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/sonofcy/32/1283617_2.png) [@sonofcy](https://forum.arduino.cc/u/sonofcy)\
**Post date:** [August 12, 2024, 8:33pm UTC](https://forum.arduino.cc/t/esp32-cam-without-ov5640/1291227/2 "2024-08-12T20:33:52Z")

</div>

> [@Manaswin\_Kath](#):
>
> RHYX-M21-45

Somebody is messing with you. That camera looks like it came from an Android phone. Try uncommenting one model at a time to see if any at least compile. If that does not work, you can by the cameras, I got a few handfuls from Aliexpress. Just search on OV5640.

---

<div class="post-metadata">

**Author:** ![Manaswin\_Kath](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/manaswin_kath/32/1126438_2.png) [@Manaswin\_Kath](https://forum.arduino.cc/u/Manaswin_Kath)\
**Post date:** [August 13, 2024, 1:25pm UTC](https://forum.arduino.cc/t/esp32-cam-without-ov5640/1291227/3 "2024-08-13T13:25:34Z")

</div>

okay... well AliExpress doesn't work in India somehow 😕  
ill try to uncomment each model and update asap

---

<div class="post-metadata">

**Author:** ![aliarifat794](https://avatars.discourse-cdn.com/v4/letter/a/eb8c5e/32.png) [@aliarifat794](https://forum.arduino.cc/u/aliarifat794)\
**Post date:** [August 13, 2024, 2:40pm UTC](https://forum.arduino.cc/t/esp32-cam-without-ov5640/1291227/4 "2024-08-13T14:40:35Z")

</div>

The camera's flex connector with the label "RHYX-M21-45" suggests it might be a custom or less common module. The error code `0x106` and the fact that it's not recognized under standard models like `CAMERA_MODEL_AI_THINKER` or `CAMERA_MODEL_ESP_EYE` indicate that the software cannot properly interface with your camera.  
In the example sketch, try other predefined camera models like `CAMERA_MODEL_WROVER_KIT`, `CAMERA_MODEL_M5STACK`, or `CAMERA_MODEL_M5STACK_WIDE`. It's possible your camera might align with one of these profiles.  
To do this, uncomment the appropriate `#define` line for a different camera model in the sketch.  
If nothing works, you can switch to pixycam instead.

> **[Getting Started with Pixy Camera - The Engineering Projects](https://www.theengineeringprojects.com/2015/11/getting-started-pixy-camera.html)**
>
> Today's post is about getting started with pixy camera. Now, the first thing comes in mind is what is Pixy Camera so let's first have a little ....

---

<div class="post-metadata">

**Author:** ![Manaswin\_Kath](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/manaswin_kath/32/1126438_2.png) [@Manaswin\_Kath](https://forum.arduino.cc/u/Manaswin_Kath)\
**Post date:** [August 13, 2024, 4:32pm UTC](https://forum.arduino.cc/t/esp32-cam-without-ov5640/1291227/5 "2024-08-13T16:32:05Z")

</div>

Hey there guys... I tried every single model on code and it didn't recognize a single one :') it kept resetting on some models but doesn't work anyway 😢  
any second options? i can't seem to find a spare ov5640 online for India.  
Thanks for the time :\>

---

<div class="post-metadata">

**Author:** ![qubits-us](https://avatars.discourse-cdn.com/v4/letter/q/5daacb/32.png) [@qubits-us](https://forum.arduino.cc/u/qubits-us)\
**Post date:** [August 13, 2024, 4:34pm UTC](https://forum.arduino.cc/t/esp32-cam-without-ov5640/1291227/6 "2024-08-13T16:34:47Z")

</div>

0x106 - Operation or feature not supported

maybe try a different pixel format..

```arduino
 //config.pixel_format = PIXFORMAT_JPEG; // for streaming
  config.pixel_format = PIXFORMAT_RGB565; // for face detection/recognition

```

maybe it just can't do jpegs??

good luck.. ~q

---

<div class="post-metadata">

**Author:** ![abid\_rahman\_kp](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/abid_rahman_kp/32/973826_2.png) [@abid\_rahman\_kp](https://forum.arduino.cc/u/abid_rahman_kp)\
**Post date:** [August 13, 2024, 5:51pm UTC](https://forum.arduino.cc/t/esp32-cam-without-ov5640/1291227/8 "2024-08-13T17:51:34Z")

</div>

Thank you very much I had bought the exact same esp32 and with it came the RHYX-M21-45 camera I could not find any information on it until today and the solution you gave finally made it work, Thank You very much. It works perfectly well with the AI THINKER CAMERA MODEL uncommented

---

<div class="post-metadata">

**Author:** ![Manaswin\_Kath](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/manaswin_kath/32/1126438_2.png) [@Manaswin\_Kath](https://forum.arduino.cc/u/Manaswin_Kath)\
**Post date:** [August 16, 2024, 5:04pm UTC](https://forum.arduino.cc/t/esp32-cam-without-ov5640/1291227/9 "2024-08-16T17:04:15Z")

</div>

hey there! I tried using RGB565 and it worked thanks a lot  
but i see that i get really low fps... i kinda went down the rabbit hole and got to know that is a common problem with this format...  
current condition of the video output is not much helpful for my use case tho :\<  
ill continue experimenting with new modules with preferably ov5640 cam for my project... it is a rather expensive module where i live so i can't mass buy it :\<  
i should always prefer ov5640 over ov3640 right?  
~Manas

---

<div class="post-metadata">

**Author:** ![qubits-us](https://avatars.discourse-cdn.com/v4/letter/q/5daacb/32.png) [@qubits-us](https://forum.arduino.cc/u/qubits-us)\
**Post date:** [August 16, 2024, 6:55pm UTC](https://forum.arduino.cc/t/esp32-cam-without-ov5640/1291227/10 "2024-08-16T18:55:01Z")

</div>

You're welcome..  
Yes, uncompressed format, think it's used for face detection??

> [@Manaswin\_Kath](#):
>
> i should always prefer ov5640 over ov3640 right?

one is 3 mega pixels the other is 5, think they both have compression engines, so both should be able to do jpegs..

good luck.. ~q

---

<div class="post-metadata">

**Author:** ![radhe\_virani](https://avatars.discourse-cdn.com/v4/letter/r/8baadc/32.png) [@radhe\_virani](https://forum.arduino.cc/u/radhe_virani)\
**Post date:** [September 5, 2024, 9:44am UTC](https://forum.arduino.cc/t/esp32-cam-without-ov5640/1291227/11 "2024-09-05T09:44:12Z")

</div>

```arduino
E (699) camera: JPEG format is not supported on this sensor
Camera init failed with error 0x106

```

I came across the same error and it was solved with

```arduino
//config.pixel_format = PIXFORMAT_JPEG; // for streaming
  config.pixel_format = PIXFORMAT_RGB565; // for face detection/recognition

```

But after this new error started coming up

```arduino
E (904) cam_hal: cam_dma_config(271): frame buffer malloc failed
E (905) cam_hal: cam_config(355): cam_dma_config failed
E (905) camera: Camera config failed with error 0xffffffff
Camera init failed with error 0xffffffff

```

Tried changing

```arduino
OV3660_PID
to 
OV5660_PID

```

but the problem isn't solved

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [March 4, 2025, 9:44am UTC](https://forum.arduino.cc/t/esp32-cam-without-ov5640/1291227/12 "2025-03-04T09:44:21Z")

</div>

Closed on March 4, 2025, 9:44am UTC

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
