I am working on prototyping the automation of my chicken coop. One of the functions will be to open the swing gate for the run and open it to our back yard. The functioning of the actuator looks pretty simple and it has a positioning sensor built into it with a input back to my arduino.
https://www.servocity.com/html/180_lbs__thrust_linear_actuato.html#.VwgNHKQrKUk
The question that I have is I want to add a safety feature so that if something is blocking the gate and the gate hits it, then it will reverse itself and either open or close based on the action that it was currently performing. Does anyone have a code sample or would know how to do this. I have not ordered my actuator yet, so I can't just play with it to figure it out.
Thanks,
Don