how to send input values from host computer to arduino,such that speficing the number of rotations for a stepper motor etc
put on hold as too broad by Ignacio Vazquez-Abrams, Gerben, BrettAM, LoganBlades, Annonomus Penguin♦ yesterdayThere are either too many possible answers, or good answers would be too long for this format. Please add details to narrow the answer set or to isolate an issue that can be answered in a few paragraphs. If this question can be reworded to fit the rules in the help center, please edit the question. |
|||||
|
The easiest method is to use the serial communication. Use the sample code at http://arduino.cc/en/Tutorial/SwitchCase2, upload that to an Arduino, start the serial monitor (Ctrl+Shift+M), make sure the baud rate is the same as set in the code (9600 in this case), then write the commands and send them to the Arduino. Edit
Since the serial characters are usually read one by one you need a character that will signal the end of the string. This is usually a newline Sample code (
|
|||||||||||||
|