I haven’t actually printed the model I posted on this thread, but I printed a previous version which was used on a smaller motor. This was not powerful enough to turn the key, only 5.6kg/cm.
The print was really good and stable, but a friend of mine helped me make a wooden one so instead of printing the one I posted, I used the wooden one.
This new version checks works with doors that use latch. It opens the door with the latch and after 5 seconds it gets restored. I am using an external device connected with a magnetic sensor which checks when the door closes. In that case it locks all the way.
Hola me ha encantado tu proyecto y es justo lo que estaba buscando creo que solo tengo una duda que voltaje tiene que ser el motor ya que me estoy haciendo una lista de los componentes para comprarlos.
hi, I don’t understand Spanish, but with google translate I got it.
The voltage of the motor and the RPM don’t matter, as long as it has the necessary torque to turn the key.
The more RPM you have, the faster the lock will be and lower the RPM.
mi duda es sobre como alimento el motor ya que el esp32 creo que funciona con 5v?
si me puedes ayudar ya que tengo la impresora 3d y me gustaria mucho poder hacerlo gracias y perdona no poder hablar en ingles
el L9110S es alimentado por el esp32? me podria decir cual es su motor y comprare el mismo ?gracias
I don’t think that you can find a motor with 5v that is powerful enough to turn the key. If you see the diagram, the red and purple wires are 9v-24v based on the requirements of your motor. The motor is powered through the L9110S driver which is controlled by ESP32.
Thanks a lot for your answer…
From your 3d project I don’t understand where you positioning the esp32s etc ect components. Is it possible to attach a real photo to understant the components location?
There is no place on the 3D print for the components because I don’t have it near the lock.
I’ve extended the cables around the door and I have them installed on a box on the wall.
I no longer use this lock so I can’t show you pictures. I am using another type of lock: Smart Lock with Gears
@bkbilly how does esp home check if the key cant turn further? Its not clear to me from the yaml code… building my own smart lock right now and found your post… thank you!
Oh ok, so this feature is not included (as you have written) that it stops when the key cannot turn any further? Or do I get it wrong somehow? I try to archive the same at the moment…
I couldn’t remember exactly how it works because it’s almost 3 years that I last used this.
By investigating the configuration further, I figured it out.
The rotary_encoder triggers the script stop_at_the_end, but it waits for 200ms.
This is done on any change on the encoder value which restarts the script, so it won’t continue with turning of the rotation of the motor.
Once the encoder stops getting new values, the script will have the time (200 milliseconds) to continue and stop the movement of the motor.
I don’t use this anymore because it is quite bulky and doesn’t look so nice, but mostly because the motor is using a lot of gears to have more torque which makes it impossible to turn the key from the other side.
I replaced it with this which is using a stepper motor with 3D printed gears and I’ve been using it for about 3 years and it works perfectly.
Either smart lock you use should run without issues for years, but you need to have a good power supply.