Hi community
I am using a ESP32-CAM to blink with the builtin LED and an Arduino Nano as a USB-to-Serial connector. The wiring is as on the image:
In the Arduino IDE I used the File > Example > 0.1 Basics > Blink and changed the LED_BUILTIN to 12.
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(12, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(12, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(12, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
Furthermore, I have ensured that the following settings are as a guide I found on YouTube:
During the UPLOAD process there is an error:
esptool.py v4.8.1
Serial port COM3
Connecting......................................
A fatal error occurred: Failed to connect to ESP32: No serial data received.
For troubleshooting steps visit: https://docs.espressif.com/projects/esptool/en/latest/troubleshooting.html
Failed uploading: uploading error: exit status 2
As per the link in the error message I have ensured that:
- The correct serial port is selected
- I don't get any error messages because of permissions
- ESP32-CAM is receiving power
Furtermore, I have double checked the wiring and replaced all wires with new ones.
Also, the esp32 is installed in the BOARDS MANAGER: