AppleScript to arduino


so have small project working on , need basic commands arduino. each command 1 character long. test have application turns on led if "l" character recieved. tryed serial monitor - wroks.

but want turn led on applescript. found serialport x (applescript extension should enable serial communication). can open port arduino. can't figure out how turn led on it. if
code: [select]
serialport write "l" portref
that should send l character arduino , turn on led - doesn't. see serial rx/tx leds blink on arduino , led blinks - doesn't stay on (it should stay on). why isn't working?

edit: above script works if arduino ide in "serial monitor" mode. if arduino software isn't working thing wont work.

edit2: tryed code:
http://todbot.com/blog/2006/12/06/arduino-serial-c-code-to-talk-to-arduino/
and results same. thing works if arduino ide in "serial monitoring" if isn't led blinks when press enter.

what happens if try send apple script serveral times fast 1 after other ?  do see 1 blink or serveral ?

maybee happens resets arduino board right after turns led on.


Arduino Forum > Forum 2005-2010 (read only) > Software > Interfacing > AppleScript to arduino


arduino

Comments

Popular posts from this blog

CAN'T INSTALL MAMBELFISH 1.5 FROM DIRECTORY - Joomla! Forum - community, help and support

error: expected initializer before 'void'

CPU load monitoring using GPIO and leds - Raspberry Pi Forums