Cremallera i piñón automatica

Yes it is possible, but you need to define the sensors etc you are going to use. Draw a preliminary schematic, not a frizzy picture and post that along with links to the technical info on the hardware parts. I hope you have about six weeks for this project.