Willkommen auf unserem Seminar-Blog

Immer auf dem aktuellen Stand bleiben

Dieser Seminar-Blog befindet sich noch im Aufbau und wird in den kommenden Tagen entsprechend verfeinert.

Member Login

Lost your password?

Registration is closed

Sorry, you are not allowed to register by yourself on this site!

You must either be invited by one of our team member or request an invitation by email at viad.info {at} zhdk {dot} ch.

How to initialize the servos

import SimpleDynamixel.*;

Servo servo;
ServoViz[] servoVizList;

int baudrateBefore = 1000000; // 1mbit
//int baudrateBefore = 57600;

// see table in http://support.robotis.com/en/product/dynamixel/mx_series/mx-64.htm#Actuator_Address_04
int baudrateAfter = 1;

void setup()

// init the dynamixel library
 String serialDev = "/dev/ttyUSB0"; // linux
 servo = new Servo();
 //servo.init(this,serialDev,baudrateBefore); // 1Mbit baudrate, use processing serial
 servo.init(serialDev,baudrateBefore); // 1Mbit baudrate, use c++ serial

int[] servoList = servo.pingRange(0,20);
 println("servoList: " + Arrays.toString( servoList ));

// set all servos to the fixed baudrate
 for(int i=0;i < servoList.length;i++)
 println("Servo Id: " + servoList[i]);