I’m working on a project for my computer science class that basically uses an Arduino board with an LCD as a “message board”. The large-scale goal of my project is to have a program on a computer where one can enter a message, which will then be displayed on the Arduino screen. My big sticking point at the moment is how to send a string to the device. I looked at a few different things involving sending individual bytes to Arduino, and also looked at this code which may be some way to send a string to it: http://www.progetto25zero1.com/b/tools/Arduino/
Does anyone have any experience sending strings to the Arduino board, and if so, would you be willing to share your advice for how to go about it? I may have an issue later sending these strings from an external program (not the Ardunio IDE), but the biggest issue for me at this point is just sending the strings to the device, itself.
Mitch’s links should point you in the right direction.
A common way of sending and receiving strings from the host computer to the Arduino and back is using the Arduino’s Serial library. The Serial library reads and writes a byte at a time over the connection to the computer.
The below code forms a String by appending chars received over the Serial connection:
To send the serial data — and to print out the data the Arduino prints — you can use the Serial Monitor in the Arduino IDE.