💬 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
-
💬 MDMSNode "Power"
OpenHardware.io • 22 Mar 2017, 20:15 • openhardware.io 5 Oct 2017, 16:07 -
Mother/daughter board system
OpenHardware.io • 6 Feb 2016, 23:07 • openhardware.io 6 Feb 2016, 23:33 -
Adafruit RFM69HCW and Arduino Nano
Troubleshooting • 27 Jul 2020, 13:21 • keithJ 29 Jul 2020, 10:37 -
ESP8266 gateway crashes while the node is in FOTA progress.
Troubleshooting • 25 Nov 2017, 00:22 • Abdu Sahin 13 Dec 2017, 20:50 -
💬 RFM69 - 8 relays board
OpenHardware.io • 24 Jan 2017, 13:33 • openhardware.io 24 Jan 2017, 13:33 -
💬 MySensor RFM69HCW micro pcb for DHT, Si7021, CNY70, ...
OpenHardware.io • 14 Mar 2017, 09:41 • openhardware.io 13 May 2017, 21:35 -
RFM69 on one print board or on separate Rx and Tx prints?
General Discussion • 16 Jul 2020, 09:51 • Thomas433 16 Jul 2020, 10:32 -
💬 EASY PIR multisensors box
OpenHardware.io • 14 Mar 2018, 20:53 • openhardware.io 13 Jun 2018, 20:54