Skip to content

General Discussion

1.5k Topics 14.2k Posts

A place to talk about whateeeever you want

  • Analog gauges on serial gateway

    1
    0 Votes
    1 Posts
    990 Views
    No one has replied
  • Cooler Controller needed

    9
    0 Votes
    9 Posts
    4k Views
    Moshe LivneM
    @CoolCooler good luck! May the force be with you....
  • Queued send commands?

    2
    0 Votes
    2 Posts
    1k Views
    H
    gw.wait is ok. It keeps node awake and process incoming messages. If you sleep the node it becomes more complicated. You could send something to the controller when waking up (and keep the node awake for a short time to receive new commands). And the controller buffers outgoing commands until it receives this "woke-up-message". If you enable ack on outgoing commands from the controller (and the node is sleeping) you won't get and ack message back... which indicates the node is down or is sleeping.
  • Edit counter value new sensor

    1
    0 Votes
    1 Posts
    812 Views
    No one has replied
  • Newest MySensor community member

    15
    4 Votes
    15 Posts
    6k Views
    R
    Welcome Harald! And congrats+good luck to dad/mom ;-)
  • Help beginner with first project

    3
    0 Votes
    3 Posts
    1k Views
    H
    Try the ones you have. Not exactly an exact science this...
  • MQTT: Can somebody explain Gateway to a beginner?

    11
    0 Votes
    11 Posts
    7k Views
    P
    @TD22057 said: See here: http://forum.mysensors.org/topic/1034/mqtt-gateway-openhab-mosquitto/2 which connects mosquitto to the gateway using the bridge input. Bridging is used for connecting two brokers together (see http://mosquitto.org/man/mosquitto-conf-5.html "configuring bridges"). I think MySensor's MQTT Gateway is already a broker by itself where clients like OpenHab can connect to. However, if there is a need, you can use a bridge which forwards the messages from a remote broker(MySensor's MQTT Gateway) to a local broker(Mosquitto). Then clients could now also connect to Mosquitto.
  • Long range radio motion/tilt sensor advice

    4
    0 Votes
    4 Posts
    2k Views
    H
    There are multiple controller options available on http://www.mysensors.org. Not sure I understand what you mean by control sensor. You only need to act on the sensor output right?
  • Wake up arduino only (without radio)?

    12
    0 Votes
    12 Posts
    5k Views
    S
    Using watchdog as Mysensors is good idea, but is there any other better way to archive same?
  • Question about the use of different lib versions

    2
    0 Votes
    2 Posts
    983 Views
    H
    Don't update if it's working.
  • Seamless Smart Home Interface

    13
    0 Votes
    13 Posts
    6k Views
    Moshe LivneM
    @NeverDie it was about a year ago
  • Watchdog on Ethernet Gateway

    ethernetgateway attiny45 watchdog
    32
    0 Votes
    32 Posts
    23k Views
    Dan S.D
    @NeverDie All I can say is that after adding the watchdog I have not had a lockup in 2+ months. Before that, like you, I had random lockups. Based on this positive experience I also added a watchdog to the one repeater I have in my system. Had a brief power outage the other day and everything came back online by itself with no problems.
  • Multiple interrupts

    9
    1 Votes
    9 Posts
    7k Views
    G
    Hello, GreyGnome here. Glad to see the library is helping you. Sorry to see you had to edit code. In the next upcoming release I will include compiler directives that allow you to comment out conflicting interrupts. Also, as someone else mentioned- don't use attachInterrupt() together with EnableInterrupt(). It just makes the code fatter, and EnableInterrupt() can already cover both interrupt types; eg on an Arduino Uno: enableInterrupt(2, myFunkyExternalInterruptFunction, LOW); enableInterrupt(10, myExcellentPinChangeInterruptFunction, CHANGE); ...note that enableInterrupt will use External interrupts on pin 2 by default. You can force it to use pin change interrupts: enableInterrupt(2 | PINCHANGEINTERRUPT, myFunkyExternalInterruptFunction, FALLING); ...in which case, "myFunkyExternalInterruptFunction" is something of a misnomer. ALSO NOTE: Pin Change Interrupts do not support the LOW state!
  • tinyBrd = NRF24L01 + ATtiny84

    2
    0 Votes
    2 Posts
    2k Views
    Tomasz PazioT
    cheap and ready to work.... would be nice if it plays with mysensors setup...
  • LED toys

    1
    0 Votes
    1 Posts
    940 Views
    No one has replied
  • Solar Panel Sun Tracker

    7
    0 Votes
    7 Posts
    4k Views
    A
    @Moshe-Livne I'm using a similar calculation, was not very hard to code. A real tracker would be a challenge. Measuring where the sun really is... and checking the calculation. I tried to adjust a solar panel to the place of most light. I you don''t damp (integrate and compensate) the movement it goes in all directions when there are some clouds. Lots of fun though.
  • nRF24L01 + and 433MHz RF on the same Gateware

    7
    0 Votes
    7 Posts
    6k Views
    N
    @jesper said: the 433 Mhz sensor can range where nRF24L01 can not. What do you mean by "range"? Regarding memory, a Due would have enough memory to do both.
  • I would like to graph my sensors output

    vera graph
    9
    0 Votes
    9 Posts
    6k Views
    N
    I'm using the free version of plot.ly to do plotting from an arduino. Here's a real-time feed, where you can see the effect of last night's irrigation on my soil moisture sensor readings: https://plot.ly/~WhiteRabbit/997 It's very similar to Xively, but I like how I can easily pan and zoom the data. That's helpful as you get a bigger dataset, like this: https://plot.ly/~WhiteRabbit/869/ Plot.ly has demo arduino code on their website you can use as a starting point. Also, I have read how some people are using mysql to collect their data and graph it. I'd like to learn how to do that too, as I think it would be a good data archiving tool, and would provide additional ways to slice and dice the data. With these solutions, you don't need to be dependent on owning or using a Vera. I'd be interested to read about what other solutions people are using.
  • Help!!! Binary & Relay Compilation Not Working

    15
    0 Votes
    15 Posts
    5k Views
    B
    @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); } }
  • Spud Gun

    5
    6 Votes
    5 Posts
    2k Views
    T
    @hek So that's what you have been so occupied with the last days? :) Looks fun though..

8

Online

12.0k

Users

11.2k

Topics

113.4k

Posts