COM port

tubbstubbs
Posts: 2
Joined: Thu Nov 16, 2023 10:21 pm

COM port

Postby tubbstubbs » Thu Nov 16, 2023 10:30 pm

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

lbernstone
Posts: 829
Joined: Mon Jul 22, 2019 3:20 pm

Re: COM port

Postby lbernstone » Fri Nov 17, 2023 3:30 am

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.

tubbstubbs
Posts: 2
Joined: Thu Nov 16, 2023 10:21 pm

Re: COM port

Postby tubbstubbs » Fri Nov 17, 2023 9:42 am

Fantastic! Thanks a lot!

Who is online

Users browsing this forum: lbernstone and 100 guests