Crank Window Motorized Automated | Home Assistant | Smart Home
Vložit
- čas přidán 27. 06. 2024
- Adding a motor to a window with a crank isn't hard or expensive. With a DC motor and the right motor controller it's pretty easy. And with Home Assistant you can control it with your phone, or even with Alexa or Google Home. Here's how I did it.
www.drzzs.com
DC Motor:
Amazon - amzn.to/2Ni8Rio
Banggood - drzzs.com/gearedDCmotor
AliExpress - s.click.aliexpress.com/e/yq9wDO0
Bigger Motor:
Amazon - amzn.to/2IOjIfS
Banggood - drzzs.com/DCMotor_16kgcm
AliExpress - s.click.aliexpress.com/e/c1QzWurI
Coupling (8x8mm):
Amazon - amzn.to/2NcN7o8
Banggood - drzzs.com/8x8coupling
AliExpress - s.click.aliexpress.com/e/cMHv3wk0
Motor Controller:
Amazon - amzn.to/2RA2HZH
Banggood - drzzs.com/HbridgeController
AliExpress - s.click.aliexpress.com/e/c0pB0d6u
D1mini:
Amazon - amzn.to/2SKRAvK
Banggood - drzzs.com/D1mini
AliExpress - s.click.aliexpress.com/e/c5SpQQwU
Reed Switch:
Amazon - amzn.to/2YDc9xv
Banggood - drzzs.com/ReedSwitch
AliExpress - s.click.aliexpress.com/e/bt8x2WMs
Power Supply:
Amazon 12v 1amp - amzn.to/2KsmF75
12v 2amp - amzn.to/2ETbVec
Button:
Amazon - amzn.to/2Wl920y
Thingiverse: www.thingiverse.com/thing:370...
OnShape: cad.onshape.com/documents/40d...
Social:
Discord DrZzs - discord.me/drzzs
DrZzs Facebook Group: / 1969622823351838
Discord Home Assistant - / discord
Twitter: / dr_zzs
Instagram: / drzzs - Jak na to + styl
i despise smart home things, but this is a great video to help me make a button controlled (no wifi connectivity) window opener for some elderly relatives who can't reach the windows behind their couches!
I want you to know that this system has saved my summer. Our bedroom gets really hot from May through October, so having good air-flow is a must. We have high windows in our bedroom that can't be opened from the ground. The sales rep from the window company sold us a bad setup, and replacement windows will take three months to arrive because of supply chain issues. I re-created this system for our windows, and now we'll be able to enjoy a cooler and well ventilated nights sleep. Thank you so much! 🤓
Nice build. A temperature sensor would be a nice add. So the window opens and closes at set values
This video is incredible! I'm been trying to figure out how to convert other cranked devices to automatic, specifically a pool cover. A cranked one runs about $100 and an automatic one runs thousands of dollars. Hopefully, it won't for me if I can recreate what you did. I took a look at replacement parts for an automatic cover and they use an AC motor, though. You're an inspiration!
Thanks for uploading this! You are going to save me a lot of time in my quest to motorize+automate our upper casement windows. Since we have two groups of three windows and I want to use the more powerful motors for each, I'm thinking about using a PoE power supply, which can be had for under $50 if purchased secondhand. The higher voltage would also allow me to move the power supply to the basement and use a longer wire run. Then I could use a single 48v to 24v dc step-down transformer for each set of three motors. 9 of those motors all running at once would require a 1000W power supply, so it won't fit nicely anywhere other than the basement utility room.
Splendid! Soup-to-nuts. A clean design that offers may ways to tweak and customize (such as using a right-angle drive worm-gear motor).
Now we need a motorized retractable awning video :)
Would love to know what you would do differently 4 years later and if you’d use the same board.
I'm going to try and do this for my crank windows but I think I'm going to try and use a ZOOZ 700 SERIES Z-WAVE PLUS LONG RANGE DC MOTOR CONTROLLER ZEN53 LR as the controller. I hope it will work.
Stoked for the next motorized window video!
thanks! hopefully soon I'll have all the parts I need.
Love the little thing. I have half a dozen windows this would be perfect with
thanks! it works surprisingly well. I only have a few windows like this but I'll probably be installing at least one more.
Nice project and video, thanks for sharing it!
Thanks!
This is great - I've been looking forward to this video. I've ordered the end-stops and the 8RPM 50kg-cm super extra heavy duty motor with the 8mmx8mm aluminum coupling. It takes 7 cranks to open my old windows. Thanks!
cool! you should be in pretty good shape with that. Let me know how it goes!
How’d it go?
@@Snugglelol it works - my setup is a little crude (used all round copper strapping to mount), but I found the motor torque to be exactly what was required without being able to damage the window hardware. I had to replace the springy aluminum couplings with solid ones - the electronics will burn out before any damage is done.
Very cool man! I’m thinking of trying it and making the “wedge” with polyform!
(Heat moldable plastic) Maybe even the crank connector. I don’t know the strength of the polymer used in your 3-D printer but the stuff I’m talking about is incredibly strong and I have used it for several projects including attaching caster wheels to the legs of a chair.
cool. I used PLA. It's strong enough so far :)
In this project i would use a normal Endstop Switch. Nice idea, like always.
I just looked at my 3d printer and had the same thought haha
ya, I didn't even think of it, but that would be a really good idea instead of the reed switch.
My MBA marketing paper was written on precisely this device. The plan was to sell the technology to window manufacturers to integrate into new home construction. The advantage being that you could save a lot on heating and cooling costs if you were to strategically open and close you windows and blinds depending on the weather conditions. It is also advantageous to get airflow from windows in hard-to-reach places. The design was to be modular so that, as protocols change, the user could switch it out for a different module.
Excellent!
great vid
Thanks!
Love your videos. Really nice work and good details on each setup.
You might want to consider a 3D Printed gearbox design to improve the torque also. That could be a nice cost effective solution.
You could try some alternative materials for your coupling too. Maybe nylon would be a good option. I've printed some gears in nylon and they seem to hold up well.
good ideas!
Thanks!
Thanx for this great video! I think this is only DIY smart hand crank window opener/closer.
Thanks!
I think it is too. Mine is still working great.
Nice video. You might want to update your sketch to timeout the close action after roughly 60 seconds just in case the switch is never detected as closed. This could prevent the motor from over heating in an event where the something is preventing the window from closing, or the sensor is damaged. Throw a nice big warning if it ever times out.
That's a good idea. Thanks!
Excellent video. I wonder if the housing design you shared in the link is for the small or big motor option?
Also since I don't have a 3d printer, can you recommend a provider to print and ship it to me?
great job!
Thanks!
Forgive my OCD, I noticed some typos on the AC Temps card, "Mountain" and "Piano", unless I'm mistaken and it is indeed a Paino room where small animals are tortured :) Great video BTW, I was just thinking about using these high torque Chinese motors for a HA window automation project!
ha! thanks! I've had those misspelled for a long long time and I never noticed!
10 out 10 that thinking outside the window
thanks man!
The lead screw and stepper motor option is what I want to try, although judging from the speed of my printer Z axis it would be very slow, unless you use a more aggressive pitch lead screw and suitably strong motor. May need some experimentation to get right
I've got the motor and coupling. Just waiting on the screw parts to arrive. I'm hopeful it'll be a nice solution. We'll see!
Great video as always. Sorry for not seeing this sooner.
I have an option to your motor. Take a look at a RV vent motor. Not sure how it will work with large crank windows but it will open my rv windows. Check it out.
Considering an electromagnet or just magnets to keep the window closed. Kinda like a refrigerator door. My windows are like 40 years old so they dont close super well. The other option is to automate the latches because usually they dont close all the way but get close enough for the latch to engage.
I've been trying to do the same thing for a skylight. But using VNH2SP30 as the motor controller. I has a current sense, so i hope to detect a current rise to determine the window is fully open or closed. Of course if your coupler is going to fail, this will not work. I also require an exterior rain sensor to trigger window closure.
oooh, rain sensor is a great idea! I think if you get the metal coupling you shouldn't have failures.
Hi Dr Zzs, I followed your setup and coding using pin D4 connected to the reed switch at window closed position. I was scrambling because the D1mini fails to boot on a power cycle. Finally I realised that pin D4 is used for the boot process, and found my the reed switch is activated (window closed).
Does your setup fail to boot on restart? How do I re-boot the D1mini without messing with the reed switch every time? Thanks Dr. Zzs
Hi @DrZzs. What RPM spec motor did you go with for your window? Mine's about the same size. Thanks so much for this video!
NVM. The two dead links have 10rpm in the URL so I'll go with that! Cheers.
Glad you found out the info! For future reference the best place to get answers is to join in discord. It can be a bit difficult to troubleshoot via comments.
Did you ever make that additional video of the 3-D printed parts and the sliding window you mentioned at 12:33 ?
Hey Doc. How do you create your images that are show for your videos on CZcams? The one on this video with you at the window is great!
thanks! Those are Bitmoji's. You set up your little avatar that is supposed to look like you and they generate a bunch of fun scenes. They change all the time too, so I go through and save the ones I like. They are fun and work great for these videos for sure :)
Hi DrZzs, I don't nothing about 3D printing. But I want to learn. Could you guide the sources and printers for beginners. Thanks
I am apparently also as blind as Mahko. I am trying to find the file, but have no clue where it is. I would like to use your code with most of my "position" controls, but try to use an encoder that is attached to the motor to eliminate the switches and approximation of position. This would be considered "close looped", which is used in all industrial positioning control. Thank you for all of your great videos.
What scale do you adjust the wedge for use with the bigger motor?
at 12:30 you mention you want to make a video with a threaded rod for a sliding window. Did that happen? My friends and I were just discussing such an opener today. We'd like to see others' attempts at it.
if the motor is destroing your coupling then you won't need a stronger motor, but a stronger coupling
You should add an emergency timeout in case to stop the motor from spinning endlessly and maybe overheating - the magnet will get weaker an the reed will get less responsive with lower temperature. Maybe a current sensing to detect a childs hand would be great
I swapped out the 3D printed coupling for a metal one. I got the stronger motor to open the window faster and not bog down at the extremes. The motor upgrade wasn't intended to fix the coupling problem. The good news is, with the bigger motor and the metal coupling I've been problem free for months with this setup.
Nice! Great Video! Thanks for sharing! :)
Unfortunately, i have got other types of windows and opening mechanisms. Do you know, if there are other solutions and projects regarding mechanized Window opening?
Thanks!
which type of window do you have? if they slide open then a linear actuator should work. Or the next window video I have planned with the lead screw should work too.
Why don't you use the reed switch for the state of the cover? Great video
Nice outro too
Thanks! I did try that, but it messed with the way the button functions. I do look at the reed switch as the state in HA, but I don't use it for controls other than to stop the window when it's closed.
Any chance of you selling the mount for those of us without a 3D printer?
How much would you charge to make ~10 of these with the more powerful motor?
You can compensate for that extra 2% with weatherstripping.
How has noone made this a product yet?
Great project. Cost is reasonable compared to what Anderson wants, $600 and up. I copied the code from the video and get all kinds of errors which I don't understand when compiling. Another person commented that there was a link with the code which I don't see anywhere and the yaml code was different. Could you please supply the code.
Did you ever get that link? I'm getting some errors also.
How do you open it manually now?
Hi where i find the mecanic mechanism to open the window (hand square type casementa window operator) ?
I'm not sure. do you have a picture of what you're looking for?
Reed switch going crazy... I have no idea why.. it stays off when the door is closed but when open it switches between off and on every second even milliseconds. any ideas?
I sure would like to have the Yaml file to see if I can make this work I tried to duplicate it, but it's really hard to scribble it from the youtube into a yaml text
file
Do you have the yaml files anywhere? Could always copy off the screen, but would be easier if I could cut and paste.
Never mind, found it github.com/Snipercaine/home_assistant_config/blob/master/esphome/window_crank.yaml
If anyone else is using, be aware, the code on the link is different from the video. If you followed the video, you’ll need to understand and modify the code
I know this is 4 years old but after using the code from your video as I don't know code, I just get an error when I try to compile.
/config/office-window-opener.yaml:84:24: error: 'class esphome::template_::TemplateCover' has no member named 'state'; did you mean 'esphome::optional esphome::template_::TemplateCover::state_f_'? (not accessible from this context)
It's really difficult to troubleshoot over comments. The best place to get answers to your questions is on the discord channel. Check the video description for more details.
Why not a limit switch?
That would work too. I don't know why I went for the reed switch first. I even have a few extra end-stops laying around too. Maybe on the next one.
Is there a step by step tutorial on creating buttons on home assistant,
in case of a fire, is there a manual override to quickly open the window?
can you do this with a handle (that's attached)?
NO HANGING HAMMERS!!!
ha! ok, a fire axe would work too :)
Someone recommend a DIY’ers torque measuring tool!
I'd be happy to help but it depends what your goal is.
Thanks! What I'm looking for would be something I could attach to the screw on the window and when I crank it I get some indication of how much torque is required to turn it so I could know which motor to get. I've just been guessing at which motor to use for a few of these projects. Same with the blinds. If I could know how much torque I need to pull the blinds up that would be much better than guessing at the motor size and being wrong.
@@DrZzs
In your case, I would recommend an in-line digital torque adapter with a peak-hold feature. They are very versatile because you can attach them to any rachet (Not recommended for power tools though). You would need to rig up an adapter if you can't find a socket to fit your window crank shaft. Maybe you could use one of those adapters to go from a 1/4 hex drive to a 3/8 drill (bit) chuck?
I own the A/C Delco digital torque adapter linked below and it works great. My only complaint is that this one only has 3 buttons so to use all of the functionality you need to cycle thru menus. Competitor products seem to have less precision but their extra buttons would be faster to use on a daily basis.
www.amazon.com/ACDelco-ARM602-3-Digital-Adapter-Audible/dp/B004VYUKTC
@@DrZzs Hey master! Just an idea that occurred to me today:
I would make a new couplet, cut in half, with teeth on both sides of the center cut, with an inner spring that holds both parts together. As long as the torque is too strong, the spring will not have enough force and both parts of the coupler will separate and turn one end by jumping one of the teeth.
You can just change the spring rate to change the torque capacity...
just push it aside if you have to go out the window.
Hi, thanks for the idea; to check the torque overload, there is something you can look at here czcams.com/video/PN1ZJMFMGNs/video.html using an ACS712, current monitoring.
cool, thanks!
have no idea why a company wouldnt see the value in this smh ive been looking for one to buy for a long time but nothing.
Any chance someone could commission a few of these?
At this time I don't have the bandwidth to make these to sell. Thanks for watching!
@@DrZzs bummer; any chance you could link the models you made? I have a friend who has a 3D printer
Nevermind; I found them. Thanks again for the great video
I have installed nextcloud and hassio on proxmox. With Nextcloud, ports 80 and 443 are already busy. I have forwarded ports and can now reach Nextcloud via myXXXXXXX.tk. How can I now, for example create my website so that you can send it over mywebserver.tk can reach? Is there an other way as using one vm for all applications that are using 80 and 443
yikes man. Sorry, I'm not sure how to help with that. You need a network guru. I'm just a doctor ;p
So I guess you never lock your windows?..
This is a second story window. Only a vampire or spider-man could get up there to get inside. Actually, now that I think of it, there might be a vampire down the street. Maybe I will lock it after all. ;)
@@DrZzs Got it. Byt then again, you never know with kids these days. They would probably climb up there if a Pokémon would show up on their phone..