How Arduino Pro micro knows the Serial Monitor is open

Hi there!

I currently make something that uses Arduino "pro micro" which provides USB communication.

And I hope to make my little toy notice when the serial monitor is on (i mean, the serial port is online) so that this guy can say "hello world!" on the Serial monitor without replugging or repowering Arduino pro micro.

But, I don't know how to do that. please help me smart guys~!!

The Arduino or the code running on it does not know whether anything is connected to the serial port let alone when it is listening for output unless it sends a response, which the Serial monitor doesn't

I saw that every time i open the serial monitor in Arduino IDE it's LED on RX pin lights up.

so i thought that it could able to notice the serial port is open.

thanks for reply & your kindness

Every time that you open the Serial monitor on an AVR based Arduino the board is reset, that is what you are seeing when the LED flashes

I know about the reset but, Arduino pro micro has not builtin LED on 13 pin.

I double checked that only RX pin blink when i open the serial monitor

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.