how to control arduino from processing. NEED HELP!!!

hi all,
as i have holidays,
i really need help for control my arduino from processing. :cold_sweat:
i cant find examples on this site or on other sites, :fearful:
so what am i trying to do is to control pin 13 on the arduino via a button from processing, :open_mouth:
so if u will be able to put code, i would be able to understand the code and do other projects,
:grin:

i cant find examples

Not trying too hard, then. Processing comes with several examples that communicate with the Arduino.

well, i wasted a whole day for that without finding any examples for that,
perhaps, if u could help me?

I'm using Processing 1.5.1. I selected File + Examples. A dialog appears. Scroll down to the Libraries section. There is a Serial I/O record with a + in front of it. Click on the + and there are 5 sample programs to open. They do various things. Try them all, and choose the one that is most like what you want to do as a starting point.

http://www.processing.org/learning/gettingstarted/
This would be a good place to begin. agree PaulS?

I believe this project also uses processing to Arduino communication:
http://spill.tanagram.com/2010/11/24/diy-thermal-imaging-system-for-under-200/

oh wow, nothing worked

oh wow, nothing worked

What did you load on the Arduino? What Processing sketch did you run?

i copied and pasted the arduino code listed in processing sketches to arduino software,

i uploaded the code,

i run the processing skethes,

nothing is working but they could communicate each other

i tried that for all 5 serial I/O sketches

When your Arduino is connected, how many serial ports are in the list? When mine is connected, there are always at least two. The Arduino is never connected to the first port in the list. The Processing examples assume that it is.

i hace three COM
COM1
COM3
COM4,

COM 1 us the communication port,
COM 4 is the arduino port,
COM 3, i have no idea.

but still, should i configure processing to make it COM1 for comunication, or is it already done?

By default, Processing uses the first port in the list. In your case, Processing is trying to talk to the Arduino on COM1. Your Arduino is not connected to COM1. If your Arduino is connected to the 3rd port in the list, change the value in the brackets, following Serial.list[], from 0 to 2.

it finally worked :smiley: :smiley: :smiley:
i only had to configure that thisPort was COM4,
thanks guys for helping me :stuck_out_tongue_closed_eyes: