mirror of
https://github.com/esphome/esphome.git
synced 2024-11-10 09:17:46 +01:00
ac_dimmer increase gate time for robotdyn (#1708)
* ac_dimmer increate gate time for robotdyn * add explanation on longer gate enable time
This commit is contained in:
parent
2db8c42e1d
commit
d281e59f3a
1 changed files with 4 additions and 1 deletions
|
@ -17,7 +17,10 @@ static AcDimmerDataStore *all_dimmers[32]; // NOLINT(cppcoreguidelines-avoid-no
|
||||||
/// Time in microseconds the gate should be held high
|
/// Time in microseconds the gate should be held high
|
||||||
/// 10µs should be long enough for most triacs
|
/// 10µs should be long enough for most triacs
|
||||||
/// For reference: BT136 datasheet says 2µs nominal (page 7)
|
/// For reference: BT136 datasheet says 2µs nominal (page 7)
|
||||||
static const uint32_t GATE_ENABLE_TIME = 10;
|
/// However other factors like gate driver propagation time
|
||||||
|
/// are also considered and a really low value is not important
|
||||||
|
/// See also: https://github.com/esphome/issues/issues/1632
|
||||||
|
static const uint32_t GATE_ENABLE_TIME = 50;
|
||||||
|
|
||||||
/// Function called from timer interrupt
|
/// Function called from timer interrupt
|
||||||
/// Input is current time in microseconds (micros())
|
/// Input is current time in microseconds (micros())
|
||||||
|
|
Loading…
Reference in a new issue