I have recently shifted from using the Arduino IDE to using Platformio in VS Code. Its nice, but I am having significant trouble with the serial monitor.
I have an esp32 cam board and am connecting through a separate micro USB to serial board.
Whenever I try to establish a serial connection to the board, the platformio serial monitor either returns gibberish, or null. In addition, the code I have loaded should print repeatedly, but the serial monitor only outputs a small amount of scrambled text.
The weird thing is that when I use the serial monitor built in to the arduino IDE, the output becomes as expected. I have also tried putty, but it does not seem to work either.
Test script running on the board: