Skip to content

Troubleshooting

Help! Everything just falls apart
2.7k Topics 21.5k Posts
  • ESP8266 fatal error: gdb_hooks.h: No such file or directory [solved]

    1
    2 Votes
    1 Posts
    2k Views
    No one has replied
  • Communication problem or?

    10
    0 Votes
    10 Posts
    2k Views
    skywatchS
    @raptorjr said in Communication problem or?: A 47uF tantalum capacitor worked. That is good news! The node started as a prototype with the plan to make it properly when I saw it >was working. But it is more fun to do something new, at least when the node is >working. I know all about how that one goes, at least it is not just me! ;)
  • Occasional MySensors network drop outs

    14
    1 Votes
    14 Posts
    2k Views
    skywatchS
    @Nick-Willis It's simply a case of attaching the serial Tx/Rx on the pi to the Tx/Rx on the arduino (use 3.3V arduino or a level shifter if using 5V pro mini).... Don'e be tempted to use the pi 3.3V supply for the radio or pro mini - take the 5V supply from the pi and use this via a regulator to get cleaner 3.3v...... Originally I used the 662k, but now use AMS1117 3.3V as it is cleaner DC and can give more current for the radio tx pulses.
  • OrangePi and 2.3.0

    library 2.3.0 orangepi
    2
    3
    0 Votes
    2 Posts
    827 Views
    R
    Somebody can prompt in what the problem? and how to cope with it
  • water flow sensor YF-B5

    4
    0 Votes
    4 Posts
    2k Views
    YveauxY
    @niccodemi said in water flow sensor YF-B5: convert flow in l/min to pulses per liter You can; read the example code I pointed to. And as always, Google is your friend
  • Trying to get a dual mode sleep going.

    4
    0 Votes
    4 Posts
    726 Views
    skywatchS
    :) Happy to have helped! ;)
  • WiFi Gateway (ESP8266) - reconnect to wifi router

    19
    0 Votes
    19 Posts
    8k Views
    pihomeP
    @thomasdr thank you for the info, and sorry for late reply, changing wait(500) to delay(500) worked.
  • 0 Votes
    9 Posts
    2k Views
    W
    Just wanted to answer the question myself: I had to solder a decoupling-capacitor to the radios and everything worked: https://www.mysensors.org/build/connect_radio#connecting-a-decoupling-capacitor
  • cannot save water meter in arduino EEPROM

    16
    0 Votes
    16 Posts
    3k Views
    H
    @mickecarlsson I do not think the actual problem is with writing the EEPROM, as the EEPROM.put function is used and this will Write any data type or object to the EEPROM. EEPROM.put(1,totalMilliLitres); as the totalMilliLitres is already an unsigned variable that should be good for up to ten digits. unsigned long totalMilliLitres; // unsigned long max 4,294,967,294 on UNO/Mega The only problem area i can see is the use of volatile byte pulseCount; which severely limits the pulse counts to 255 and whould be better as volatile unsigned int pulseCount; // volatile byte pulseCount; byte max 255 More clarification of the actual problem is needed.
  • Very strange bugs. 2.3. RFM69.

    11
    0 Votes
    11 Posts
    2k Views
    KoreshK
    I've written a small article https://forum.mysensors.org/topic/9484/mysensors-2-3-and-rfm69-new-driver-problems-and-solutions
  • [SOLVED] 2.2.0 node - sleep() problem

    11
    0 Votes
    11 Posts
    2k Views
    bjacobseB
    Great that you solved your problem, I still recommend to replace DHT22 to a a better sensor that uses less current consumption and also is working with a lower voltage. This will save plenty of money else spend on replacing batteries too often
  • Colour temperature?

    7
    0 Votes
    7 Posts
    1k Views
    alexsh1A
    @mfalkvidd For now, I left it all in Lux. I have to think about what to do next. This is for VEML6040 - I intent to use it to manage RGBW LED colours behind my TV
  • Issue while interfacing NRF24L01 and RFID on same arduino

    15
    0 Votes
    15 Posts
    3k Views
    G
    @123cheatn I'm trying very similar project but could not achieve it :( On master Arduino, RFID UID ID will be read and send to 4 other Arduinos; they will react regarding to UID ID (activate a relay, led etc.). Also those 4 Arduinos have MFRC522 but won't be sending RF UID ID's, just reacting depending on which UID ID read by their reader. I think I could not solve multiple SPI module code :/ Here is my code; #include <SPI.h> #include <MFRC522.h> #include <RF24.h> #include <NRF24.h> #include <nRF24L01.h> NRF24 radio; unsigned long time_now = 0; int blinkled = 300; int value; int displace = 1000; unsigned long CountDownStarted = 0; int CountdownState = 0; int Set60State = 0; int Set90State = 0; int EngineState = 0; #define EnginePin 6 #define StartPin 7 #define Set90Pin 8 #define Set60Pin 9 #define TestLed 13 String cardUID ; #define SS_RF 10 #define RST 5 #define SS_NRF 53 MFRC522 mfrc522(SS_RF, RST); // Create MFRC522 instance. void setup() { pinMode(EnginePin, OUTPUT); pinMode(StartPin, OUTPUT); pinMode(Set90Pin, OUTPUT); pinMode(Set60Pin, OUTPUT); Serial.begin(115200); // Initiate a serial communication SPI.begin(); // Initiate SPI bus radio.setAddress(0xD2); radio.begin(40, 53); radio.setChannel(124); radio.setRetries(0, 15); radio.setActive(true); pinMode(SS_RF, OUTPUT); pinMode(SS_NRF, OUTPUT); pinMode(TestLed, OUTPUT); digitalWrite(EnginePin, LOW); digitalWrite(StartPin, LOW); digitalWrite(Set90Pin, LOW); digitalWrite(Set60Pin, LOW); digitalWrite(TestLed, LOW); } void loop() { radio.startListening(); if (CountdownState == 1) { CountDown(); } // Look for new cards if ( ! mfrc522.PICC_IsNewCardPresent()) { return; } // Select one of the cards if ( ! mfrc522.PICC_ReadCardSerial()) { return; } //Show UID on serial monitor Serial.print("UID tag :"); String content = ""; byte letter; for (byte i = 0; i < mfrc522.uid.size; i++) { Serial.print(mfrc522.uid.uidByte[i] < 0x10 ? " 0" : " "); Serial.print(mfrc522.uid.uidByte[i], HEX); content.concat(String(mfrc522.uid.uidByte[i] < 0x10 ? " 0" : " ")); content.concat(String(mfrc522.uid.uidByte[i], HEX)); } Serial.println(); Serial.print("Message : "); content.toUpperCase(); if (content.substring(1) == "E0 0A DD A4" || content.substring(1) == "C0 57 FE A7" || content.substring(1) == "B0 AB 9F A5" || content.substring(1) == "50 51 1B A4" ) { if (EngineState == 0) { digitalWrite(EnginePin, HIGH); Serial.print(F("Sending Engine Code... ")); bool sent = radio.send(0xD3, "E0 0A DD A4"); bool sent2 = radio.send(0xD4, "E0 0A DD A4"); bool sent3 = radio.send(0xD5, "E0 0A DD A4"); bool sent4 = radio.send(0xD6, "E0 0A DD A4"); Serial.println(sent ? "OK" : "failed"); Serial.println(sent2 ? "OK" : "failed"); Serial.println(sent3 ? "OK" : "failed"); Serial.println(sent4 ? "OK" : "failed"); EngineState = 1; delay(50); } if (EngineState == 1) { bool sent = radio.send(0xD3, "E0 0A DD A4"); bool sent2 = radio.send(0xD4, "E0 0A DD A4"); bool sent3 = radio.send(0xD5, "E0 0A DD A4"); bool sent4 = radio.send(0xD6, "E0 0A DD A4"); Serial.println(sent ? "OK" : "failed"); Serial.println(sent2 ? "OK" : "failed"); Serial.println(sent3 ? "OK" : "failed"); Serial.println(sent4 ? "OK" : "failed"); delay(100); } } if ((EngineState != 0) && (content.substring(1) == "CD 9E 08 75" || content.substring(1) == "7D A6 4F 75" || content.substring(1) == "8D 2B 55 75" || content.substring(1) == "DD D1 6C 3E" )) { if (CountdownState == 0) { Serial.println("Countdown Started"); digitalWrite(StartPin, HIGH); delay(50); digitalWrite(StartPin, LOW); Serial.print(F("Sending Start Code... ")); bool sent = radio.send(0xD3, "CD 9E 08 75"); bool sent2 = radio.send(0xD4, "CD 9E 08 75"); bool sent3 = radio.send(0xD5, "CD 9E 08 75"); bool sent4 = radio.send(0xD6, "CD 9E 08 75"); Serial.println(sent ? "OK" : "failed"); Serial.println(sent2 ? "OK" : "failed"); Serial.println(sent3 ? "OK" : "failed"); Serial.println(sent4 ? "OK" : "failed"); CountdownState = 1; } if (CountdownState == 1) { Serial.print(F("Sending Start Code... ")); bool sent = radio.send(0xD3, "CD 9E 08 75"); bool sent2 = radio.send(0xD4, "CD 9E 08 75"); bool sent3 = radio.send(0xD5, "CD 9E 08 75"); bool sent4 = radio.send(0xD6, "CD 9E 08 75"); Serial.println(sent ? "OK" : "failed"); Serial.println(sent2 ? "OK" : "failed"); Serial.println(sent3 ? "OK" : "failed"); Serial.println(sent4 ? "OK" : "failed"); delay(100); } } if ((EngineState != 0) && (content.substring(1) == "7D 1C 65 5C" || content.substring(1) == "AD C2 5C 74")) { if (Set90State == 0) { digitalWrite(Set90Pin, HIGH); delay(50); digitalWrite(Set90Pin, LOW); Serial.print(F("Sending 90' Code... ")); bool sent = radio.send(0xD3, "7D 1C 65 5C"); bool sent2 = radio.send(0xD4, "7D 1C 65 5C"); bool sent3 = radio.send(0xD5, "7D 1C 65 5C"); bool sent4 = radio.send(0xD6, "7D 1C 65 5C"); Serial.println(sent ? "OK" : "failed"); Serial.println(sent2 ? "OK" : "failed"); Serial.println(sent3 ? "OK" : "failed"); Serial.println(sent4 ? "OK" : "failed"); Set90State = 1; delay(50); } else { bool sent = radio.send(0xD3, "7D 1C 65 5C"); bool sent2 = radio.send(0xD4, "7D 1C 65 5C"); bool sent3 = radio.send(0xD5, "7D 1C 65 5C"); bool sent4 = radio.send(0xD6, "7D 1C 65 5C"); Serial.println(sent ? "OK" : "failed"); Serial.println(sent2 ? "OK" : "failed"); Serial.println(sent3 ? "OK" : "failed"); Serial.println(sent4 ? "OK" : "failed"); delay(100); } } if ((EngineState != 0) && (content.substring(1) == "20 C4 18 A4" || content.substring(1) == "1D AE 2C 75")) { if (Set60State == 0) { digitalWrite(Set60Pin, HIGH); delay(50); digitalWrite(Set60Pin, LOW); bool sent = radio.send(0xD3, "20 C4 18 A4"); bool sent2 = radio.send(0xD4, "20 C4 18 A4"); bool sent3 = radio.send(0xD5, "20 C4 18 A4"); bool sent4 = radio.send(0xD6, "20 C4 18 A4"); Serial.println(sent ? "OK" : "failed"); Serial.println(sent2 ? "OK" : "failed"); Serial.println(sent3 ? "OK" : "failed"); Serial.println(sent4 ? "OK" : "failed"); Set60State = 1; delay(50); } else { bool sent = radio.send(0xD3, "20 C4 18 A4"); bool sent2 = radio.send(0xD4, "20 C4 18 A4"); bool sent3 = radio.send(0xD5, "20 C4 18 A4"); bool sent4 = radio.send(0xD6, "20 C4 18 A4"); Serial.println(sent ? "OK" : "failed"); Serial.println(sent2 ? "OK" : "failed"); Serial.println(sent3 ? "OK" : "failed"); Serial.println(sent4 ? "OK" : "failed"); delay(100); } } if (radio.available()) { char buf[32]; uint8_t numBytes = radio.read(buf, sizeof(buf)); Serial.print(F("Received: ")); Serial.println(buf); } } void CountDown() { time_now = millis(); value = 128 + 127 * cos(2 * PI / blinkled * time_now); analogWrite(TestLed, value); //Serial.println(value); } Do you have any idea to solve this?
  • [solved] RS485 nodes stop sending data after some hours or days

    74
    1 Votes
    74 Posts
    19k Views
    rejoe2R
    Everything's working like a charm now :grinning: , so thread is marked as [solved] now. One more big "Thank you" to everybody helping to get this finally done :confetti_ball: :clap: ! In addition a picture of my Node 2 - the one I did the most rework over time until now also showing the violet MCP2551 module mentionned above. [image: 1530172152975-mcp2551_node_a-resized.png]
  • 0 Votes
    7 Posts
    2k Views
    gohanG
    In arduino IDE, boards manager [image: 1529873290313-f4bc9c8e-0716-46a1-8264-54b05d8aa6ff-image.png]
  • RFM69 new driver delay

    67
    0 Votes
    67 Posts
    8k Views
    pepsonP
    Ok tested as show in previus post. And the same problem. Maybe a little better. But maybe no... On 2.2.0 is a very very better.
  • RF24 MQTT Gateway not receiving messages

    2
    0 Votes
    2 Posts
    970 Views
    mfalkviddM
    @elelement hi and welcome to the MySensors community! The gateway debug low shows that the gateway is not receiving any MySensors messages. What does the debug log from your sensor nodes say?
  • The gateway to the Raspberry Pi does not give the node address.

    2
    0 Votes
    2 Posts
    968 Views
    mfalkviddM
    Hi @ksandr, welcome to the forum! Handing out node IDs is handled by the controller. If you haven't already, connect a controller to the gateway.
  • Auto reset node.

    10
    0 Votes
    10 Posts
    2k Views
    gohanG
    The capacitor is probably the best option to solve stability issues on nrf24
  • Domoticz TEXT sensor triggering

    45
    0 Votes
    45 Posts
    8k Views
    K
    @alowhum There are some changes in V_TEXT type in latest builds. Read this: https://forum.mysensors.org/topic/9340/domoticz-v_text-sensor-now-bidirectional

33

Online

11.7k

Users

11.2k

Topics

113.1k

Posts