Go Down

Topic: click from keyboard that stop arduino send data (Read 338 times) previous topic - next topic

adiqais

Dear all I would like to press a keyboard to begin sending a data from Arduino such as S for start, also I would like to stop sending data from Arduino such as E for end and also I click on s again I ll start over

thank you

PaulS

You need an application on the PC that monitors keystrokes, and sends them to the serial port that the Arduino is listening to.

On the Arduino end, it reads the serial port (Serial.available() and Serial.read()) to determine what to do, and Serial.print() and Serial.println() to send data to the serial port.

UKHeliBob

Have you got any code written that sends data from the Arduino that you would like to control ?  How is the data being sent ?  Serial, ethernet, wireless, IR or what ?
Please do not send me PMs asking for help.  Post in the forum then everyone will benefit from seeing the questions and answers.

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy