Arduino Uno - Serial Connect

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
robhixkg
 
Posts: 32
Joined: Wed May 28, 2014 10:56 pm

Arduino Uno - Serial Connect

Post by robhixkg »

Good afternoon all,

Is there any way to execute code on an Arduino UNO R3 when something connects via the serial interface? I have a remote GUI that controls some Arduino hardware. I would like the hardware to send a status message when the remote GUI connects so that the user get the true state of the device.

Any ideas?

Thanks in advance...

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: Arduino Uno - Serial Connect

Post by adafruit_support_bill »

The UNO will reset when a connection is opened on the other end.

On the Leonardo, and other 32U4 based processors, it will not automatically reset. But you can detect when the port is opened on the other end. Unfortunately, the Leonardo itself has been discontinued, but there is the Seeeduino Lite, as well as our Feathers, Floras and Circuit Playground boards.

https://www.adafruit.com/product/3228
https://www.adafruit.com/product/2771
https://www.adafruit.com/product/3000
https://www.adafruit.com/product/659

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”