AppleScript serial communication with arduino

Hello All,

I'm trying to write a script on AppleScript that monitors the serial port and when it receives certain characters from Arduino places a call on Skype, or sends a message.

Communicating with Skype on AppleScript is pretty straightforward but I haven't figured out how to make AppleScript send and receive characters via serial port.

Anybody can give me a hand?

Thanks a lot!
Melissa

This will trigger applescripts based on serial output from arduino

http://www.tinker.it/files/asproxy02.dmg

it would also be possible to do it in max with the taptools extras that include an applescript external.

HTH

Hi-

I've used SerialPort X with much success:
http://mysite.verizon.net/vzenuoqe/MacSoft.html

Hi,

I used SerialPortX and it worked great!
Very straightforward too!

Thanks a lot! :slight_smile:

Hello, I am a newbie, and I am trying to interface Arduino with AppleScript.

I am using SerialPortX for the connection.
At this point I can easily connect to the board, and can send and receive from AppleScript.
The problem is that, like in the Arduino Serial Monitor, all data are sent to Arduino as ascii characters.
I was wondering if someone knew how to send raw bytes (or integers?) instead of ascii characters.
In that way the communication will have 256 possible values with only one byte, and it will be really easy to control PWM pins.

If I am asking something stupid, and there is a better way to do this, please give me some informations!
Thank you for the help.

can somebody post an example on how to recieve serial data from the arduino. i am sending a "1" over serial every time a button is pressed.

using serialport x and applescript kinda pisses me of. i am really not used to this syntax.

a oneliner on how to recieve and print the read data would be really helpfull.

thanks in advance!