💬 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
-
Fan control and feedback
Development • 3 Mar 2016, 19:46 • emc2 4 Mar 2016, 06:43 -
💬 RGB Led Strip Board (MysX)
OpenHardware.io • 6 Apr 2018, 08:53 • openhardware.io 30 Jun 2018, 19:39 -
💬 Microscope Andonstar ADSM201 LED Light
OpenHardware.io • 21 Jun 2018, 22:15 • openhardware.io 23 Jun 2018, 08:32 -
💬 Multiple uses battery RFM69 node
OpenHardware.io • 24 Jan 2017, 13:15 • openhardware.io 2 Apr 2017, 11:53 -
Multiple RFM69 networks / gateways in range
General Discussion • 11 Apr 2023, 19:02 • ferro 12 Apr 2023, 20:10 -
[SOLVED] High battery usage (Pro-Mini / RFM69 / Si7021)
Troubleshooting • 14 Aug 2020, 19:55 • Oumuamua 24 Sept 2020, 18:28 -
FOTA/MYSBootloader for RFM69?
General Discussion • 2 Aug 2021, 21:01 • Thomas433 2 Aug 2021, 21:01 -
💬 MySensors Nrf24/RFM Serial/Ethernet GW Shield (for Uno)
OpenHardware.io • 6 May 2019, 12:53 • openhardware.io 14 Jan 2021, 22:54