B4R Question [SOLVED] Problems with ESP32-CAM-MB

hatzisn

Expert
Licensed User
Longtime User
Today I received my ESP32-CAM Board. This is it:

1641245362071.png


The version I purchased comes with a ESP32-CAM-MB on which the board docks in order to program it. I took it from AliExpress here:


The first thing I tried was to upload the ESP32 CameraWebServer example from the Arduino IDE. I have managed to do this successfully but I kept getting a "camera did not initialize err:0x105" error. I tried to dock better the camera in the receptor but nothing happened after a lot of tries. Once it worked but it kept printing "." (dots) on the Serial Monitor in Arduino IDE which was a sign that it was trying to connect to the wifi. It couldn't connect and the dots kept printing in the Arduino IDE.

Long story short, I was not able to initialize the cam so I switched to B4R to tried to create a sample project just to connect to the WiFi. There I discovered that nothing was printing in the logs even after upload and hard reset. I disconnected B4R and connected the Arduino Serial Monitor which displayed the data from serial correctly and I have successfully connected to the WiFi with the ESP32 board.

Cutting to the chase, I will say that I am not able to initialize the camera even if I tried the ESP32CamDemo from the relevant thread and secondly no logs are printing. I have double checked the bauds of communication. Here is what I did (see it maximized and change resolution) :




Any ideas on the two problems ("camera initialization" and especially "seeing logs in B4R") are highly welcomed.


Thanks in advance
 
Last edited:

peacemaker

Expert
Licensed User
Longtime User
It was already found before, no solution was found.
 
Upvote 0

hatzisn

Expert
Licensed User
Longtime User
I also ordered the same board - waiting for it to arrive ;)

check this:

Thank you all for the reply.

@f0raster0 I tried this in the CameraWebServer example and the result follows and it's the same:

C++:
  // I have changed the code into the following according
  //to what is suggested in the page you provided

  // camera init
  esp_err_t err;
  err = esp_camera_init(&config);
  if (err != ESP_OK) {
    Serial.printf("Camera init failed with error 0x%x", err);
    return;
  }

The result is this (logged in Arduino) :

10:26:22.984 ->
10:26:22.984 -> rst:0x1 (POWERON_ESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
10:26:22.984 -> configsip: 0, SPIWP:0xee
10:26:22.984 -> clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_rv:0x00,p_drv:0x00
10:26:22.984 -> mode:DIO, clock div:1
10:26:22.984 -> load:0x3fff0030,len:1420
10:26:22.984 -> ho 0 tail 12 room 4
10:26:22.984 -> load:0x40078000,len:13540
10:26:22.984 -> load:0x40080400,len:3604
10:26:22.984 -> entry 0x400805f0
10:26:24.137 ->
10:26:24.182 -> E (929) camera: Camera probe failed with error 0x105(ESP_ERR_NOT_FOUND)
10:26:24.182 -> Camera init failed with error 0x105
 
Upvote 0

f0raster0

Well-Known Member
Licensed User
Longtime User
have you seen this:
post #20 #21 #22
 
Upvote 0

hatzisn

Expert
Licensed User
Longtime User
have you seen this:
post #20 #21 #22

Thanks @f0raster0 for your help and efforts. I have seen the video by "Dronebot Workshop" in youtube about ESP32CAM and I knew about this. I have tried all models and after not finding a solution i ended up asking for help here.
 
Upvote 0

f0raster0

Well-Known Member
Licensed User
Longtime User
I got my ESP32-CAM then we can run a couple test together if needed..

this is my "hello world" (esp32-cam from alliexpress)

Untitled.jpg


photo_2022-01-21_20-54-28.jpg
 
Last edited:
Upvote 0

hatzisn

Expert
Licensed User
Longtime User
1) Do you get logs in B4R?
2) Do you hard reset from the motherboard or from the board?
3) When it works it is on the motherboard right?
 
Upvote 0

f0raster0

