I have done my sequence,transfer the script to the board(I want it āstand aloneā), I know how to do the button wiring and input mode on the board but I donāt know how to modify the script to have a push button to start(always from the beginning) and stop the script,could you help me pleas ?
You can find an example of how to incorporate buttons into your Maestro script under the āExample Scriptsā section of the Maestro userās guide. However, it sounds like you want to be able to start and stop your script at any point, which is probably going to be complex to do with a script. It might just be easier to add something like our Pushbutton Power Switch SV to toggle power to the logic side of the Maestro on and off.
thank a lot for your input,I have already seen the example scripts section but did not find how to make start script from a buttonā¦and which command to use for thatā¦
so, to stop it any time, I will use a power switch on the servos power line(I have one continuous rotating servo that can cause memory effect/trouble when controller board powered off ) but I still need a start button,anybody can write me this script pleas?
Switching off servo power while maintaining power to the Maestro would not stop your script from running. It would also not allow you to start from the beginning of your script as soon as you switch power back on to the servos. As I mentioned earlier, adding a pushbutton to start and stop your script like that might not be trivial; it depends on the specific details of your script. If you post your script, and tell me what it is you are trying to do, I might be able to help you think of a good solution.
I use the āOn start up -go to-ā function under Channel setting panel to initialise servoās at a desired position when all is powered on so I just need a start script button(always from the beginning of the script => my āstop buttonā is the power button(or maybe the RST pin on the board,I will seeā¦),each script stooped must be restart from beginning)
You might consider adding an SPDT switch like one of these to your setup. This would allow you to set up two states that the pin can be in, depending on which side of the switch the contact is on. You could then use while loops in between the subroutines of your script to check the state of the Maestro input pin connected to the switch.