Bloody hell, it actually works.
Need to add the magnets/hall sensors - edit: added one for opening, works well.
Change the open/shut duration,
Support the upright better,
Possibly switch the side of the motor because it is slower in one direction compared to the other. I'd rather the closing direction be slower and more controlled.
Add some flyback diodes.
EDITED: 5 Sep 2015 20:23 by ANT_THOMAS