2 way instructions: Arduino to PC and back again
February 14, 2013
Ahoy hoy. Back again. had a break of a week to have a play with processing, but now im BACK. i can hear the collective sigh of relief (or was it exasperation)
I have struggled to find a nice simple serial tutorial, for making processing talk to an arduino and back again (via a cable)
I am looking to do the following process:
Connect (obviously, i kind of understand the "handshake" procedure required)
Transmit a value, between 0 and 255, to the arduino.
have the arduino deal with the data, and respond that it is ready for the next value (send back a signal of some sort)
I also want to be able to send instructions from the PC, in addition to the values. ideally (in my mind) they would be in text format eg: "End" but i realise this may complicate things, so i might be better going for a single ascii character? "A" or "X"
If anyone knows of a good example, and could point me in the right direction, or summarise the sketch for both ends of the setup it would be greatly appreciated!