Page 1 of 1

COM port

Posted: Thu Nov 16, 2023 10:30 pm
by tubbstubbs
I am completely new to programming hardware and just bought an esp32 Nodemcu. I'm trying to do my first test and to get it working with the arduino ide.

This is what I'm trying to do:

void setup() {
Serial.begin(115200);
}

void loop() {
Serial.println("Hello");
delay(500);
}

I the tutorial the esp output is read through the com port but in my arduino ide there is no com port only a /dev/tttyUSB0
With dmesg I see -> usb 1-2.3: ch341-uart converter now attached to ttyUSB0 and if I tail the ttyUSB0 something is happening there in increments that I assume is the loop running but I only see weird characters.

How can I get the com port to work? I find a lot of material online but nothing that seem to fix this for me.

Thanks

Re: COM port

Posted: Fri Nov 17, 2023 3:30 am
by lbernstone
COM ports are in Windows, /dev/tty devices are *nix. Sounds like it is working. I recommend you go to YouTube and watch a video about getting started with esp32 (there's likely one in your native language). Start up the Arduino IDE, select the port, and upload code (if you see a percentage counter, that is a very good sign). Then, open the Serial Monitor and set it to 115200 baud. You should see your 'Hello World' message.

Re: COM port

Posted: Fri Nov 17, 2023 9:42 am
by tubbstubbs
Fantastic! Thanks a lot!