Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. OpenHardware.io
  3. 💬 RFM69 - 8 Dimmer output

💬 RFM69 - 8 Dimmer output

Scheduled Pinned Locked Moved OpenHardware.io
rfm69dimmer
3 Posts 3 Posters 1.4k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • openhardware.ioO Offline
    openhardware.ioO Offline
    openhardware.io
    wrote on last edited by openhardware.io
    #1

    https://www.openhardware.io/view/326/RFM69-8-Dimmer-output

    1 Reply Last reply
    0
    • KoreshK Offline
      KoreshK Offline
      Koresh
      Contest Winner
      wrote on last edited by Koresh
      #2

      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 :)

      1 Reply Last reply
      0
      • N Offline
        N Offline
        napo7
        Hardware Contributor
        wrote on last edited by
        #3

        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?

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        12

        Online

        11.7k

        Users

        11.2k

        Topics

        113.1k

        Posts


        Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • MySensors
        • OpenHardware.io
        • Categories
        • Recent
        • Tags
        • Popular