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. Development
  3. Relay actuator as pulse

Relay actuator as pulse

Scheduled Pinned Locked Moved Development
4 Posts 3 Posters 976 Views 3 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.
  • PetjepetP Offline
    PetjepetP Offline
    Petjepet
    wrote on last edited by
    #1

    For my garagedoor I would like to build a relay actuator with a slightly different functionality.
    My Hörmann garagedoor motor works with pulse contact to activate up or down.
    Two relays are needed, one for up and one for down.
    When making a short contact (say using relay 1) the door starts to go up. Again making a short contact would stop the door (for intervention). When making contact again it will continue to go up, as a cycle until the door is completely open or the second contact is activated to close it. The second contact is used to close the door having the same procedure.
    So the relay should make contact for 1-2 seconds and then release again.

    How can I arrange this?

    1 Reply Last reply
    0
    • mfalkviddM Offline
      mfalkviddM Offline
      mfalkvidd
      Mod
      wrote on last edited by mfalkvidd
      #2

      Use the relay example, but change the digitalWrite part to something similar to
      DigitalWrite(... ON);
      gw.wait(1000); // wait 1 second
      DigitalWrite(... OFF);

      I'm only on mobile now and it seems impossible to copy code from the Codebender examples but I hope you get the idea.

      1 Reply Last reply
      0
      • T Offline
        T Offline
        TimO
        Hero Member
        wrote on last edited by
        #3

        I'm using a similar approach to control my lights and shutter. I'm storing the value of the relay and the time of the last change. If the value is 1 (on) I check the time: lastChange + duration the relay should stay on is checked against Millis(). If it is smaller the relay is shut off.

        I could post an example tomorrow, it is a bit hard with my mobile. ;-)

        1 Reply Last reply
        0
        • PetjepetP Offline
          PetjepetP Offline
          Petjepet
          wrote on last edited by
          #4

          Thank!
          I'll give it a try.
          I'm new in the Arduino world and hoping to learn from more experienced users.

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


          18

          Online

          11.7k

          Users

          11.2k

          Topics

          113.0k

          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