Skip to content

Troubleshooting

Help! Everything just falls apart
2.7k Topics 21.5k Posts
  • Request node infos by arduino ide

    6
    0 Votes
    6 Posts
    2k Views
    hekH
    You can send the information whenever you want. In the provided examples it is placed in the setup() method which only runs once at startup. But nothing stops you from sending the information later (for example after a incoming request message of your choice arrives).
  • Need a little help to alter my sketch

    5
    0 Votes
    5 Posts
    2k Views
    BulldogLowellB
    @Dean said: ving the zero bit, it should just be waiting for a change. I suppose the reason for it to be waiting for both is to reduce the chance of it missing a change in value, which I could see happening, but it may not be a big deal, so I'll change the code and try it. The original code is written for a Momentary switch. Press it and it closes the circuit driving a change of state, release it and again it changes back to an open circuit and the pin state changes again. You have a toggle switch which when 'flipped' remains in its new state.
  • Scene Controller problem

    15
    0 Votes
    15 Posts
    5k Views
    V
    Thanks it worked. you are super
  • Ethernet Gateway: How to turn Off Debug?

    11
    0 Votes
    11 Posts
    5k Views
    siodS
    Ok, so I edited MyConfig.h but now I get this message from Arduino IDE: Sketch uses 31,890 bytes (103%) of program storage space. Maximum is 30,720 bytes. Global variables use 1,564 bytes (76%) of dynamic memory, leaving 484 bytes for local variables. Maximum is 2,048 bytes. So it still doesn´t fit. Any idea how to save some storage space?
  • st=fail on reboot

    2
    0 Votes
    2 Posts
    1k Views
    S
    Was the node awake and listening? st=fail means transmission to that node failed (no "ok" back). If it's battery powered, it's probably sleeping with radio off. One trick seen in another thread; after the node has sent data to the gateway, listen for like 200ms for any incoming packets. In the controller; keep the reboot packet on hold until you hear from the node - then quickly send it.
  • 0 Votes
    7 Posts
    4k Views
    SparkmanS
    @Gambituk I believe you can force the parent ID like this: "gw.begin(NULL,22,false,0);". The last number is the parent ID. Looks like I misread the original issue as in my mind I saw 255, not 25 :blush: Cheers Al
  • Difficulties with openhab

    6
    0 Votes
    6 Posts
    5k Views
    E
    @kimnguu204 have you managed to control your relays and also to get their status?
  • Ardunio n00b needs some help!

    29
    0 Votes
    29 Posts
    10k Views
    E
    I've managed and now I have both (gateway and node) up and running. When I start the bat or sh openhab files the server receive info from my dht11 which is connected to the node. It also receive info from the openhab buttons but I cannot see the dht11 on the local host. I'm following TimO example (http://forum.mysensors.org/topic/655/serial-gateway-connection-to-openhab)! Can anybody explain where is the "sketch"? Thanks !
  • pulsemeter reset itself

    3
    0 Votes
    3 Posts
    1k Views
    SweebeeS
    Well i could save it every 10th pulse and check if its higher than the 10 pulses before that? if not, current pulse is the pulse that was saved 10 pulses before?
  • Not working code. Where is the error? (NFC gate opener)

    nfc arduino ver
    9
    0 Votes
    9 Posts
    4k Views
    T
    hello all , @mmuukkii your code really looks fantastic , but you said that bug , had you finished? I am not able to fix it. thx
  • Serial Port for Node

    2
    0 Votes
    2 Posts
    1k Views
    BobCB
    @BobC OK no problem. A new idea. As I only need to Tx to the player I'll just do a bit of bit banging to a pin. That should work just fine. The idea behind the project is to add a door bell to my system which has selectable MP3 files to play when the 'button' is pressed. Really quite a fun thing to have a personalised message to welcome visitors to special events rather than just a DingDong.
  • Sensor works only connected through FTDI... Please help

    6
    0 Votes
    6 Posts
    2k Views
    Moshe LivneM
    @Andreas-Maurer In retrospect it is very obvious....
  • 0 Votes
    9 Posts
    5k Views
    D
    @Moshe-Livne said: @drock1985 if you got it from the link on the store (A+A+A+ or some other funny name) they actually send very quickly. I got mine within a week. But mail from China moves in mysterious ways.... Remember: Patience comes for those who wait! Lol, that's what people always tell me. But how does one with no patience first wait to learn the value of patience ;) And thanks for the hope at the end of the tunnel, I did go through the links here on the site, crossing fingers :)
  • ST=Fail = Add higher cap?

    11
    0 Votes
    11 Posts
    5k Views
    sundberg84S
    @hek @Sparkman Thank you for input. I came home, change back to original radio and attached usb/serial debug with exact the same setup as last night - and everything worked! A bit frustrating but I dont know what happened. I cant blame the hot day because it was in the celler with good temp when it quit... Well, ill let it run and see what happens...
  • Doorbell hack

    13
    0 Votes
    13 Posts
    5k Views
    M
    @BulldogLowell said: and you cn try this: /* this is set up for a 4 pin recv unit GND DATA DATA VCC plug GND into D2, DATA into D3 and D4, and VCC into D5 */ #include <MySensor.h> #include <SPI.h> #include <Bounce2.h> #include <RCSwitch.h> RCSwitch mySwitch = RCSwitch(); #define CHILD_ID 3 #define VCC_PIN 5 // source 5V up to 40mA from this pin #define GND_PIN 2 // sink up to 40mA on this pin #define DATA_PIN 3 // external int 1 on Uno MySensor gw; const int bell = -251; // This is the value that my 433mhz doorbell sends out when button is pushed boolean tripped = false; unsigned long timerStart; // Change to V_LIGHT if you use S_LIGHT in presentation below MyMessage msg(CHILD_ID, V_TRIPPED); void setup() { gw.begin(); // 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. See "msg" above. gw.present(CHILD_ID, S_DOOR); // 433mhz Part pinMode(DATA_PIN, INPUT); // just leave D4 tristated pinMode(GND_PIN, OUTPUT); digitalWrite(GND_PIN, LOW); pinMode(VCC_PIN, OUTPUT); digitalWrite(VCC_PIN, HIGH); mySwitch.enableReceive(1); // Receiver on interrupt 1 => that is pin D3 } void loop() { if (mySwitch.available()) { tripped = (mySwitch.getReceivedValue() == bell); if (tripped) { gw.send(msg.set(true)); timerStart = millis(); Serial.println(F("Ding Dong!!")); } mySwitch.resetAvailable(); //<<<<<<<<<< I think you want this here... I looked at the library on GitHub } if (tripped && millis() - timerStart > 5000UL) { gw.send(msg.set(false)); Serial.println(F("no activity")); tripped = false; } } Hmm, still nothing. It seems to be the 433mhz reciver part that is not working.
  • Distance sensor messure strange values

    17
    0 Votes
    17 Posts
    8k Views
    C
    Hi there, it's me again. I tried some things which read in the arduino froum (http://forum.arduino.cc/index.php?topic=153700.0) without any good result. I also get a new sensor and there is still no change of it's behaviour. I read in the forum that it could be a sensor that uses RX/TX to send its information. Does any one know something about that?
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    51 Views
    No one has replied
  • Trouble combining sketches for temp and motion control

    24
    0 Votes
    24 Posts
    10k Views
    D
    @Sparkman yes it's the same sketch hek uploaded word for word. Powering using a phone charger 5v 1amp. Im putting it down to I might have a faulty pin 6 or the sketch doesn't play well with Vera and the plugin. Does anyone have another sketch?
  • gw.sleep issues

    9
    0 Votes
    9 Posts
    5k Views
    G
    @barduino Yeah the Temp bounces around since I removed the sleep, it is far less variable with the sleep. I am going to try with the gw.wait, i think this is the one that still processes while it waits. If not, I will try millis.
  • Problems with powermeter pulse sensor

    2
    0 Votes
    2 Posts
    1k Views
    F
    hmm think i solved the problem. I tried with an arduino uno instead and now the sketch works fine. Very strange :(

33

Online

11.9k

Users

11.2k

Topics

113.3k

Posts