So summer is here and even if it’s nice with the sun it’s messing with my GOT on the TV so ofc. I want to automate my blinds!
I’ve ordered all the parts for this project https://www.thingiverse.com/thing:2392856 and printed the rest. it uses a 28BYJ-48 stepper motor + ULN2003 driver board and I could just use the .ino file that he includes in the project but I rather use ESPHome so that I can hook up some sensors etc to the same ESP!
I found the instructions for using the ULN2003 driver with ESPhome but how can I set the min/max positions unless I want to use sensors for that? In his software he has some options to set start and stop positions, is that possible in ESPHome?`
I don’t think you can make a web server to do the calibration like that on esphome. But you could certainly manually raise and lower the blind to the min and max position, then set that in your YAML as the min and max positions.
Hi
Did you find the yaml file for your blinds if so would you be able to share it I need help I would be much appreciated I have tried doing it on esp home but motor just gets hot and don’t move thanks nathan
Welcome to the forum @Nmcknight20!
And no, I actually talked to the creator of the thingiverse file and he told me I would get the same problem as you.
his message to me was: "I can warn you that if you are going to use the standard components in ESPHome you will have to cut the power to the steppermotor after you stop it… otherwise it will get to hot and give up in the end. Create a custom component in esphome instead so you can run it to the start and stop position and then cut the power to the coils in the motor."
I have been playing with this for a long time and yesterday i finally figured it out how to get it working.
The only issue i have is that it does not always counts the steps perfect so it changes the start and stop position a little bit.
I have also working on another design for the mounts so it is direct drive and not using gears but i needed to have a 9VDC power supply.
I am sill changing things in the design will post when i am happy with it.
@gijsje
I too have been playing around with stepper motors and ESPhome. I’m using a different driver than you - a TB6600 which is similar to the a4988 driver (which I used as the platform) I have it working fine except for one issue.
As long as my target position is a positive number, the motor will move to the correct position. But if I input a target of a negative number, the motor will rotate back to only to the -8 step. Doesn’t matter what the value is (-2000,-100,-15, etc) it won’t go past the -8 step. if I input -1 thru -7, it will position to the correct step.
I’m not a C++ coder, but looking at the esphome files for a4988 and stepper, I don’t find anything (I think…)that would be sending the wrong target values, etc…
Can you possibly try in your setup to send a negative target value and see what happens?
Haven’t actually hooked it up to my blinds but this seems to be working nicely, thanks. Any chance you have posted your direct-drive mounting solution to Thingiverse or elsewhere to share. I am currently looking to implement pgote’s “Motor on a roller blind solution” from Thingiverse. Cheers.
Try running the ones you have at 9v. I do and have no issues with the 90cm blinds I use.
I created a little board, used a buck converter to step down to 5v for the esp8266, but the power wires to the stepper run at full 9v. Running at 9v gives them more torque, but they do get warm
Buck I used is https://www.amazon.co.uk/gp/product/B01GJ0SC2C/ref=ppx_yo_dt_b_asin_title_o07_s00?ie=UTF8&psc=1
Rik
Thanks for this, I got a chance to test this out and actually connected up a 12V power supply. You’re right it does have more torque but unfortunately still not enough. My blinds are about 90cm wide by 180cm high so pretty long/heavy. Even though the material is pretty light weight they are just too big. So the motor in 12v mode was able to move the blind both ways but after a minute or two it just started slipping, when I touched the case to see if it was hot I almost burnt myself!
So still need to figure out, how to connect up a more powerful stepper motor to ESPHome! Alternatively I could connect up a second motor on the other end, but I think that’s going to get messy with wiring and ideally I should just get a more powerful stepper motor.