Wednesday, November 26, 2008

Arduino Processing communication

Communication between Arduino and Processing
This post is aimed at giving an example for communication between Arduino and Processing using the bundled Serial Library for both packages.

In this example, LEDs are connected to pins 2-9 of the Arduino board, and Processing control it through sending ASCII code of number 2-9 (Relative ASCII code 50 to 57).

Arduino Code

Processing Code



No comments: