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
JoupilJ

Joupil

@Joupil
About
Posts
4
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Relay output activates when power off/on
    JoupilJ Joupil

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

    Thanks for all

    Joupil

    Development

  • Relay output activates when power off/on
    JoupilJ Joupil

    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

    Development

  • Relay output activates when power off/on
    JoupilJ Joupil

    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

    Development

  • Relay output activates when power off/on
    JoupilJ Joupil

    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.

    Development
  • Login

  • Don't have an account? Register

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