|
You have to google for the ArduinoSMS library, which is the arduino code allowing the board to keep on listening through the serial port. Then you upload it on your board via Arduino app. The GUI is really easy. Check your board type and the serial address.
Once the library is loaded, once you have your arduino plugged into the serial, it waits for your command. You forget arduino code and work in SC. Works for all I/O ports
Best
-a- On 10 May 2009, at 01:19, rags música wrote: Thank you Andrea, but sorry for my ignorance, Should I do some coding for Arduino too? And, does it only work in the PWM ports?
R
2009/5/10 Andrea Valle <valle@xxxxxxxxxxx> On 10 May 2009, at 00:56, rags música wrote: Hi list,
I am really lost trying to use Arduino. I want to control the intensity of a led from SC, lets say from a fader.
p = ArduinoSMS("/dev/tty.usbserial-A6008aL8", 115200); // was 9600 (changed by thor)
p.send($w, $a, port, value)
where port is the PWM port you want (there are six: 3,5,6,9,10,11) and value an int in [0,255] for your led Also, What is the second argument 11520 in the code below?
data transfer rate of the serial. Keep it high as it is, it works in my experience
Best
-a-
p = ArduinoSMS("/dev/tty.usbserial-A6008aL8", 115200); // was 9600 (changed by thor)
Thanks, R -------------------------------------------------- Andrea Valle -------------------------------------------------- CIRMA - DAMS Università degli Studi di Torino -------------------------------------------------- " This is a very complicated case, Maude. You know, a lotta ins, a lotta outs, a lotta what-have-yous." (Jeffrey 'The Dude' Lebowski) -------------------------------------------------- Andrea Valle -------------------------------------------------- CIRMA - DAMS Università degli Studi di Torino -------------------------------------------------- " This is a very complicated case, Maude. You know, a lotta ins, a lotta outs, a lotta what-have-yous." (Jeffrey 'The Dude' Lebowski) |