Navigation

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

    Topics created by jeylites

    • jeylites

      Replacing Radio with ESP8266 on Nodes and Gateway
      General Discussion • • jeylites  

      2
      0
      Votes
      2
      Posts
      1468
      Views

      mfalkvidd

      Yes you can but only with the development version. See http://forum.mysensors.org/topic/2574/how-to-use-the-development-branch-for-sensor-and-gateway/ http://forum.mysensors.org/topic/2794/connect-sensors-directly-to-the-gateway-again/ http://forum.mysensors.org/topic/2122/sensors-without-a-gateway/ http://forum.mysensors.org/topic/1387/sensors-on-gateway/ http://forum.mysensors.org/topic/1338/gateway-and-sensor-node-on-same-arduino-is-it-possible/
    • jeylites

      Help!!! Binary & Relay Compilation Not Working
      General Discussion • • jeylites  

      15
      0
      Votes
      15
      Posts
      4246
      Views

      BulldogLowell

      @jeylites to turn relay off automatically after two minutes (and send the updated "off status" to controller... try something like this untested code: #include <MySensor.h> #include <SPI.h> #include <Bounce2.h> #define NUMBER_OF_REEDS 3 const int relayPin = 3; const int reedPin[NUMBER_OF_REEDS] = {4, 5, 6}; int reedState[NUMBER_OF_REEDS]; Bounce debouncer[NUMBER_OF_REEDS] = Bounce(); unsigned long relayTimer; MySensor gw; MyMessage msg[NUMBER_OF_REEDS]; MyMessage relayMessage(0,V_LIGHT); void setup() { gw.begin(incomingMessage, AUTO, true); gw.sendSketchInfo("Test", "1.0a"); gw.present(0, S_LIGHT); pinMode(relayPin, OUTPUT); digitalWrite(relayPin, gw.loadState(0)); for (int i = 0; i < NUMBER_OF_REEDS; i++) { debouncer[i].attach(reedPin[i]); debouncer[i].interval(5); pinMode(reedPin[i], INPUT_PULLUP); gw.present(i, S_DOOR); gw.wait(250); } } void loop() { gw.process(); for (int i = 0; i < NUMBER_OF_REEDS; i++) { debouncer[i].update(); int value = debouncer[i].read(); if (value != reedState[i]) { gw.send(msg[i+1].set(value), false); // device number mismatch here because of the array reedState[i] = value; Serial.print("updating state for switch: "); Serial.print(reedPin[i]); Serial.print(" state: "); Serial.println(reedState[i]); } } if (millis() - relayTimer > 2 * 60 * 1000UL && digitalRead(relayPin)) // two minute timer { digitalWrite(relayPin, LOW); gw.saveState(0, false); gw.send(relayMessage.set(false), true); } } void incomingMessage(const MyMessage &message) { if (message.type == V_LIGHT) { int newState = message.getBool(); digitalWrite(relayPin, newState); gw.saveState(0, newState); if (newState) { relayTimer = millis(); } Serial.print(F("Incoming change for relay, New state: ")); Serial.println(newState); } }
    • jeylites

      Battery Sensor / Voltage Monitor
      General Discussion • • jeylites  

      24
      0
      Votes
      24
      Posts
      13891
      Views

      stamag

      @jeylites You may change R1 and R2 and you don't destroy (A0). An other way is to change the multiplicator (0.003363075) in the formula: float batteryV = sensorValue * 0.003363075;
    • jeylites

      Radio ID's & Child ID's on a large network General Question
      General Discussion • • jeylites  

      10
      0
      Votes
      10
      Posts
      5000
      Views

      jeylites

      @hek If repeater mode works regardless of which Node ID your in, than I will go with this setup. I was think for repeater to work one will need to have all Node ID on the same channel. I guess I'm wrong on that. Thanks for clearing the air.
    • jeylites

      Vera UI Toggle to Debouncer
      Vera • • jeylites  

      6
      0
      Votes
      6
      Posts
      2498
      Views

      BulldogLowell

      @jeylites In option 2 you would be adding a startup script on your Vera that uses the luup.variable_watch function to wait for the event and then run a lua function that turns off your switch.
    • jeylites

      Vera Edge UI7 - Serial USB Fix!!!
      Vera • • jeylites  

      8
      1
      Votes
      8
      Posts
      7599
      Views

      twosh

      Can add that this worked for me as well, using firmware 1.7.1089 on my Vera Edge. Thanks @jeylites !
    • jeylites

      UI 7 Ethernet Gateway Problem
      Vera • • jeylites  

      11
      0
      Votes
      11
      Posts
      7747
      Views

      djolafritte

      Hello, I had the same issue and the root cause was my powersupply, it was not enought powerfull. I power my arduino with 12V and everything goes well. Regards,
    • jeylites

      Multimeter Sensor
      General Discussion • • jeylites  

      10
      0
      Votes
      10
      Posts
      4434
      Views

      Bogus Exception

      an update, from eBay $8 INA3221 3 Channel Shunt Current Voltage Monitor Sensor
    • jeylites

      Multi Binary Switches
      My Project • • jeylites  

      13
      0
      Votes
      13
      Posts
      6957
      Views

      jeylites

      @Cowboy1980 Can you post your script...
    • jeylites

      Motion, Lux, RGB
      Development • • jeylites  

      4
      0
      Votes
      4
      Posts
      2337
      Views

      Vladut Grecu

      You are missing something MyMessage lightMsg(CHILD_ID_LIGHT, V_LIGHT); MyMessage dimmerMsg(CHILD_ID_LIGHT, V_DIMMER); You just process the messages for: MyMessage motionMsg(Motion_CHILD, V_TRIPPED); ////Motion MyMessage luxMsg(CHILD_ID_LIGHT, V_LIGHT_LEVEL);////Lux