Hi. I am trying to make a linear actuator which uses a brushed dc motor and hall effect sensor for position feedback. Also for friction I have to also implement PID controller. What I'm confused about is that how will I be able to implement PID using hall effect sensor? I will be using 4 magnets (with 2 North and 2 South poles) on the screw and one latched hall sensor so every revolution gives me 2 counts.
So basically what I'm trying to do is to input the hall sensor count on the computer so that it can go to that specific count and stop the motor (Plus using PID altogether). Would really appreciate any help. I can't change this setup or motor. Any help with programming is also helpful.