Hello.
I suggest starting with a manual button press to start the cycle, then adding the signal from your scale once you get that working.
To add a button to your Maestro, you will first need to decide what channel to use for the button and configure that channel as an Input in the “Channel Settings” tab of the Maestro Control Center. Then, you can connect the button to that channel with a pull-up resistor as shown in the “Attaching Servos and Peripherals” section of the Maestro user’s guide. Once the button is working (i.e. you can see the value of that channel change correctly in the “Status” tab of the Maestro Control Center when you press the button) you can add code to start your script from that. You can find sample code showing how to handle starting your script with a button press in this post.
As far as starting the script from your 24V signal, please note that the Maestro cannot handle a 24V input, so you would need to convert it to a 5V signal first. You can do that with a simple voltage divider or an appropriate logic level shifter. Once your 24V signal is converted to 5V, you can essentially treat it as a button and connect it to a separate Maestro channel configured as an input… However, please note that the logic might be inverted when compared to the button. If you get to this point and need help updating your script to start when either signal is triggered, please post an updated version of your script, and I would be glad to take a look. Essentially, it will probably involve reading the button and scale inputs, checking if they are low or high, then using a LOGICAL_OR command so either one will cause the script to move on.
Brandon
