Navigation

    • Register
    • Login
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. Joupil
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Joupil

    @Joupil

    1
    Reputation
    4
    Posts
    227
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    Joupil Follow

    Best posts made by Joupil

    • RE: Relay output activates when power off/on

      Hi,
      I solved this issue by simply commenting
      //setStatus(OFF);
      in NodeManagerLibrary.ino

      Thanks for all

      Joupil

      posted in Development
      Joupil
      Joupil

    Latest posts made by Joupil

    • RE: Relay output activates when power off/on

      Hi,
      I solved this issue by simply commenting
      //setStatus(OFF);
      in NodeManagerLibrary.ino

      Thanks for all

      Joupil

      posted in Development
      Joupil
      Joupil
    • RE: Relay output activates when power off/on

      Hello,
      Unfortunatly none of these methods worked for me.

      • "setStatus(OFF);" was already set in NodeManager
      • I tried to set it "ON": the result was the same
      • I changed this setup to "dititalWrite(_pin, HIGH);" then the debugger displays "digitalWrite not declared" (well, I don't know what to do, I'm not an experienced coder)

      For all: the relays turn on when pins go high.

      To me the original setup is correct but with no effect at startup. (Setup is in the file NodeManagerLibrary.ino)

      I wrote a simple program 2 years ago and wanted to switch to NodeManager. But this issue is annoying. In this old program the method was following:
      // Fetch relay status
      for (int sensor=1, pin=RELAY_1; sensor<=NUMBER_OF_RELAYS;sensor++, pin++) {
      // Register all sensors to gw (they will be created as child devices)
      present(sensor, S_BINARY);
      // Then set relay pins in output mode
      pinMode(pin, OUTPUT);
      // Set relay to 0
      digitalWrite(pin, RELAY_OFF);}

      This worked fine with no relay switch at startup.

      Still stuck...

      Thank you in advance for your help.

      Joupil

      posted in Development
      Joupil
      Joupil
    • RE: Relay output activates when power off/on

      Thanks for all.

      NodeManager presents this method:

      // what to do during setup
      void SensorDigitalOutput::onSetup() {
      // setup the pin
      pinMode(_pin, OUTPUT);
      // setup the off pin if needed
      if (_pin_off > 0) pinMode(_pin_off, OUTPUT);
      // report immediately
      _report_timer->unset();
      // turn the relay off by default
      setStatus(OFF);
      }

      Shall I write :
      // setup the pin
      pinMode(_pin, OUTPUT);
      dititalWrite(_pin, HIGH);

      or turn the relay On by default?

      Thank you

      posted in Development
      Joupil
      Joupil
    • Relay output activates when power off/on

      Hi,
      I've just discovered NodeManager. Wow! So simple for coding great stuffs and mixing functions!
      Unfortunately I'm stuck resolving the issue below.
      The last node I created was built to open 3 doors (I've hacked an old Somfy remote controller) Each door is open/closed using a relay. I've used SensorLatchingRelay1Pin three times. It works like a charm.
      The problem is that when unplugging the node then replug it the relays are all activating. In case off power failure all doors will open at last!
      Is there something to know to solve that major issue?
      Thanks in advance,
      NodeManager Padawan.

      posted in Development
      Joupil
      Joupil