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.
Bookmarks