We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpElectronics,  Serial Library › Light LED's via Serial Port, Processing
Page Index Toggle Pages: 1
Light LED's via Serial Port, Processing (Read 1366 times)
Light LED's via Serial Port, Processing
May 15th, 2008, 3:11pm
 
Could anyone refer me to any examples of a simple Processing program or tutorial for turning LED's connected to a PC's serial port on and off.

I have an Arduino board, however do I need the Arduino board to do this?

Processing ---> PC Serial Port ----> LED's

Thanks for any help.

Tony
Re: Light LED's via Serial Port, Processing
Reply #1 - May 19th, 2008, 9:28pm
 
I seriously doubt that this would work due to the nature of serial communication.  There's only one pin for data, so there's no mapping of bits to individual pins.  No matter what data you send to the port, you'd just be strobing the data pin really fast as the serial data was sent out to the LED.

http://pinouts.ru/SerialPorts/Serial9_pinout.shtml

I know that you can address several (seven or eight I would expect) individual pins of the *parallel* port, but I've never tried that with Java.

How many LED's do you need to control?
Re: Light LED's via Serial Port, Processing
Reply #2 - May 29th, 2008, 5:54am
 
You need to do:

Processing ---> Arduino ---> LEDs

Here is a trivial example:

http://everybody.is-a-cyb.org/project/21
Page Index Toggle Pages: 1