The arduino doesn’t work: simple program upload but not running

Hello, I have problems with my arduino. It used to work very well but now I can't run a program, even though there is no error at the time of uploading. It is possible that my Arduino is a short circuit problem but I don't know how to check it.

I explain my problem in more detail:
When I connect the arduino to the USB port, the green "on" LED lights up and the orange L LED flashes 3 times (infinitely). I enclose a picture.

In the Arduino IDE software, the arduino seems to be recognized on the right port, (see the picture below), I'm on mac so the port is dev/cu.usbmodem.

I connect a very simple circuit on my arduino, to light an LED connected on pin 9, see the picture of the assembly. it's just a exemple I tried with other circuit ( for exemple with Serial.print() this does not work either)

I upload the program below:

void setup() {
  // initialize digital pin LED_BUILTIN as an output.
  pinMode(9, OUTPUT);
  Serial.begin(9600);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(9, HIGH);  // turn the LED on (HIGH is the voltage level)
  delay(1000);     
  digitalWrite(9, LOW);   // turn the LED off by making the voltage LOW
  delay(1000);                      // wait for a second
}

No problem is reported, but the LED does not light. And the L led keeps blinking.

Thank you for your help,

Welcome to the forum

Your topic was MOVED to its current forum category which is more appropriate than the original as it has nothing to do with Installation and Troubleshooting of the IDE

@ada
Do not forget that for the led circuit polarity does matter.
Please check that the led cathode and anode didn't were swapped.
Nothing dangerous, but in that case the led won't light

Hello, I can see that in your circuit diagram, the positive of the LED is connected to GND and the negative pin is connected to pin 9. Are you doing the same in your real-life circuit?

I believe also as @ada is mentioning

Which clearly indicate the person previously uploaded some code before to it

but I seen the opposite....
Screenshot from 2023-04-10 17-34-40

Hi yes I just took a picture of the assembly on the internet (but it's seems correct in the figure), but I connect the + to the pin and the - to the GND :slight_smile:
I also check on the pin 13 if the LED works well.

I have indeed run program before and it worked very well.

And what is the value of the series resistor?

220 Ohms

try to move LED to any other pin - 5 for example

it doesn't work either, :pensive:, I can test with all pin

faulty led?

Easy to know: just connect it to pin 13 and GND

No the LED is working i checked on the 13.

In fact no matter what code I try to make it do, it doesn't react (although it does upload)
I also tried to just change the blinking intervals on pin 13 and it doesn't work.

it's getting interesting....

Maybe the GND pin is not working? (not soldered)

No, you always need a series resistor when connecting any LED. Pin 13 used to have a series resistor about 15 years ago, but not since. However people still occasionally think it has.

why didn't you say it before?????

It seems like your all uploads the code to the board were failed.

Sorry I wanted an easy example, and it's more complicated to see if the blinking really changes.