Quote Originally Posted by overkill View Post
It would be better to use a pair of microswitches rather than a potentiometer - they are easier to interface and much less affected by heat and dirt. You will need to find a convenient spot to mount the switches, probably on the actuator or nearby. You arrange the switches so that the actuator switches them on at each end of it's travel.

What might be even easier to set up is three switches that indicate the positions of the wing since the up & down positions of the wing are essentially the same as the actuator's limits. The middle switch indicates the neutral position and you just need to adjust the switch positions on the bracket to fine-tune the wing position.

The switches will be connected to three digital input pins on the MCU and the software will use the switch inputs to know when the actuator is in the right position.
Thanks for the reply overkill,
I had initially thought i could go about it that way as it seemed straight forward and simple. It might be tricky to make up a mounting bracket to house the microswitches. I could have a small tab as such on the connecting rod from the actuators which as you say, trips the limit switches one by one. One difficulty is that the movement of the actuator is only 50mm so the switches would need to be mounted quite accurately.
Would anything else be required other than the limit switched and an MCU which can take 5 inputs?