Electronics > Beginners
How does LED in arduino blinks when program gets uploaded?
(1/2) > >>
electrowhiz:
In arduino we will have LED . The LED will blink whenever program gets uploaded. How it happens? I didn't write any code for it? Is it the bootloader responsible for it?
Brumby:

--- Quote from: electrowhiz on May 14, 2018, 06:01:45 am ---Is it the bootloader responsible for it?

--- End quote ---

Yes.

It's an acknowledgement that data is being transferred.
electrowhiz:
Tanq
darrellg:
If you look at the schematic for the Uno (https://www.arduino.cc/en/uploads/Main/Arduino_Uno_Rev3-schematic.pdf), you can see that the TX and RX LEDs are conntected to the 16U2, not the 328P. The bootloader runs on the 328P, therefore the bootloader is not flashing the LEDs. The 16U2 is utilized as a USB to serial converter and is programmed to flash the LEDs when appropriate.

On Arduinos like the Leonardo (https://www.arduino.cc/en/uploads/Main/arduino-leonardo-schematic_3b.pdf), which don't have a separate chip for USB communication, the bootloader is responsible for flashing the RX and TX LEDs.
Richard Crowley:
It is not clear whether you are asking about:
1)  The RX/TX LED(s) that indicate data/programming activity.
2) The built-in LED connected to (typically) pin 13

Others have responded to your question if you are asking about (1) The RX/TX LEDs.

But if you are asking about the pin-13 LED:
Arduinos (genuine, clone, and work-alike) typically come with a demonstration program ("Blink") pre-loaded onto the microcontroller chip.  This provides a satisfying experience to the buyer (especially a first-time user). AND, it demonstrates that the chip and board are actually working BEFORE the user attempts to load any code of his/her own.  So at least the user knows that the board WAS working when they first received it.   :-DMM
Navigation
Message Index
Next page
There was an error while thanking
Thanking...

Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod