Depends on the motor (generally: permanent magnets, no. electromagnets, yes), but probably easier just to use a linkage to reverse direction. That way for half the time the door is opening and half the time it's closing, but the motor runs constantly in the same direction.
The motor will fail, and you will be trapped up there, your muffled shouts drowned out by the tv and traffic.
After a week of missing posters on shop windows and telephone poles, and cops scouring the neighborhood, it will be assumed you ran off, or just got offed.
Years later, your dried husk will be found with broken fingernails and deep scratches in the hatch, after your family moves away.
Or, you can stop right now.
I still don't understand :((
So let's say I was to apply a voltage to the relevant wires it wouldn't turn 360 deg continuously? It would go, say, 180 deg and back again?
I just want a simple motor I can turn 360 for a set amount of time, then -360 deg.
Also, my hall effect sensors arrived, but I forgot to order magnets. I've had so much stuff from China arrive in less than 2 weeks recently. One item in 7 days too.
I think I'll fit an emergency axe in the attic.
It's done like that because rapidly switching the direction on a motor (like windscreen wipers would have to) is really not nice for the motor, especially when there's a biggish load on the motor.
Makes total sense, and I quite like that video. I could probably get one for a fiver at the scrap yard or 7 quid buy it now on ebay. I think I'll buy one and have a play.
Worst case scenario you have a relatively small, relatively high torque motor. That'll definitely find itself another use if it's not suitable for the door thing.
Discovered you can make a H Bridge using two relays. I happen to have a 2xRelay module which is now working as a H Bridge. Really really simple to use. If the relays are the same (high/low) the motor would be off. Set one relay high to turn the motor, swap which is high to change direction.
Eg
L/L & H/H - Off
L/H - Forward
H/L - Backwards