amstel_1998
USA
Asked
— Edited
I'd like to be able to make a servo oscillate back and forth for a set number of cycles. For example, I'd like to be able to edit a script and tell it to cycle 100 times. Another time I'd like to be able to go back in and have it cycle 1000 times. Is there an easy way to do this? (NEWBIE here) -Thanks in advance!
I would also like to know - I need to have B9s antennae move back and forth.
You can make an EZ-Script
I am also a NEWBIE here
Correct me if I am wrong, but that script is a continuous cycle with no exit Wouldn't you need to have a IF-THEN-ELSE with an incremented counter for x100 cycles/loops ?
Agreed -I need to be able to specify a specific # of cycles
yeah
if(servo, d6 > 50)
ServoSpeed(d5, 3)
:Loop Servo(d5, 10) Sleep(3000) Servo(d5, 70) (enter if command here aswell to "stop it")
goto(Loop)
i think....havent been in the "lab" for a while now.
Appreciate the feedback but being a total newb I need it spelled out for me -can you post a complete functioning script that would run for 150 cycles (just picking a number to use as an example). Really appreciate the help!
Use the c# script or vb script. Here is an example i made for you. It will sweep the servo 5 times on port D5 with the speed set to 3.
I also have it setup to run from a voice command. Or from an EZ-Script command.
Right Click Save As: SweepServoExample.EZB
And here is a copy of the code from the c# script control