2

I was driving a relay from Arduino Uno R3 Pin 13. I observed that every time I upload some code the led on the board designating pin 13 would blink. I'm curious why this is so. I understand that the serial LED blinks cause there's a serial transmission but why an IO pin?

Osh Mansor
  • 103
  • 4
sixter
  • 61
  • 1
  • 6

3 Answers3

4

See What happens when code is uploaded using the bootloader? - the flashing is by design.

Optiboot flashing pin 13

Probably the reason is to confirm that the bootloader has started.

Nick Gammon
  • 38,901
  • 13
  • 69
  • 125
1

It's driven by the bootloader, which is performing the flashing (I suppose you are flashing through the USB port).

Igor Stoppa
  • 2,125
  • 1
  • 15
  • 20
-1

To show that the bootloader is functioning satisfactorily to the hobbyist. Boot loader helps to upload new sketch on the chip.

Butzke
  • 802
  • 1
  • 7
  • 21