does anybody get the Mindsensors 8 Channel Servocontroller to work with the BrickPi and Python?
Basically the documentation (http://www.mindsensors.com/index.php?module=documents&JAS_DocumentManager_op=downloadFile&JAS_File_id=1263)
says that if you want to set the servo 1 to 2000, you need to set the register 0x5A to 1/10 of that value, which would be 200. I think at this point my biggest problem is, that Iam not experienced in how to use the I2C function of the BrickPi Api.
This is what i did:
BrickPi.SensorType[PORT_1] = TYPE_SENSOR_I2C BrickPi.SensorI2CSpeed[PORT_1] = 0 BrickPi.SensorI2CDevices[PORT_1] = 1 BrickPi.SensorI2CAddr[PORT_1] = 0x5A # the register for the first servo BrickPi.SensorSettings[I2C_PORT][I2C_DEVICE] = BIT_I2C_SAME BrickPi.SensorI2CWrite[I2C_PORT][I2C_DEVICE] = 1 # write one byte BrickPi.SensorI2CRead[I2C_PORT][I2C_DEVICE] = 0 # dont read anything BrickPi.SensorI2COut[I2C_PORT][I2C_DEVICE] = 200 # send the 200 to the buffer BrickPiUpdateValues() # send everything to the BrickPi
The Programm does not throw exceptions, but there is no response from the servos at all.