I received an Elegoo smart car 4.0 for Christmas but the wifi would never show up. So I downloaded Arduino and the program files from Elelgoo so I could reinstall everything. There are 2 programs that I see, "Main Program (Ardunio UNO)" & "Code of camera (ESP32)".
I opened and uploaded the "main program" with no issues or errors. But when I uploaded the "code of camera" I got the error below. I've read that the wifi is part of the camera, so maybe this is the issue?
Now that I tried to upload the camera code, my robot is no longer working. It's just making a buzzing noise at me. please help, thanks!
In file included from C:\Users\Home\Documents\ELEGOO Smart Robot Car Kit V4.0 2021.12.24\02 Manual & Main Program & APP\04 Code of Carmer (ESP32)\ESP32-WROVER-Camera\ESP32_CameraServer_AP_20211130\ESP32_CameraServer_AP_20211130.ino:10:0:
CameraWebServer_AP.h:12:10: fatal error: esp_camera.h: No such file or directory #include "esp_camera.h"
^~~~~~~~~~~~~~
compilation terminated.
exit status 1
esp_camera.h: No such file or directory
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Hi. I just got there.
You need to register the right board in the Arduino IDE, the AI Thinker ESP32-CAM, which you get from getting an updated list of boards from ESP32 Espressif, the original creator of the board (I guess). You add this link in the Preferences as Additional Boards Manager: https://dl.espressif.com/dl/package_esp32_index.json
(a lil' Arduino IDE restart can help)
Then a board partition scheme will appear in tools, select HUGE APP instead of the default one (or the sketch will be too big).
(I may miss a part where you look up for the ESP Camera, but too be honest I can't remember if I installed it myself afterward or got it provided automatically).
Edit: got the wrong ESP32 board originally, fixed that. Also: I'm still struggling to upload this myself, so that's just one step solved.
I opened File -> Examples -> ESP32 -> Camera -> CameraWebServer example and it uses: #include "esp_camera.h"
Maybe they changed the ESP32 #include files since that sketch was written.
Connect the module to your Arduino IDE and follow these notes from the supplied "Notes.txt" in the above zip.
// WARNING!!! Make sure that you have selected Board ---> ESP32 Dev Module
// Partition Scheme ---> Huge APP (3MB No OTA/1MB SPIFFS)
// PSRAM ---> enabled
From the zip file open the folder for the WiFi channel you want to use and then open "ESP32_CameraServer_AP_20220120.ino" from that folder with Arduino IDE. Compile and download.
You now see a flashing green light until a device connects to this webserver.
Look for an SSID like "ELEGOO-xxxxxxxxxx" where xxx is like a MAC address