Skip to content

Troubleshooting

Help! Everything just falls apart
2.7k Topics 21.5k Posts
  • Multi-Binary Switch Sketch

    3
    0 Votes
    3 Posts
    3k Views
    M
    I did get this code to compile... I am going to test with this over the weekend. // Simple binary switch example // Connect button or door/window reed switch between // digitial I/O pin 3 (ZONE_1 below) and GND. #include <Sensor.h> #include <SPI.h> #include <EEPROM.h> #include <RF24.h> #include <Bounce2.h> #define ZONE_1 14 // Arduino Digital I/O pin for button/reed switch #define NUMBER_OF_ZONES 6 Sensor gw; Bounce debouncer_1 = Bounce(); Bounce debouncer_2 = Bounce(); Bounce debouncer_3 = Bounce(); Bounce debouncer_4 = Bounce(); Bounce debouncer_5 = Bounce(); Bounce debouncer_6 = Bounce(); int oldValue_1 =-1; int oldValue_2 =-1; int oldValue_3 =-1; int oldValue_4 =-1; int oldValue_5 =-1; int oldValue_6 =-1; void setup() { gw.begin(); for (int i=0; i<NUMBER_OF_ZONES;i++) { // Setup the button pinMode(ZONE_1+i,INPUT); // Activate internal pull-up digitalWrite(ZONE_1+i,HIGH); // After setting up the button, setup debouncer switch (1+i) { case 1: debouncer_1.attach(ZONE_1); debouncer_1.interval(5); break; case 2: debouncer_2.attach(ZONE_1+i); debouncer_2.interval(5); break; case 3: debouncer_3.attach(ZONE_1+i); debouncer_3.interval(5); break; case 4: debouncer_4.attach(ZONE_1+i); debouncer_4.interval(5); break; case 5: debouncer_5.attach(ZONE_1+i); debouncer_5.interval(5); break; } // Register binary input sensor to gw (they will be created as child devices) // You can use S_DOOR, S_MOTION or S_LIGHT here depending on your usage. // If S_LIGHT is used, remember to update variable type you send in below. gw.sendSensorPresentation(ZONE_1+i, S_DOOR); delay(1000); } } // Check if digital input has changed and send in new value void loop() { for (int i=0; i<NUMBER_OF_ZONES;i++) { int num = 1+i; // Get the update value switch (num) { case 1: { debouncer_1.update(); int value_1 = debouncer_1.read(); if (value_1 != oldValue_1) { // Send in the new value gw.sendVariable(ZONE_1+i, V_TRIPPED, value_1==HIGH ? "1" : "0"); // Change to V_LIGHT if you use S_LIGHT in presentation above oldValue_1 = value_1; } break; } case 2: { debouncer_2.update(); int value_2 = debouncer_2.read(); if (value_2 != oldValue_2) { // Send in the new value gw.sendVariable(ZONE_1+i, V_TRIPPED, value_2==HIGH ? "1" : "0"); // Change to V_LIGHT if you use S_LIGHT in presentation above oldValue_2 = value_2; } break; } case 3: { debouncer_3.update(); int value_3 = debouncer_3.read(); if (value_3 != oldValue_3) { // Send in the new value gw.sendVariable(ZONE_1+i, V_TRIPPED, value_3==HIGH ? "1" : "0"); // Change to V_LIGHT if you use S_LIGHT in presentation above oldValue_3 = value_3; } break; } case 4: { debouncer_4.update(); int value_4 = debouncer_4.read(); if (value_4 != oldValue_4) { // Send in the new value gw.sendVariable(ZONE_1+i, V_TRIPPED, value_4==HIGH ? "1" : "0"); // Change to V_LIGHT if you use S_LIGHT in presentation above oldValue_4 = value_4; } break; } case 5: { debouncer_5.update(); int value_5 = debouncer_5.read(); if (value_5 != oldValue_5) { // Send in the new value gw.sendVariable(ZONE_1+i, V_TRIPPED, value_5==HIGH ? "1" : "0"); // Change to V_LIGHT if you use S_LIGHT in presentation above oldValue_5 = value_5; } break; } case 6: { debouncer_6.update(); int value_6 = debouncer_6.read(); if (value_6 != oldValue_6) { // Send in the new value gw.sendVariable(ZONE_1+i, V_TRIPPED, value_6==HIGH ? "1" : "0"); // Change to V_LIGHT if you use S_LIGHT in presentation above oldValue_6 = value_6; } break; } } } }
  • Sensor node stuck in a sending loop?

    4
    0 Votes
    4 Posts
    2k Views
    M
    That seems to be the case. If I shutdown the controller, the sensor node does not see the extra replies from the gateway. Thanks
  • Problem when sending or receiving

    8
    0 Votes
    8 Posts
    3k Views
    epierreE
    Hello, I have the same issue here with libraries 1.3b3 link text I've setted in the temp sensor the node it, commented the metric line in the sensor too. Now when I flash, I have a receive timeout (they are close within 10cm): 0;0;4;11;Relaying message back to gateway. 0;0;4;11;Tx: fr=0,to=0,la=0,ne=0,ci=255,mt=4,ty=13,cr=52: 0;0;4;11;Ack: receive timeout
  • Error when i compile sketch

    8
    0 Votes
    8 Posts
    5k Views
    epierreE
    Hello, good news, it works but here is the solution: ide 10.3 to 1.0.5 fails to work. 1.5.6r2 works but the sketch directory is now called Arduino, and then it works...just select port to ttyACM0 and not COM1 !
  • Relay Node Documentation

    13
    0 Votes
    13 Posts
    6k Views
    MisterEM
    I've tried everything I can think of to get the sensor nodes to talk to the relay node with no luck. Since this thread has become more about relay node troubleshooting and less about documentation I'll move to the following thread: http://forum.mysensors.org/topic/132/relaying-node#922
  • Unable to make it works :(

    12
    0 Votes
    12 Posts
    6k Views
    hekH
    @Tang It's usable with the dev-branch of the vera plugin (small changes in behavior and enumeration of internal commands which probably will mess things up in the agocontrol plugin). ***General comment: I cannot give any support on development-branch as it is under development and things might change fast and without any notice. ***
  • Vera plugin and actuator node inclusion problem

    9
    0 Votes
    9 Posts
    3k Views
    ferpandoF
    Hello again, My sensor node had the radio module too close to the arduino so I thought it might cause interference. I modified it a bit putting the radio 3-4cm away and with the antenna up and it started working like a charm. The problem I have now is that I don't have a node module on vera's interface. I have only the lightswitch. Tx: fr=3,to=0,la=3,ne=0,ci=3,mt=2,ty=2,cr=13: Ack: received OK Message available on pipe 1 Sent ack msg to 0 Rx: fr=0,to=3,la=0,ci=3,mt=3,t=2,cr=134(ok): 0 Message addressed for this node. Message available on pipe 1 Sent ack msg to 0 Rx: fr=0,to=3,la=0,ci=3,mt=1,t=2,cr=55(ok): 1 Message addressed for this node. Relaying message back to gateway. Tx: fr=3,to=0,la=3,ne=0,ci=3,mt=1,ty=2,cr=28: 1 Ack: received OK Incoming change for relay on pin:3, New status: 1 Message available on pipe 1 Sent ack msg to 0 Rx: fr=0,to=3,la=0,ci=3,mt=1,t=2,cr=80(ok): 0 Message addressed for this node. Relaying message back to gateway. Tx: fr=3,to=0,la=3,ne=0,ci=3,mt=1,ty=2,cr=123: 0 Ack: received OK Incoming change for relay on pin:3, New status: 0
  • File "Sleep_n0m1.h" Missing?

    1
    0 Votes
    1 Posts
    935 Views
    No one has replied
  • Vera Ethernet Gateway uno=wiznet 5100 shield

    6
    0 Votes
    6 Posts
    3k Views
    andyunoA
    I change this line to Ethernet.begin(mac); my roots issued an IP address
  • Can't control actuator

    16
    0 Votes
    16 Posts
    7k Views
    N
    ARF!!!!!!! 3 years i use Arduino and i have never pay attention to this line... :-( Thanks!
  • Gateway Not Working

    43
    0 Votes
    43 Posts
    16k Views
    clippermiamiC
    @petewill That got it, thanks
  • Simple network not working.

    4
    0 Votes
    4 Posts
    2k Views
    hekH
    @Markus-Tenghall Hope you'll have lots of fun!
  • 0 Votes
    9 Posts
    3k Views
    marceltrapmanM
    @BulldogLowell said: I have been powering the ProMini with 5V (connect to to the RAW pin) so I can power the sensors at 5V and output 3.3V to the radio. The ProMini... you have to respect that little guy for all it can do, including PWM on 6 pins. Great stuff, you just have to get used to felling like Gulliver in Lilliput when you are working on them. Hmm, I was already looking forward to receiving them. Now even more!
  • Relay Actuator stops responding after a week or so

    5
    0 Votes
    5 Posts
    2k Views
    BulldogLowellB
    @petewill said: I have not put a capacitor between 3.3v and ground on the radio chip though. Is that what you're referring to? What version are you running that is working for you? Thanks! Yeah, putting the capacitor on the radio chip... it really improved the reliability of the radio, in my experience. I'm running libraries as attached: like you I don't want to have to do any sketch upgrades on the sensors. [image: upload-3bb3eb77-a058-4152-b664-551b6fc014f5.png]
  • Arduinon startup complete request strange behaviour (python)

    12
    0 Votes
    12 Posts
    3k Views
    marceltrapmanM
    Yes, all variables are cleared before I re-use them which is completely obsolete even because they are defined in the method and the method is called from within a/the loop. I will ask the Indigo gurus about this...
  • Distance+Humidity, Vera Registration Issue

    4
    0 Votes
    4 Posts
    2k Views
    BulldogLowellB
    @NotYetRated I've been doing the same stuff, creating multi-sensors, making mistakes like that are part of it. I'll post some when I'm back. Fun stuff.
  • Humidity/Temp Program, Serial Monitor Issues

    3
    0 Votes
    3 Posts
    1k Views
    N
    @hari DOH, that was it. Thanks!
  • This is driving me nuts :-)

    7
    0 Votes
    7 Posts
    2k Views
    stofakillerS
    Yep tried with decoupling capacitor, i didn't had 4,7 at home but tried with 2,2 and 10, nothing, Triede with 2 uno, one mega and one diecimila and 2 nano's and 11 nrf24l01 (one with external antenna). And no matter what i try, i can only get 3 boards/antenna's to work... So i have ordered some new antenna's and will buy 4,7 decoupling capacitor's soon...
  • Vera Inclusion Not Working

    19
    0 Votes
    19 Posts
    10k Views
    hekH
    @MisterE Good! If you try the "broken" radio with a capacitor it will probably work fine.
  • Update ino Serial Gateway

    5
    0 Votes
    5 Posts
    3k Views
    P
    the sensor.h was in the good directory but i installed again the arduino software and now everything works great Thank you

14

Online

11.7k

Users

11.2k

Topics

113.0k

Posts