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

Shutter dead time support #204

Closed
to-scho opened this issue Oct 25, 2019 · 11 comments
Closed

Shutter dead time support #204

to-scho opened this issue Oct 25, 2019 · 11 comments

Comments

@to-scho
Copy link

to-scho commented Oct 25, 2019

Hi Stefan, thanks for introducing shutter support in Tasmota. Unfortunately it seems that my Somphy Motors have significant dead time when starting or stopping motors. I am running Short Circuit Safe mode.Can you add some extra ms setting for any movement in addition to open close duration? In addition would it make sense to have some extra ms when shutter position is set to 0 or 100? With that any integrated timing error will at least ‘recalibrate’ when moving to any end position. Regards, Tobias

@stefanbode
Copy link
Owner

stefanbode commented Oct 26, 2019

Hi Tobias, the extra seconds at the end are already included. Can you make the following movement and and print the cm - Position here. this make it easier for me see what is wrong.

shutterposition 20
shutterposition 40
shutterposition 60
shutterposition 80
shutterposition 20
shutterposition 80
shutterposition 20

Also I need you calibrationparameters. They are printed if you input shutterrelay1 1

@to-scho
Copy link
Author

to-scho commented Oct 27, 2019 via email

@to-scho
Copy link
Author

to-scho commented Oct 27, 2019 via email

@stefanbode
Copy link
Owner

Uhh, this is quite a lot of movement you lose. If you understand right normally 100 = 135cm and if you do it stepwise you with roughly end at 100cm; roundabout. There are 5 starts. Your opentime is 20.8. That does mean: 135/20.8 = 6.5cm/sec. If we lose 35cm in 5 starts this is 7cm per start wich is roughly 1 second that the motor needs from the start command to effectively go to start. Wow. Let me check If I can compensate for this. I assume it is the same for up and down. My idea is to change the startposition internally to "bring in" the additional runtime. I need to ensure the position at the end and on a position during movement is as precise as it can be.

@to-scho
Copy link
Author

to-scho commented Oct 27, 2019 via email

@stefanbode
Copy link
Owner

Hi Tobi, that 20/80/20/80 will work fine is correct. This was just my double check, that you really have a start problem. if you do 20/40/60/80/20/40/60/80/20 you will see it get worse. I have an idea where to hook in. just struggeling with the first move them position is 0. then my start is negative and this is what the software currently does not like....

@stefanbode
Copy link
Owner

Hi Tobi, I just uploaded version 1.17. Maybe you can give it a try. If you start you will get a new config line with "motordelay" at the end.

00:00:00 SHT: Shutter 0 (Relay:1): Init. Pos: 20000 [100 %], Open Vel.: 100 Close Vel.: 100 , Max Way: 20000, Opentime 10.0 [s], Closetime 10.0 [s], CoedffCalc: c0: 300, c1 500, c2: 700, c3: 900, c4: 1000, binmask 3, is inverted 0, shuttermode 1,motordelay 0

This delay are multiple of 0.05sec. e.g. 20 is 1 sec (20x0.05). To set the motordelay please use the new command and put in the time in SECONDS!!! For your problem please start with:

shuttermotordelay 1.1

The init line should answer with "motordelay 22"

@stefanbode
Copy link
Owner

Please let me know if this solves you problem. if so, I will update the master project with the new code. As you might know the shutter is now also in the MAIN TASMOTA project included.

@to-scho
Copy link
Author

to-scho commented Oct 27, 2019 via email

@stefanbode
Copy link
Owner

Ok great to hear. Will submit a change request against the main project tomorrow.

@stefanbode
Copy link
Owner

Change is submitted to the master. Wiki is updated to describe the procedure.

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

No branches or pull requests

2 participants