logo elektroda
logo elektroda
X
logo elektroda

How to program the ESP32-CAM directly via the CP2102?

wosiekpl 2727 27
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 18281222
    wosiekpl
    Level 21  
    Welcome

    This time I am asking for advice on how I can program the ESP32-CAM camera module. As you know , this module does not have any USB type connector and for programming you need to use a USB converter . I have one with a CP2102 chip. After connecting the converter to the computer , a red LED on the board lights up. In the manager the converter is detected as Silicon Labs CP210x USB to UART Bridge .

    In the preferences of the arduino program , where to look for new modules writes this page

    https://dl.espressif.com/dl/package_esp32_index.json

    Then, in the tools tab, I search for new cards and a window pops up showing the search process.
    After several seconds of searching, an error pops up saying that it is not possible to connect to the page:

    Error descargando http://downloads.arduino.cc/packages/package_index.json

    I do not understand why it searches on one page and shows the error on the other


    Yesterday, I browsed the internet all afternoon and night, but nothing could be found to detect the module.
    My windows is Windows 7 , could it be the reason why I get an error because I have the wrong JAVA version? Because it does not update

    Greetings
    Do you have a problem with Arduino? Ask question. Visit our forum Arduino.
  • ADVERTISEMENT
  • #3 18281280
    wosiekpl
    Level 21  
    Hello

    And how can I check this ?
  • ADVERTISEMENT
  • #5 18281341
    wosiekpl
    Level 21  
    Yes, I checked there and there was nothing. I deleted version 1.6 and installed the new one, the latest 1.8.10, and it shows esp32 espressif. So now it is OK

    Now I have to find out how to program the camera module

    So far thanks for your help, if I have more problems I will write again

    Greetings

    Added after 43 [minutes]:

    Unfortunately , I still have to ask for help.
    This is what is now popping up for me when monitoring the port


    How to program the ESP32-CAM directly via the CP2102? .


    How to program the ESP32-CAM directly via the CP2102? .
  • #6 18281519
    khoam
    Level 42  
    Comment out '#define CAMERA_MODEL_WROVER_KIT'.
    Only '#define CAMERA_MODEL_AI_THINKER' should remain.
  • #7 18281997
    wosiekpl
    Level 21  
    Hello
    I have it written down like this in the program, because I don't know much about programming I don't really understand what you mean, i.e. what to change
    How to program the ESP32-CAM directly via the CP2102?
  • #8 18282034
    khoam
    Level 42  
    It should be like this:
    Code: C / C++
    Log in, to see the code
    .
  • #9 18282062
    wosiekpl
    Level 21  
    or so ?
    How to program the ESP32-CAM directly via the CP2102? .


    I should add that in the further part of the programme it is written as follows

    How to program the ESP32-CAM directly via the CP2102? .


    Still nothing

    How to program the ESP32-CAM directly via the CP2102?

    still can't see it
  • #10 18282261
    khoam
    Level 42  
    You still have not made the change I wrote about in the post #8 .
  • #11 18282315
    wosiekpl
    Level 21  
    How to program the ESP32-CAM directly via the CP2102? .

    I now have it written like this and while programming it pops up an error like this. Surely I have done something wrong

    Ps
    Please , write as if for a throng because I know nothing about programming and find it hard to understand anything even if it is simple
  • #12 18282386
    khoam
    Level 42  
    No USB communication with ESP32-CAM when trying to load the program. The program itself has now compiled correctly.
  • #13 18282462
    wosiekpl
    Level 21  
    I have re-entered
    This is what it looks like after the complication

    How to program the ESP32-CAM directly via the CP2102? .


    And this is how it looks after uploading , something is wrong

    How to program the ESP32-CAM directly via the CP2102?
  • ADVERTISEMENT
  • #14 18282491
    khoam
    Level 42  
    It appears that the program has compiled correctly and loaded into the ESP. Next is something in Spanish :) .
  • #15 18282515
    wosiekpl
    Level 21  
    I use the programme in Spanish jeje
    And it says so

    Library not appropriate found in C user /Jose / Documents / Arduino / Libraries / Tools : folder ( or maybe file ) with header (.h) not found in C - user - documents - Arduino - libraries - tools

    If I understand correctly I am missing the library
  • #16 18282518
    khoam
    Level 42  
    Have you checked what appears in the serial port monitor in the Arduino IDE after loading the code and restarting the ESP? The monitor speed should be set to 115,200.
  • #17 18282527
    wosiekpl
    Level 21  
    How to program the ESP32-CAM directly via the CP2102? .

    This is what it looks like. At the moment I have a jumper on the ESP module for programming.
    Should I remove it ?
    In order for something to show up in the window I have to press reset on the module board.
  • ADVERTISEMENT
  • #18 18282535
    khoam
    Level 42  
    wosiekpl wrote:
    Shall I delete it ?
    .
    Yes.
  • #19 18282537
    wosiekpl
    Level 21  
    Ok , deleted but nothing shows up
    Should I press reset?
    Or should I disconnect and reconnect the module
  • #20 18282541
    khoam
    Level 42  
    wosiekpl wrote:
    Can you disconnect and reconnect the module
    .
    You can do it that way too, but I would think you would be removing that jumper with the ESP power off.
  • #21 18282553
    wosiekpl
    Level 21  
    No , I did the live. Now I have disconnected and reconnected

    How to program the ESP32-CAM directly via the CP2102?

    It seems to be better
    And to see what the camera sees I need to connect to the address indicated. I understand that I need to use a program with which I can preview?

    It works, I entered the address and it worked.

    Thank you, many thanks for your help
  • #22 18282555
    khoam
    Level 42  
    wosiekpl wrote:
    It seems to be better and in order to see what the camera sees you need to connect to the indicated address . I understand that I should use a program with which I can do the preview?
    .
    Yes, nice viewing ;) .
  • #23 18282560
    wosiekpl
    Level 21  
    OK. Many thanks again. I'll play around with it a bit for now and see what it can be useful for
  • #24 18283120
    wosiekpl
    Level 21  
    Hello

    I am revisiting the topic , the camera works fine but only at home. It is connected to the router via Wifi and in the mobile phone I can watch what it sees but also only when the mobile is connected to the Wifi. I thought that outside the house I would be able to watch but it turns out not to be the case. It follows that I will have to do something else to be able to view the camera image outside the house. I want, for now in the form of tests (because neither the quality of the image nor the voice, does not allow much. It is known that for such money one cannot demand much) to control what is happening on the roof, i.e. control my shortwave antenna.

    Greetings
  • #26 18283155
    wosiekpl
    Level 21  
    Hello

    I have already ordered ( yesterday ) , This is it

    How to program the ESP32-CAM directly via the CP2102?

    And now I will take to reading what you have given me

    Thanks


    Ps

    As I wrote, the antenna is already ordered. I just had a quick look at the website you wrote about . I will do further tests at the end of the week. But it seems to me that the problem is not related to the antenna because the signal relay from the router is located 1,5 mtr from the camera.
    The router is in the living room and the camera in the room, in a straight line it will be about 6 mtr but between the camera and the router I have mounted a signal relay which amplifies the signal from the router
  • #27 18286851
    khoam
    Level 42  
    wosiekpl wrote:
    I have a signal relay fitted which boosts the signal from the router
    .
    I also have something like this at my place and sometimes the ESP "catches" the WiFi connection not from the extender but from the main router even though there is a weaker signal. This is also when the connection breaks down.
    You can try to connect to the extender using the ESP8266WiFiSTAClass::begin() function, where you also specify the MAC address of the AP, but I haven't tried that - it seems to have appeared only in the latest version of Arduino HAL for ESP8266, version 2.6.
  • #28 18286967
    wosiekpl
    Level 21  
    Yes , only that I have a router saved in the program with an EXE extension . The router in the living room has the name abc.123 and the relay has the name abc.123_EXE so I guess it can't connect.
    As I wrote earlier , at the end of the week when I have more time I will try to review the exact page you are writing to me about. In the meantime maybe a new antenna will arrive.
    Best regards

Topic summary

The discussion revolves around programming the ESP32-CAM camera module using a CP2102 USB to UART bridge. The user initially faced issues with the Arduino IDE not detecting the ESP32 board manager, which was resolved by updating to version 1.8.10. The user then encountered problems with programming the camera module, including errors related to library files and USB communication. Solutions provided included commenting out specific lines in the code to select the correct camera model and ensuring proper connections and settings in the Arduino IDE. The user successfully uploaded code and accessed the camera feed but later faced challenges with Wi-Fi connectivity outside the home. Recommendations included using an external antenna for better signal strength and ensuring the ESP32 connects to the correct Wi-Fi network.
Summary generated by the language model.
ADVERTISEMENT