Physical Pixel using Arduino

Physical Pixel

This example example uses the Arduino board to receive data from the computer. The Arduino boards turns on an LED when it receives the character ‘H’, and turns off the LED when it receives the character ‘L’.

Physical Pixel

The data can be sent from the Arduino serial monitor, or another program like Processing (see code below), Flash (via a serial-net proxy), PD, or Max/MSP.

Software Required

Circuit

Attach an LED to pin 13. The long leg, or anode, goes to pin 13. The short leg, or cathode, goes to ground. You can also use the built-in LED on most Arduino boards.

image developed using Fritzing. For more circuit examples, see the Fritzing project page

Schematic

Physical Pixel using Arduino schematic (1)

Code

/*
Physical Pixel
An example of using the Arduino board to receive data from the
computer.  In this case, the Arduino boards turns on an LED when
it receives the character ‘H’, and turns off the LED when it
receives the character ‘L’.
The data can be sent from the Arduino serial monitor, or another
program like Processing (see code below), Flash (via a serial-net
proxy), PD, or Max/MSP.
The circuit:
* LED connected from digital pin 13 to ground
created 2006
by David A. Mellis
modified 30 Aug 2011
by Tom Igoe and Scott Fitzgerald
This example code is in the public domain.
http://www.arduino.cc/en/Tutorial/PhysicalPixel
*/

Leave a Comment

Your email address will not be published. Required fields are marked *