Using Serial Monitor with Visual Studio Code

Hi,
I've tried out using Visual Studio Code with the Arduino Plugin to program a D1 mini pro which worked out quit well.
But when using the serial monitor, it seems that GPIO 0 (D3) is pulled down (weak pulldown) and an input is recognized. Does anyone knows about or doeas have a workaround?
There is no such behaviour when using the Arduino IDE (but I miss the Intelli Sens :slight_smile: )

regards Alex

Have you tried the Arduino IDE 2.0 ?

I'm using 1.8.19, so no I haven't tried.

Try changing the monitor options. I figured you are using PlatformIO. If not, you should try it.

You have to modify the plattformio.ini file in your project and try changing the baud-rate to 74880 on your Serial.Begin statement and as well on your platformIO.ini.

Also try different monitor_dtr and monitor_rts states.

See the link below on how to modify it.

https://docs.platformio.org/en/stable/projectconf/section_env_monitor.html

Thanks for the reply. Currently I'm using the Arduino plugin. It might worth a try, using PlatformIO.

I've been using PlatformIO for a long time, so I wasn't aware there was an Arudino plug in! :open_mouth:

I cannot say enough good things about PlatformIO, give it a try and there is plenty of support for it. And you get a pretty good Intelisense!

It was actually created by Microsoft:

https://marketplace.visualstudio.com/items?itemName=vsciot-vscode.vscode-arduino

when I used the VSCode with arduino I followed this tutorial

and all thing went well, no problems at all.

Hi - what I do to deal with this make sure VSC extension's default baud rate setting matches the sketch.

So if in my sketch I have: Serial.begin(9600)

Then in my settings I have to have: arduino.defaultBaudRate": 9600

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.