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...
Arduino Uno - Serial Connect
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: Arduino Uno - Serial Connect
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
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
Please be positive and constructive with your questions and comments.