I have successfully been able to turn the motors through the code pasted (found online). I am trying to adapt the code for a speed control, but it seems that the speed only goes to 100%, I have tried to create incriments and set mymotor.setW(30) and the motor does not spin, it only works at mymotor.setW(40).
I want to make the motors increase incrementally like with the DC motor:
cmd = raw_input("Command, f/r 0..9, E.g. f5 :")
direction = cmd
if direction == "f":
speed = int(cmd) * 11