Hello everyone,
I have a question related to the use of a single servo attached to a mini maestro 18 board. I’m using a very simple script (attached below) to cycle the servo between two positions. You can see via the script that the servo travels quickly with a short duration in one direction and moves with much slower speed and longer duration in the other direction.
When the servo is moving only in the direction of slow speed and long duration I need to create a secondary continuous output pulse (that would trigger another piece of electronics). However again this continuous output pulse should only be created during the time frame when the servo is moving in the one direction with slow speed and long duration. This continuous output pulse signal could be almost anything that could be created by the board. My main concern creating this pulse during this specific component of the motion / code. I’m new to using the maestro products, so please forgive my ignorance.
Could you trigger your other electronics with a basic digital high vs low signal? If so, you can configure one of your Maestro channels as a digital output then use the servo command in your Maestro script to drive it low (by using an argument somewhere between 0 and 5999) and high (by using an argument somewhere between 6000 and 32767) at the appropriate points.
Hi Patrick,
Thanks for the reply – yep, I should be able to use a digital high or low signal. Just to confirm, can this signal be associated with a single directional command in the script (e.g. in my example, it only goes high or low when the servo moves in the ‘slow’ direction?). I’m guessing the signal might be high in one direction and low in the other which would be totally fine.
Would it be possible for you to share some script code that could be used to achieve this? Maybe just build upon my simple script inserted in my previous post.
This is my first use of the Maestro. Could you please forward a bit of code that ties the specific motion of the servo to the high or low pulse. For example to get a high signal when then servo moves in the “slow” direction via the code below? This maybe very basic, but want to ensure I can tie the pulse to the specific motion in the code.
Remember, you have to configure the channel as a digital output in the Maestro Control Center under the “Channel Settings” tab for this to work correctly.