š¬ RFM69 - 8 Dimmer output
-
-
Hi! Did you test this concept with mysensors library and atmega328?
It is not clear how it can work. For reliable dimmer work, controller must handle zero-crossing interruption every 20ms to detect zero and handle interruption from timer to control triac. There is too high probability to omit these interruptions during RFM69 interruption handling... And this is one triac example, not 8
-
Not yet !
In fact, the interrupt must be short enough and fast enough to be sure to not miss the RFM69 interrupts.
The code for 8 dimmers will not be really more complicated : in fact, each time we got a zero cross, we must set a timer to zero, and then wait the good amount of milliseconds to turn on the needed outputs.
So, yes, we'll have an interrupts each 10ms (each time the wave crosses the zero, to be precise !), but I think all we have to do in the interrupt handler is set the timer to zero (or to micros() ...) and then on the main loop, wait the good amount of time for each output before setting them ON.Seems simple on paper, perhaps it will not work on the chip....
In facts, my main concern is : will the RFM interrupt be short enough to not disturb the zero crossing interrupt ?
Although, not yet tested the RFM : do we NEED the interrupt pin ? Can't we poll frequently the RFM?
Suggested Topics
-
RGBW LED Controller
OpenHardware.io ā¢ 26 Jan 2016, 14:35 ā¢ openhardware.io 20 Mar 2016, 16:51 -
š¬ MDMSGate
OpenHardware.io ā¢ 10 Jul 2016, 19:42 ā¢ openhardware.io 2 Jul 2019, 06:44 -
Sudden battery drain - Pro-mini + RFM69
Troubleshooting ā¢ 6 Apr 2023, 10:58 ā¢ Oumuamua 13 Oct 2023, 23:49 -
š¬ NRF2RFM69
OpenHardware.io ā¢ 18 Jan 2016, 10:00 ā¢ openhardware.io 6 Dec 2019, 09:59 -
š¬ MySWeMosGWShield - WeMos Mini MySensors Gateway Shield
OpenHardware.io ā¢ 22 Dec 2016, 05:01 ā¢ openhardware.io 8 Aug 2018, 17:12 -
š¬ RFM69 2 relay board
OpenHardware.io ā¢ 24 Jan 2017, 13:18 ā¢ openhardware.io 28 Jan 2018, 12:49 -
š¬ Just RFM gateway
OpenHardware.io ā¢ 15 Nov 2016, 01:19 ā¢ openhardware.io 10 Mar 2017, 18:15 -
š¬ Mini Dimmer Box
OpenHardware.io ā¢ 31 Mar 2018, 11:19 ā¢ openhardware.io 31 Mar 2018, 11:24