TV lift - motor positioning and logic
Hi all,
I modified a simple up and down TV lift to also rotate (with this motor : https://a.co/d/fZlCvtd)
and tilt (with this actuator : https://a.co/d/bO2NCkS).
It works great, but unfortunately I have 3 separate RF remotes for these so use is clunky.
The lift is hidden inside a box, so when it’s time to close up I have to ensure the TV is back to the correct position and tilt before the lift goes back down.
Using Arduino and some L2989 motor drivers I would like to program the motors to do the following with one button press when it’s time to put the TV away:
press button to lower TV
-
Tilt TV to orginal position - which is to retract the tilt actuator fully.
-
if TV is not center spin motor to move TV to original center position, which will be decided by either an infrared sensor switch u have lying around,and/or the motor position eedback if it gives any (don’t think it does)
-
Check sensors again, if switch is closed, and tilt actuator is fully retracted then lower TV all the way down.
So far I have a test actuator working via a L2989 and some arduino code - just extending and retracting so far along with speed changes via PWM.
My main question: what is the best way to ensure the motor returns to the correct position (limit switch?).
Would love to hear suggestions on how to proceed on this project, I think it’s feasible and am excited to work on it. Should I replace the motor with one that offers positional feedback (I assume they exist) or continue with the turn until a switch is triggered method?
Thanks!
Videos of tv lift here: