💬 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
-
💬 MySensors Nrf24/RFM Serial/Ethernet GW Shield (for Uno)
OpenHardware.io • 6 May 2019, 12:53 • openhardware.io 14 Jan 2021, 22:54 -
[SOLVED] High battery usage (Pro-Mini / RFM69 / Si7021)
Troubleshooting • 14 Aug 2020, 19:55 • Oumuamua 24 Sept 2020, 18:28 -
💬 RFM69 Relay Actuator Node (mains powered)
OpenHardware.io • 3 Feb 2017, 11:54 • openhardware.io 16 Mar 2017, 13:39 -
💬 RFM69 - 8 relays board
OpenHardware.io • 24 Jan 2017, 13:33 • openhardware.io 24 Jan 2017, 13:33 -
💬 RFM69 2 relay board
OpenHardware.io • 24 Jan 2017, 13:18 • openhardware.io 28 Jan 2018, 12:49 -
💬 RFM69(H)W Arduino Mini Pro Shield
OpenHardware.io • 8 May 2017, 21:46 • openhardware.io 13 Aug 2018, 20:08 -
💬 MyGateway
OpenHardware.io • 18 Aug 2020, 03:59 • openhardware.io 31 Mar 2021, 22:08 -
💬 NRF52 Gateway -(RFM69-option)
OpenHardware.io • 27 Apr 2018, 20:53 • openhardware.io 17 Mar 2019, 15:02