Navigation

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

    Topics created by Alexander Ivanov

    • Alexander Ivanov

      Relialbe presense sensor
      General Discussion • • Alexander Ivanov  

      5
      0
      Votes
      5
      Posts
      1332
      Views

      gohan

      maybe starting to have a long timeout before turning lights off could be an idea: if you detect no movement within 15-20 minutes it is very likely nobody is there), or you can give everybody a BT tag to attack to keychain (if you do 1 or 2 BT scan and don't see any of the BT tags, turn lights off)
    • Alexander Ivanov

      Repeater node logic
      General Discussion • repeater • • Alexander Ivanov  

      2
      0
      Votes
      2
      Posts
      927
      Views

      hek

      Yes, you can have messages passing multiple repeaters. Yes, nodes can be included via repeaters. No, you should probably not make every node a repeater, enable it for woken nodes at strategic locations.
    • Alexander Ivanov

      Measuring network signal level (NRF24L01+)
      General Discussion • • Alexander Ivanov  

      3
      0
      Votes
      3
      Posts
      3998
      Views

      mfalkvidd

      @Alexander-Ivanov The nrf doesn't provide a good way to get signal level. Some more info in https://forum.mysensors.org/topic/1022/nrf24l01-signal-strength-request The best approximation is to use the PingPong example.
    • Alexander Ivanov

      Looong wires for digital input lines
      General Discussion • • Alexander Ivanov  

      3
      0
      Votes
      3
      Posts
      758
      Views

      tbowmo

      I would probably consider some extra esd protection on the input of your arduino board. Like a series resistor and a couple of esd protection diodes Just to be on the safe side
    • Alexander Ivanov

      Most reliable light switch
      Development • • Alexander Ivanov  

      4
      0
      Votes
      4
      Posts
      1782
      Views

      Boots33

      @Alexander-Ivanov The information in these posts may be of use. mys-library-startup-control-after-onregistration my_transport_dont_care_mode In mySensors V2.1 the basic sketch for a switch that will work even if the controller/gateway is down would look something like this // Enable debug prints to serial monitor #define MY_DEBUG // Enable and select radio type attached #define MY_RADIO_NRF24 #define MY_TRANSPORT_WAIT_READY_MS 3000 //set how long to wait for transport ready. #include <SPI.h> #include <MySensors.h> #include <Bounce2.h> #define RELAY_PIN 4 // Arduino Digital I/O pin number for relay #define BUTTON_PIN 3 // Arduino Digital I/O pin number for button #define CHILD_ID 1 // Id of the sensor child #define RELAY_ON 1 #define RELAY_OFF 0 Bounce debouncer = Bounce(); int oldValue = 0; bool state; MyMessage msg(CHILD_ID, V_STATUS); void setup() { pinMode(BUTTON_PIN, INPUT); // Setup the button pin digitalWrite(BUTTON_PIN, HIGH); // Activate internal pull-up // After setting up the button, setup debouncer debouncer.attach(BUTTON_PIN); debouncer.interval(5); pinMode(RELAY_PIN, OUTPUT); // set relay pin in output mode digitalWrite(RELAY_PIN, RELAY_OFF); // Make sure relay is off when starting up } void presentation() { // Send the sketch version information to the gateway and Controller sendSketchInfo("Relay & Button", "1.0"); // Register all sensors to gw (they will be created as child devices) present(CHILD_ID, S_BINARY); } void loop() { debouncer.update(); // Get the update value int value = debouncer.read(); if (value != oldValue && value == 0) { // check for new button push state = !state; //Toggle the state send(msg.set(state), false); // send new state to controller, no ack requested digitalWrite(RELAY_PIN, state ? RELAY_ON : RELAY_OFF); // switch the relay to the new state } oldValue = value; } void receive(const MyMessage &message) { // We only expect one type of message from controller. But we better check anyway. if (message.type == V_STATUS) { state = message.getBool(); // get the current state digitalWrite(RELAY_PIN, state ? RELAY_ON : RELAY_OFF); // switch relay to current state // Write some debug info Serial.print("Incoming change for sensor:"); Serial.print(message.sensor); Serial.print(", New status: "); Serial.println(message.getBool()); } }
    • Alexander Ivanov

      "Last update" node field in Vera interface
      Vera • • Alexander Ivanov  

      5
      0
      Votes
      5
      Posts
      1420
      Views

      hek

      If I remember correctly it show last time any value was received for the device. Updated or not.
    • Alexander Ivanov

      Re-establishing connection with gateway
      General Discussion • • Alexander Ivanov  

      5
      0
      Votes
      5
      Posts
      1408
      Views

      Alexander Ivanov

      I found problem in my code: my node sends update if only it has value changed, which can take really long. @flopp, "it will start to search for a Parent after 6 failures" - does 6 tries happen automatically or the node need to send something 6 times?
    • Alexander Ivanov

      Showing N/A instead of last stored temperature
      Vera • • Alexander Ivanov  

      8
      0
      Votes
      8
      Posts
      1863
      Views

      Alexander Ivanov

      @r-nox but not clear what the time there really means.
    • Alexander Ivanov

      Power up a backup Gateway node
      Development • • Alexander Ivanov  

      4
      0
      Votes
      4
      Posts
      1128
      Views

      CrankyCoder

      That I am not 100% sure of. I would guess yes, but would think minimal. I would think the more troublesome area would be on the monitoring node, simulating a message to mysensors.
    • Alexander Ivanov

      Working node without MySensors network available
      General Discussion • • Alexander Ivanov  

      2
      0
      Votes
      2
      Posts
      734
      Views

      TheoL

      Dear @Alexander-Ivanov, Someone asked the same question this week. Continue this thread in that topic https://forum.mysensors.org/topic/4449/how-to-disable-default-node-registration-to-the-gw/2
    • Alexander Ivanov

      Increasing reliability of MySensors network hardware
      Hardware • • Alexander Ivanov  

      1
      0
      Votes
      1
      Posts
      831
      Views

      No one has replied

    • Alexander Ivanov

      UI7 and Mysensors - lots of problems
      Troubleshooting • • Alexander Ivanov  

      4
      0
      Votes
      4
      Posts
      1410
      Views

      rafael.brasilia

      @hek I am seeing a lot of st=fail on my nodes. I have added a 4.7uF capacitor between ground and VCC but that did not help. What should I try next? a bigger capacitor? I am using an iphone wall charger as power source. Thanks!