Separate compiling from uploading
Install Arduino IDE from the official Arduino website. In Boards Manager install the package for your exact board; for a classic Uno R3 this is Arduino AVR Boards. Select the board and its USB port. A cable that supplies power may still lack data wires.
- Open File → Examples → 01.Basics → Blink.
- Click Verify. This compiles your sketch without proving that a board is connected.
- Click Upload. Wait for the completion message; the board resets and starts the new program.
- Confirm that the onboard LED changes state. Change both delays from 1000 to 200, upload again, and check the faster blink.
- Save the working sketch in a named folder before making further changes.
If no port appears, reconnect a known data cable and compare the port list before and after connection. If compilation fails, read the first meaningful error rather than only the final exit-status line. If upload fails, confirm the selected board and port, close other applications using the port, and disconnect devices from D0/RX and D1/TX on an Uno R3.
Make invisible behavior visible
Upload this complete sketch, then open Serial Monitor at 9600 baud. No external circuit is required.
void setup() {
Serial.begin(9600);
Serial.println(F("Board started"));
}
void loop() {
Serial.print(F("Uptime ms: "));
Serial.println(millis());
delay(500);
}
The startup line appears once after reset; the counter increases by about 500 ms between messages. Printing and other work also take time, so the interval is not an exact clock. F() keeps these literal strings out of scarce SRAM on classic AVR boards.
Garbled text usually means the monitor baud rate differs from Serial.begin(). An empty monitor may mean a wrong port, a missing upload, or that the startup line was sent before you opened it; press reset once. Repeating startup lines without intentional resets can indicate unstable power.
Practice: Add a counter of printed messages. Predict its first three values before running it. Record the board model, IDE board selection, baud rate, expected result, and observed result. These five details make a useful bug report.
A useful reminder
The hidden setup() and loop() under the hood
The Arduino core supplies the entry point, initializes the board, calls setup() once, and repeatedly calls loop(). Keep loop work short so polling stays responsive. Details and background processing vary by core.