Pages: [1]   Go Down
Author Topic: Reading Pin States/Values in Processing  (Read 464 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 24
launch.d
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
« Last Edit: September 07, 2010, 05:08:37 pm by justmcoyy » Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 642
Posts: 50362
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 24
launch.d
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Pages: [1]   Go Up
Jump to: