Device needs startup delay to stabilize power supply

100 views
Skip to first unread message

Daniel Petersen

unread,
Apr 10, 2021, 1:24:40 AM4/10/21
to TasmotaUsers
Hi. I've adapted a few https://embertec.com.au/vic/products/embertec-smartswitch/ to be controlled by a Wemos D1 mini, although this is the first time I've used Tasmota. I've previously found that the device needs a second or so for the power supply to stabilize, before pulsing any of the relay coils (it's a latching relay). Probably due to lots of capacitance on the power supply. I'm assuming the relay-off coil is being pulsed at bootup by Tasmota, which on this device draws too much current from the power supply while the voltage is still marginal, causing a crash.
I am using the "EXS Relays" module/template and confirmed the connections are correct, as it works intermittently. I'd just like to add a delay before any relay coils are pulsed, to allow the power supply to stabilize.
I've tried adding the rule "ON Power1#boot DO delay 1" but it doesn't work to delay the boot-up, maybe because of the "non-blocking" nature of delays in Tasmota?
How can I add this one second delay before the relay coils are pulsed?
Thanks,
Dan.

Daniel Petersen

unread,
Apr 10, 2021, 1:33:08 AM4/10/21
to TasmotaUsers
To clarify, it only needs the delay at bootup, not before every pulse of the relay. Thanks.

Philip Knowles

unread,
Apr 10, 2021, 2:50:25 AM4/10/21
to Daniel Petersen, TasmotaUsers

First of all ‘Delay 1’ isn’t a 1 second delay – it’s 0.1 second – Delay 10 is 1 second. Secondly the Delay isn’t going to delay anything – delay in a rule just delays the next command in the rule..

 

The issue is deeper than a delay. You haven’t explained which model you are using. If it’s the 2 relay version one of the relays is triggered by GPIO16 which is high on boot. If it’s not the 2 relay version look at your SetOption0 setting which defaults to ‘Save power state and use on reboot’ which may be the cause of the issue.

 

Regards

 

Phil K

 

Sent from Mail for Windows 10

--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/61344984-8142-47db-875b-0fd68dee2df6n%40googlegroups.com.

 

Daniel Petersen

unread,
Apr 16, 2021, 1:10:38 AM4/16/21
to TasmotaUsers
I did tell you what I'm using, and as far as I'm aware, this one hasn't been Tasmotized before.
Anyway, thanks for the tip about option0. It helped with the lockup on boot. I think I also need to add some more local capacitance to the Wemos (clone) as well.
Regards,
Dan.
Reply all
Reply to author
Forward
0 new messages