r/arduino•
kool171

Arduino uno programmatically blink the RX led

Software Help

I looked up the sheets and i can blink the TX led by setting the output to high. But for the RX led when i wan't it to blink i tried to set it high but is not working. I look-up the SCH scheme i looks like it is possible because they are connect. Do you have any idea?

Posted Dec 1, 2020, 12:04 PM UTC

16
NumberZoo•

Not with software. But grounding the RX pin will light up its LED. So if you digitalWrite(2, LOW) and connect a jumper from pin 2 to RX, then its LED will glow.

3
ferrybig•

You cannot blink the RX led, as the RX led is attached to the ATMEGA8U2-MU side processor for USB.

The chip blinks the RX led when it activates its RX signal, and you cannot inject an signal into its output, as that could short-circuit the chip

See the Arduino schematic for how these chips are connected

https://www.arduino.cc/en/uploads/Main/arduino-uno-schematic.pdf

(Note that some Arduino clones based on the CH340G can do this, but on the official Arduino Uno, you cannot do this without soldering jumpers somewhere)

2
MeatyTreaty•

Yes, they are connected. Connected to WHAT? And when in the normal course of operation do they light up?

That should give you enough of a hint as to why you are failing.

0
Mathieu314•

I guess it's because it's directly linked to the RX data wire. I mean since RX is designed do receive data, it's probably read only. It would be a total mess if for whatever reason a code was able to write on the RX pin.

So I guess it's not possible to blink the RX led. The only way would be to set TX to high on a second board connected to this serial port

0
Mathieu314•

Have a look at the microcontroller datasheet : http://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-7810-Automotive-Microcontrollers-ATmega328P_Datasheet.pdf

On page 159 it says USART RX register is Read only, not R/W

1
ferrybig•

I think you looked in the wrong datasheet.

On the Uno, the RX and TX leds are connected to the ATMEGA8U2-MU, which handles the USB to TTL serial conversation. The leds are not directly connected to pin 0 and 1 of the Arduino

https://www.arduino.cc/en/uploads/Main/arduino-uno-schematic.pdf

2