![]() It would be a To-Do to set this in a look-up table, or make a web functions to read the sunrise or sunset from a website - any idea's ? As I don't care if my curtains open or closed a minute later or so, I use a VERY rough linear calculation algorithm. Algorithms need the sun-inclination and a function with (Co)-Sine/Tan function. If this fails, you can manually override by addressing the WebServer with a time set and date set function.Ĭalculation of the sunset and sunrise is quite complicated. ![]() This is done every day (at 1:30 at night). The real-clock time is done by syncing to an NTP server. You have to calculate sunrise and sunset.Copy-past this to an excel sheet and make a graph from it (its semicolon separated data):Īs stated this project opens and closed your curtains ar sun-rise and sun-set. AUTOMATIC CURTAIN OPENER SOFTWAREThere is a Debugging function ( in the software build-in, that gives you the possibility to dump the measured buffers (Current, Looped AvgCurrent, Lock%). So the software filters out the bad-rail area, (#def BADRAIL1 / BADRAIL2 in usteps )and keeps on tracking to the end :) At the end, it was hard to differentiate an end-point of the curtain vs a rail-variation. Other challenge is that my old curtain rail had some ditches, so at some points it has more resistance, meaning current fluctuations in the Stepper. ![]() This runs quite ok for a slow stepper motor, but measuring the current at the correct time-point is a challenge (you will see drops in your current-measurement sometimes, and it needs to be filtered-out.)
1 Comment
Louis Tomasetta
3/6/2024 03:05:00 pm
Do you carry a Makita RC20 curtain controller ?
Reply
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |