1. hello world
Learning a programming language generally starts with the output of a simple "Hello World" code. This basic introduction is also often done on an Arduino board by flashing an LED, since the Arduino doesn't have a screen out of the box.
Before doing this, make sure you have downloaded and installed the Arduino IDE (software).
2. connecting the Arduino to the PC
Connect the Arduino board (in the example an Arduino Uno) to your computer via USB cable. The green power LED (PWR) should light up!
3. open the "Blink" sketch
Open the Arduino IDE and select the Blink example under: File>Examples>01.Basics>Blink.
4. selection of the board
Select the appropriate Arduino board used under Tools>Board.
5. selection of the serial port
Select the appropriate port under Tools>Port.
6. uploading the program
Just click on the Upload button and wait a few seconds. The RX and TX LEDs should start blinking. Once the sketch has been successfully uploaded, you will get an "Upload Complete" message.
7. result
A few seconds after the upload is complete, the LED ( in orange) next to pin 13 (L ) should start blinking.
Of course you can also connect a LED directly to the board. Connect the long leg of the LED (positive, anode) to pin 13 and the short leg (negative, cathode) to the Arduino GND.
But please note that depending on the model of the Arduino, the LED must be used in series with a series resistor (330 to 1000 ohms).