I am trying to start a project with the ESP32-CAM and ESP32-CAM-MB. Whenever I try and upload and monitor, it connects, then uploads but at the end of upload it freezes and prints a bunch of unreadable characters. I am new to ESP32 completely, I have some experience with STM32 and platformio though. I found if difficult finding documentation on this board. Here is my code, my platformio.ini file, and the output that I am seeing. There is a line in the output: “Changing baud rate to 460800” but I am not sure where that comes from, and changing the monitor_speed in the ini file doesn’t change anything. Once I hit ctrl+C in after the unreadable characters are printed, the flash bulb turns off and on as it should.
Code:
#define FLASH_PIN 4 // flash bulb
void setup() {
Serial.begin(115200);
pinMode(FLASH_PIN, OUTPUT);
digitalWrite(FLASH_PIN, HIGH);
delay(1000);
digitalWrite(FLASH_PIN, LOW);
delay(1000);
digitalWrite(FLASH_PIN, HIGH);
delay(1000);
digitalWrite(FLASH_PIN, LOW);
}
void loop() {
Serial.println("hello");
delay(1000);
}
platformio.ini
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[env:esp32cam]
platform = espressif32
board = esp32cam
framework = arduino
lib_extra_dirs = ~/Documents/Arduino/libraries
monitor_speed = 115200