Uploads to Arduino Uno, but program isn't working

I'm new to Arduinos, and I first tried to make an LED flash, didn't work. I didn't get an error, but nothing happened either, so I tried this program:

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

void loop() {
  Serial.print("Hello, world!");
  delay(500);
}

But again, nothing happens. RX and TX are flashing while uploading, and after it L and TX are permanent on. I have no idea why it could be so please help me

Did you open the serial monitor and set the line speed to 9600?

Oh, I expected it to open automatically, stupid of me, but thank you

I don't think that's a stupid assumption. This is absolutely how it should work in a good IDE, but the Arduino IDE (1.x at least) is just very, very barebones.

If the IDE did that it would annoy me intensely so I am glad that it doesn't

It could be an option you could turn off - but most programmers like seeing the output of their program.

In Arduino IDE 2.0, the serial monitor works without manual input but you still have to open it yourself. It's just a tab next to the "Output" window - why isn't that tab just always there?

It's almost as if the devs don't want you to know that logging via serial is even possible.

If I want to see the output then I will open the Serial monitor or leave it open so that it is immediately active as soon as the code is uploaded

I like the fact that in IDE 1.x the Serial monitor opens in a separate resizable window whilst the last time that I tried 2.x that was not possible. Has that changed ?

I don't know but agree that being able to have it in a separate window is a desirable feature. I'm just more of a tab person myself.

Using tabs in the IDE how do you view the code and the output at the same time ?

Like this:

(For the record - this is fairly similar to how big IDEs like Visual Studio, Eclipse, IntelliJ etc also handle it.)

Your definition of a tab and mine are obviously different. Your screenshot illustrates perfectly what is wrong with the IDE 2.x Serial monitor in that the amount of code that can be seen is limited by how large you make the Serial monitor

These are absolutely crap IDEs, for someone who just wants to compile code and not simply dick about with IDEs. All these are stupidly over complex with a 90 degree learning curve.

1 Like

At least all of those IDEs show me my program's output without forcing me to dive into a menu.

But I agree that they are crap IDEs for people who "just want to compile code", i.e. for people who don't want an IDE.

I'll admit that the serial monitor control has a non-intuitive icon, but there's no menu involved.

Using a magnifying glass as the toolbar icon for the serial monitor is not "non-intuitive", it is actively misleading and while this technically means my previous statement was false, it is still a stunningly bad piece of UX design.

You don't even need to click an icon.

I know that it is radical, but you can open the Serial monitor using a keyboard shortcut

1 Like

I actually thought it was an old-fashioned scope CRT

Seems like this second conversation is suitable for its own thread.

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