Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1 rotation from stepper motor needed #82

Open
KoenVoortman opened this issue Sep 24, 2024 · 5 comments
Open

1 rotation from stepper motor needed #82

KoenVoortman opened this issue Sep 24, 2024 · 5 comments

Comments

@KoenVoortman
Copy link

KoenVoortman commented Sep 24, 2024

Hi, noob/novice MQTT and Arduino user here.

I have a Homebridge installation with an embedded MQTT broker (Aedes) and a Mqttthing plugin for devices.
That part is working, and I have connection with my NodeMCU and I can control the stepper motor.

I'm in the Netherlands and have Veneta 50mm horizontal/venetian blinds.
I've re-designed a housing for the stepper motor, driver, NodeMCU and power converter, that will fit in the blinds housing, see pictures below.

My problem is: the full open to closed is 1 rotation of the hexagon axis in the blinds housing.
Currently the motor rotates 4 times.

How/where do I adjust settings in the code, so the stepper motor will only rotate 1 time (1x 360 degrees) when I send a 0<->100 command?
I've played with the settings in the Arduino code, and there are limited options in the MQTT code in Homebridge.

I hope somebody can help!

IMG_1422
IMG_1423

@Sander1978-dev
Copy link

Hi Koen, I am currently printing it for the Veneta blinds (60mm) to see if it fits, can you share your STL please? That way I can see if it fits for me and I can try to reproduce it and fix it for you

@KoenVoortman
Copy link
Author

Hi Sander,

This is the most recent version. The holes are for "cooling" and routing wires internally.

I'm curious if you can fix it! Thanks!

Image

HorizontalBlindsMotorHousing_KVO_v7.stl.zip

@Sander1978-dev
Copy link

Thank you, I just started printing it and will look at the code. I have also found this discussion (in Dutch) https://gathering.tweakers.net/forum/list_messages/2207606

with the corresponding github: https://github.com/Hordica/ESPHome-smart-shutter-tilt

However, that 3D model is for the old Veneta blinds and it uses microswitches to detect begin and end. That way it wont rotate further then needed. So the code and microswitches could be useful.

I have that code and hardware connected, however no 3D model for it yet. I will try to see if I can get best from both worlds and will respond here when I got it working.

@Sander1978-dev
Copy link

Hi Koen, I have looked at the code and have you tried modifying the line
position_closed: 12 to position_closed: 3

I devided it by 4 since you say it does 4 rotations.

Your mod fits perfectly in my veneta 60mm blinds, however I have used a 5V stepper motor from the project I mentioned above instead of this project mentioning a 12V stepper motor. The 5V stepper motor doesnt have the power to turn the axis.

@KoenVoortman
Copy link
Author

Hi Sander, yes I think I’ve tried.
Several settings actually.
Will try again in a few weeks maybe. Kinda busy now.

Good to hear the housing fits in your Veneta also!
I’ve gone through some versions ;)
This was V1 through 5 😊
Made some minor adjustments after those.

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants