We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I want to send a command to a USB controlled motor. I managed to get it work in Terminal (OS X) but in Processing I can't figure out the right way to send it.
In Terminal I can send the commands to the motor via the screen command (os x)
screen /dev/tty.SLAB_USBtoUART 115200
Then i can type the commands. For example: #*A And the motor works.
I tried to use:
port.write('#*A');
I also tried to send it in an array:
ledData[0] = '#';
ledData[1] = '*';
ledData[2] = 'I';
ledData[3] = '\r';
ledSerial[0].write(ledData);
What am i doing wrong?
Thanks for any help!