I am making an elevator controlled by a raspberry pi zero and driven by a stepper motor. I have managed to get the engine working using a python script and an MPC28017 pin expander (i2c protocol).
This is the script: https://gist.github.com/aitormendez/7797a6bc52e6f20c27abcad241225c9a
The script working: https://youtu.be/tuPRvOaolGY
And this is the elevator:
So far everything has gone well, but I have been stuck in the planning and construction of the mechanical part coupled to the engine and I need help and advice on it.
There are two problems to solve. The first is what and how it is attached to the motor shaft. The motor shaft (5mm diameter) does not have a gear attached and I cannot find one on the market with a 5mm hole. What options are there? How is it usually done?
The second problem is that the motor, although it seems quite accurate, turns very slowly so I will need more gears with the same tooth size to build a throttle.
In short, what elements are necessary to be able to transmit the force of the motor to a pulley.
Thank you so much.