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).
link to download the code: https://www.dropbox.com/s/u1tqdxkkh6mkk4a/motor_test.py?dl=0 https://www.dropbox.com/s/9ljbbxrvzshus25/motor.py?dl=0
I want to make the motors increase incrementally like with the DC motor:
clockwise()
while True:
cmd = raw_input("Command, f/r 0..9, E.g. f5 :")
direction = cmd[0]
if direction == "f":
clockwise()
else:
counter_clockwise()
speed = int(cmd[1]) * 11
set("duty", str(speed))