Well-Known Member
Licensed User
Longtime User
1) Do you get logs in B4R?
2) Do you hard reset from the motherboard or from the board?
3) When it works it is on the motherboard right?
3) yes, like in the picture, together.
2) after programing just push the reset button
1) I don't have any exmple to test using B4R, send me one and will do.. my understand is you can't make it working in B4R or Arduino - i did the power up/test using Arduino.
 
Last edited:
Upvote 0

hatzisn

Expert
Licensed User
Longtime User
For number 1 try this example:


For number 2 can you please clarify which reset button? There are 2 reset buttons, one on the board and one on the motherboard.
 
Upvote 0

f0raster0

Well-Known Member
Licensed User
Longtime User
For number 1 try this example:


For number 2 can you please clarify which reset button? There are 2 reset buttons, one on the board and one on the motherboard.
Why don't you make it working with Arduino first?
To test your hardware using Arduino.. then use your B4R

Edit: RST - I saw just one button, I did the test in <10min then don't remember.. will check tomorrow

Edit2: ahhhh that b4r example looks a lot more thst 10min ???????? try Arduino first!!!
 
Last edited:
Upvote 0

f0raster0

Well-Known Member
Licensed User
Longtime User
I installed B4R... (this is the second time trying to use this IDE)

1) I did a simple test:
B4X:
#Region Project Attributes
    #AutoFlushLogs: True
    #CheckArrayBounds: True
    #StackBufferSize: 600
#End Region
'Ctrl+Click to open the C code folder: ide://run?File=%WINDIR%\System32\explorer.exe&Args=%PROJECT%\Objects\Src

Sub Process_Globals
    Public Serial1 As Serial
    Private wifi As ESP8266WiFi
End Sub

Private Sub AppStart
    Serial1.Initialize(115200)
    Log("AppStart")
    'example of connecting to a local network
    If wifi.Connect2("HUAWEI", "doITsuper#SIMPLE123") Then
        Log("Connected to network")
    Else
        Log("Failed to connect to network")
    End If
End Sub

1.1) Reset the board
2) the board connects to my wifi without problems
3) Logs doesn't work properly.. a way to see them:
Start Arduino IDE, Open Serial Monitor - connect to the port - then click "connect" in b4R IDE

b4r-test575892.jpg


EDIT: Now my board doesn't work in Arduino :(
Camera init failed with error 0x20004 - Solved: :cool:
 
Last edited:
Upvote 0

hatzisn

Expert
Licensed User
Longtime User
Why don't you make it working with Arduino first?
To test your hardware using Arduino.. then use your B4R
........
Edit2: ahhhh that b4r example looks a lot more thst 10min ???????? try Arduino first!!!

I have tried it in Arduino the first time I held it in my hands. In Arduino logs are ok but in B4R not. I told you to to use the B4R code to tell us if you see any logs.
 
Upvote 0

hatzisn

Expert
Licensed User
Longtime User
View attachment 124559

EDIT: Now my board doesn't work in Arduino :(
Camera init failed with error 0x20004 - Solved: :cool:

Can you please share what was wrong and how did you manage to solve it?
 
Upvote 0

f0raster0

Well-Known Member
Licensed User
Longtime User
I have tried it in Arduino the first time I held it in my hands. In Arduino logs are ok but in B4R not. I told you to to use the B4R code to tell us if you see any logs.
if it work using Arduino then problem solved!!

then we b4r need to be checked, we have the same issue like @peacemaker wrote here

Can you please share what was wrong and how did you manage to solve it?
yes, removed B4R

EDIT: I just watched your video :cool: same situation here.. if you start Arduino you can see the logs. Anyway, I'm not going to install b4r again, sorry (until finish a project that I have to do)
 
Last edited:
Upvote 0

hatzisn

Expert
Licensed User
Longtime User
I have bought from AliExpress some OV2640 Cameras. I connected one of them to the ESP32CAM and finally I got it working perfectly running the CameraWebServer example from the Arduino ESP32 Examples.



1666159047990.png
 
Upvote 0
Top