Author Topic: Arduino Onboard LED Polarities  (Read 800 times)

0 Members and 1 Guest are viewing this topic.

Offline Electro FanTopic starter

  • Super Contributor
  • ***
  • Posts: 3333
Arduino Onboard LED Polarities
« on: November 07, 2020, 10:28:59 pm »
Just confirming that the onboard LED that blinks in the basic Blink sketch is wired so that the anode is facing the side of the board with the USB connector but the TX and RX LEDs are wired so that the cathodes are facing the side of the board with the USB connector.  Kind of curious why the TX and RX LEDs would have been installed in a different (opposite) orientation than the other LED.
 

Offline ataradov

  • Super Contributor
  • ***
  • Posts: 12015
  • Country: us
    • Personal site
Re: Arduino Onboard LED Polarities
« Reply #1 on: November 07, 2020, 11:14:27 pm »
Probably just leftovers from a long time ago.

Anode to MCU, cathode to ground is a more intuitive configuration, since you have to set the pin high to enable the LED. This is probably why this was chosen for the user LED.

The other way around is technically slightly better, since MCU outputs are much better at sinking the current than sourcing it. This difference is negligible in CMOS logic, but was significant in TTL. So people that remember those days still do "anode to VDD" configuration.

The USB IC is not user accessible, so it does not really matter which way LEDs are connected.
Alex
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf