Go Down

Topic: Reading Pin States/Values in Processing (Read 494 times) previous topic - next topic

justmcoyy

Sep 08, 2010, 12:06 am Last Edit: Sep 08, 2010, 12:08 am by justmcoyy Reason: 1
I've seen a few examples online on how to read pin states (high/low) or values (pots, photocells) in processing. However they don't seem to work right. I'm trying to read the analog value of an infrared receiver in processing. I can easily print the value to the serial monitor in arduino.

Can I read the value directly from the board? Or do I have to send the value to processing from arduino directly, and if so how?

PaulS

http://www.arduino.cc/playground/Interfacing/Processing
This lets you have complete control over the inputs and outputs on the Arduino, from a Processing sketch.

If this is not working for you, you need to identify what kind of Arduino you are failing to communicate with.

justmcoyy

I have tried that before, I feel very stupid but I am glad I realized what I was doing wrong. Thanks again.

Go Up