I'm trying to build a controller for an electric motor that will open and close a door.
Originally, I was going to use limit switches to allow the motor to run until the limit is reached, or the door is fully open, like how some garage door openers works This seems difficult to do with the door setup I am working with, so I was wondering if there was another way to basically allow the user to 'record' the time that the motor runs to open the door, and then record the amount of time the motor runs in reverse to close the door. Then the user could push one button for open, and it would 'play back' this recorded open run time. And the same push button operation to close the door.
Is there an analog IC that can do this sort of recall/playback functionality, or would this have to be done with a microcontroller?
Any input would be great.