Owh, so sorry....now i understand, the timer of ur circuit need to related with the length of the motor movement until its reach the close site of the door rite..? i think maybe its make u become complicated, because u need to know the motor speed, how long the time motor will take to close and to open the door..? then u can set the timer....here u need to know the speed of your motor first.
can u show me urs schematic of ur motor driver and ur project, because still no clear about ur project. what type door that u wanna control this..?
for ur safety, u can personally email me, if u want... i just give u my email andric89FO0@yahoo.com
all the best 2 u