connecting mac ports to Processing

Hi,

I'm a week new to arduino and have what might seem like an extremely simple question to you all.

I am doing a tutorial where i'm transmitting information from arduino to the Processing program and all i'm trying to do is make the potentiometer adjust a background colour.

it's set up right as reported by the serial monitor and is converting the info from the potentiometer to a 0 - 255 number.

Everything in Processing seems fine as it' creates the 500x500 box i'd like to adjust. I think Processing isn't receiving the data from the serial port ultimately.

to initialize the port i've used:

port = new Serial (this, Serial.list()[5], 9600);

As i've seen in a tutorial.

this is the only Serial.list number [5] that doesn't return an error.
In the arduino software, the port the arduino is connected to is listed as:
"/dev/cu.usbmodemfa131 (Aurduino Uno)" and so, i've tried "/dev/cu.usbmodemfa131".

Neither has been successful.
I'm using a macbook pro early 2011 and running on 0S 10.7.5.

I even tried installing the FTDI serial patch. If it worked, i'm not sure what i should be changing.

Any help would be appreciate and thanks

js

1 Like

Does the Arduino work when it is connected to the Arduino Serial Monitor ? If so the problem lies with Processing (which I am not familiar with).

What Serial Port does the Arduino IDE use to connect to the Arduino? Presumably Processing should use the same Port.

...R

Thanks for responding. Yes, the signals from arduino are received by the serial monitor. I agree, it should be the same port so, I can't figure out what the problem is in Processing. I'm very new to that software too.
Is there any other software I can use to have communication btween arduino and my cpu?

again, thanks for taking the time to respond.

Someone will probably come along with advice about Processing ...

I use Python and this Python demo may be useful. I think it should work on a Mac if you edit it to put in the correct port reference.

I also wrote a simple Python GUI demo that allows you to select the port. I can't remember if anyone tried it on a Mac - it may be mentioned in the Thread.

...R

1 Like

thanks so much. I'll give it a try tonight and see.

I'll report back.