Serial Port communication to USB Motor

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:


I also tried to send it in an array:

ledData[0] = '#';
ledData[1] = '*'; 
ledData[2] = 'I'; 
ledData[3] = '\r';

What am i doing wrong?

Thanks for any help!

Sign In or Register to comment.