Please can you help
i am trying to use this to open doors on a project i am doing.
I am using 9 servos at the moment ,0-7 open the doors in pairs and servo 8 opens a roller shutter.
What i wanted to happen is the top buttons open the doors and the bottom close them.all at a nice slow speed.
when i did the script i found the speed that it moved was fine, but then found that when i get to servo 7-8-9-10-11 they snap to position not a slow move.
i will later be using all 12 ways
i saw on the Forum that you can use this in the code to control the accel and speed.
RunWait usccmd --accel 0`,12,,Hide
RunWait usccmd --speed 0`,12,,Hide
Run usccmd --servo 0`,7500,,Hide
return
But i cannot get this to make any difference on the code i have done when i inserted it.
my code is with out the first code added
Gui, Add, Button, x50 y50 w120 h70 , DOOR1
Gui, Add, Button, x50 y130 w120 h70 ,DOOR
Gui, Add, Button, x200 y50 w120 h70 , DOOR2
Gui, Add, Button, x200 y130 w120 h70 ,DOOR2/CLOSED
Gui, Add, Button, x350 y50 w120 h70 , DOOR3
Gui, Add, Button, x350 y130 w120 h70 ,DOOR3/CLOSED
Gui, Add, Button, x500 y50 w120 h70 , DOOR4
Gui, Add, Button, x500 y130 w120 h70 ,DOOR4/CLOSED
Gui, Add, Button, x650 y50 w120 h70 , ROLLER
Gui, Add, Button, x650 y130 w120 h70 ,ROLLER/CLOSED
Gui, Show, x337 y140 h250 w820, New GUI Window
Return
buttonDOOR1:
Gui, Submit
RunWait usccmd --servo 0`,4000,,Hide
RunWait usccmd --servo 1`,4000,,Hide
Gui, Show,, New GUI Window
return
buttonDOOR2:
Gui, Submit
RunWait usccmd --servo 2`,4000,,Hide
RunWait usccmd --servo 3`,4000,,Hide
Gui, Show,, New GUI Window
return
buttonDOOR3:
Gui, Submit
RunWait usccmd --servo 4`,4000,,Hide
RunWait usccmd --servo 5`,4000,,Hide
Gui, Show,, New GUI Window
return
buttonDOOR4:
Gui, Submit
Runwait usccmd --servo 6`,4000,,Hide
Runwait usccmd --servo 7`,4000,,Hide
Gui, Show,, New GUI Window
return
buttonROLLER:
Gui, Submit
Run usccmd --servo 8`,4000,,Hide
Gui, Show,, New GUI Window
return
buttonDOOR:
Gui, Submit
RunWait usccmd --servo 0`,6000,,Hide
RunWait usccmd --servo 1`,6000,,Hide
Gui, Show,, New GUI Window
return
buttonDOOR2/CLOSED:
Gui, Submit
RunWait usccmd --servo 2`,6000,,Hide
RunWait usccmd --servo 3`,6000,,Hide
Gui, Show,, New GUI Window
return
buttonDOOR3/CLOSED:
Gui, Submit
RunWait usccmd --servo 4`,6000,,Hide
RunWait usccmd --servo 5`,6000,,Hide
Gui, Show,, New GUI Window
return
buttonDOOR4/CLOSED:
Gui, Submit
RunWait usccmd --servo 6`,6000,,Hide
RunWait usccmd --servo 7`,6000,,Hide
Gui, Show,, New GUI Window
return
buttonROLLER/CLOSED:
Gui, Submit
Run usccmd --servo 8`,6000,,Hide
Gui, Show,, New GUI Window
return
GuiClose:
ExitApp
and with the extra code i got
Gui, Add, Button, x50 y50 w120 h70 , DOOR1
Gui, Add, Button, x50 y130 w120 h70 ,DOOR
Gui, Add, Button, x200 y50 w120 h70 , DOOR2
Gui, Add, Button, x200 y130 w120 h70 ,DOOR2/CLOSED
Gui, Add, Button, x350 y50 w120 h70 , DOOR3
Gui, Add, Button, x350 y130 w120 h70 ,DOOR3/CLOSED
Gui, Add, Button, x500 y50 w120 h70 , DOOR4
Gui, Add, Button, x500 y130 w120 h70 ,DOOR4/CLOSED
Gui, Add, Button, x650 y50 w120 h70 , ROLLER
Gui, Add, Button, x650 y130 w120 h70 ,ROLLER/CLOSED
Gui, Show, x337 y140 h250 w820, New GUI Window
Return
buttonDOOR1:
Gui, Submit
RunWait usccmd --accel 0`,12,,Hide
RunWait usccmd --speed 0`,12,,Hide
Run usccmd --servo 0`,4000,,Hide
Run usccmd --servo 1`,4000,,Hide
Gui, Show,, New GUI Window
return
buttonDOOR2:
Gui, Submit
RunWait usccmd --accel 0`,12,,Hide
RunWait usccmd --speed 0`,12,,Hide
Run usccmd --servo 2`,4000,,Hide
Run usccmd --servo 3`,4000,,Hide
Gui, Show,, New GUI Window
return
buttonDOOR3:
Gui, Submit
RunWait usccmd --accel 0`,12,,Hide
RunWait usccmd --speed 0`,12,,Hide
Run usccmd --servo 4`,4000,,Hide
Run usccmd --servo 5`,4000,,Hide
Gui, Show,, New GUI Window
return
buttonDOOR4:
Gui, Submit
RunWait usccmd --accel 1`,12,,Hide
RunWait usccmd --speed 4`,12,,Hide
Run usccmd --servo 6`,4000,,Hide
Run usccmd --servo 7`,4000,,Hide
Gui, Show,, New GUI Window
return
buttonROLLER:
Gui, Submit
RunWait usccmd --accel 0`,12,,Hide
RunWait usccmd --speed 0`,12,,Hide
Run usccmd --servo 8`,4000,,Hide
Gui, Show,, New GUI Window
return
buttonDOOR:
Gui, Submit
RunWait usccmd --accel 0`,12,,Hide
RunWait usccmd --speed 0`,12,,Hide
Run usccmd --servo 0`,6000,,Hide
Run usccmd --servo 1`,6000,,Hide
Gui, Show,, New GUI Window
return
buttonDOOR2/CLOSED:
Gui, Submit
RunWait usccmd --accel 0`,12,,Hide
RunWait usccmd --speed 0`,12,,Hide
Run usccmd --servo 2`,6000,,Hide
Run usccmd --servo 3`,6000,,Hide
Gui, Show,, New GUI Window
return
buttonDOOR3/CLOSED:
Gui, Submit
RunWait usccmd --accel 0`,12,,Hide
RunWait usccmd --speed 0`,12,,Hide
Run usccmd --servo 4`,6000,,Hide
Run usccmd --servo 5`,6000,,Hide
Gui, Show,, New GUI Window
return
buttonDOOR4/CLOSED:
Gui, Submit
RunWait usccmd --accel 1`,12,,Hide
RunWait usccmd --speed 4`,12,,Hide
Run usccmd --servo 6`,6000,,Hide
Run usccmd --servo 7`,6000,,Hide
Gui, Show,, New GUI Window
return
buttonROLLER/CLOSED:
RunWait usccmd --accel 0`,12,,Hide
RunWait usccmd --speed 0`,12,,Hide
Run usccmd --servo 8`,6000,,Hide
Gui, Show,, New GUI Window
return
GuiClose:
ExitApp
(you will see that on door 4 i put an accel as 1 and a speed as 4 as this is the speed i used on Maestro control center)
but when i run this it makes no diffrence to the speed, 0-6 run slow ish 7-8-9-10-11 snap and i now get a uscCmd has stoped working pop up
any help in how i can including speed and accel on all sevos would be great.
many thanks
Mason