Skip to content

Troubleshooting

Help! Everything just falls apart
2.7k Topics 21.5k Posts
  • Waterpulse Sensor - ESP8266GW without Radio only as node

    14
    0 Votes
    14 Posts
    3k Views
    gohanG
    The esp8266 is a complete stand alone mysensors network, it can't interact with the other unless you use a controller in between
  • RFM69 range issues

    45
    0 Votes
    45 Posts
    19k Views
    M
    @Chester I've seen that page, thanks. If you read the post I'm referring to, @executivul used some specific procedure to tune the antenna further than just using the theoretical length.
  • Sensebender GW is not recognized by Domoticz on Synology

    1
    0 Votes
    1 Posts
    507 Views
    No one has replied
  • Unexpected behavior with satatic IP adress (Ethernet Gateway)

    7
    1
    0 Votes
    7 Posts
    1k Views
    S
    But, when I use example from arduino.cc site everything work fine. (Links at first post). Tested on Nano, uno r3 and breadboard (328p with optiboot 6.2).
  • [SOLVED]Two nodes with relays interfering

    26
    0 Votes
    26 Posts
    6k Views
    MasMatM
    @mfalkvidd That would definitely polish it up! :D Cheers!!
  • [SOLVED] Weird serial GW problem

    3
    0 Votes
    3 Posts
    1k Views
    kisse66K
    One more update: have not fully verified, but it seems like this was RF interference issue (maybe a transmitted ACK??). I added a 100n ceramic cap to power in line (at the GPIO connector) and 10nF caps from UART TX and RX to ground (small SMD caps at the connector). I also moved the antenna a bit higher by soldering coaxial cable to RFM and then peeling off the outer shield of the coax for the ~80mm. Problem gone! I'll add a ground plane to the antenna by putting aluminium tape to the top cover (missing here) and connecting the coax shield to it. Makes a better antenna and better shielding towards RPi. Have not re-checked range yet, but checked the UART signals with scope and the 10nF looks good as noise filter. [image: 1498848691834-wp_20170630_003-2-resized.jpeg]
  • 1 Votes
    11 Posts
    2k Views
    sundberg84S
    @mpp delays between transmissions? Not sure what you mean - Sometimes I use wait() to get a more stable reading before sending it. RFM69 works great in MySensors - I have built a PCB which im testing at the moment with a standard pro mini, RFM69w and 2xAA and its looking good (it will run for months, maybe year!)
  • MQCalibration was not declared in this scope, what`s wrong?

    3
    0 Votes
    3 Posts
    1k Views
    asmmanA
    Thanks for the tip about inserting the code, sorry! In this example I used two scratch specified and Light Sensor, in order to use the smoke sensor and light sensor in one gateway. Individually, these scratching are working properly and the WTO combine of together does not work, error appears. Thank you for understanding! see here: sendSketchInfo("Light Sensor+GaS_Smoke_MQ2", "1.0");
  • Please, need help getting RPi controller working with MQTT

    4
    0 Votes
    4 Posts
    856 Views
    Ethan KalebaughE
    Alright I've soldered a 4.7uf cap across each nrf power and ground, but I am still getting the exact same behavior. Any more suggestions?
  • Repeater Node not working, pls help debug...

    2
    0 Votes
    2 Posts
    992 Views
    gohanG
    NACK usually it is a range issue if the radio module is working correctly. Try putting repeater node closer to the gateway
  • Read string from serial port and send it to gateway

    11
    0 Votes
    11 Posts
    5k Views
    eSumoE
    OK. Thanks. I try...
  • NRF24L01 & HLK-pm01

    4
    0 Votes
    4 Posts
    1k Views
    rozpruwaczR
    Use debugging LED :)
  • RS485 network not running... please help!

    21
    0 Votes
    21 Posts
    5k Views
    kduinoK
    Hi Kisse66, thank you very much for this advice. Most of the forum writers are pointing on the terminating resistors, but in my experience they are not the key. I put two 680R from B to GND and A to 5V and the reliability I experienced has improved tremendously! Thank you for the hint. Another question I have: The gateway is receiving the messages now but there is no ACK. How can I ask for an ack for security relevant messages? Thank you By kduino
  • NRF24l01+ vs. NRF24l01+ pa + lna

    22
    0 Votes
    22 Posts
    16k Views
    M
    In my case, the most important things for a successful communication are: A good 3.3V power source (I used an adapter for nrf24l01 + with AMS1117); A 10uF capacitor (very important). In my case a 4.7uF capacitor was sufficient to pilot the nrf24l01 + PA + LNA at RF24_PA_LOW level.
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • Adafruit Feather M0 RFM69HCW with MySensors?

    feather adafruit rfm69hcw atsamd21g18 samd
    17
    0 Votes
    17 Posts
    8k Views
    S
    Hey guys aside from these power-consumption issues, I am now running the Feather as gateway and node. And I get a strange problem. The gateway is attached to a raspberry pi via usb (by-id), which runs fhem. And everything works great for about an hour to 1 1/2. Then somehow the gateway stops receiving/communicating. I already tried an active USB-Hub incase the power consumption was too high for too long. But that didn't help. I have to reset the gateway and node to make it work again. Did anybody else ever experience similar behaviour?
  • Analog to digital how ?

    5
    0 Votes
    5 Posts
    1k Views
    R
    All working fine sometimes the pir reaction could be a bid faster, and sometimes i get a false reading think i'll have to put the pir signal lines to the ground with an resistor. Any advice is welcome, to make thing faster, and less complex. else use this with fun...... #define MY_RADIO_NRF24 #define MY_REPEATER_FEATURE #define MY_DEBUG #include <Wire.h> // Wire library t.b.v. I²C #include <MySensors.h> byte GPIOA = 0x12; // GPIOA adres in 16-bit mode, is directe aansturing 1e groep van 8 I/O poorten. byte GPIOB = 0x13; // GPIOA adres in 16-bit mode, is directe aansturing 1e groep van 8 I/O poorten. boolean sensorBovenActive; // Status of Pir motion sensor 2. boolean sensorOnderActive; // Status of Pir motion sensor 1. boolean sensorKelderActive; // Status of Pir motion sensor 0. int PIR0new; // Pir motion sensor 0 updated value "Kelder". int PIR0old; // Pir motion sensor 0 old value "Kelder". int PIR1new; // Pir motion sensor 1 updated value "sensorOnderActive". int PIR1old; // Pir motion sensor 1 old value "sensorOnderActive". int PIR2new; // Pir motion sensor 2 updated value. "sensorBovenActive" int PIR2old; // Pir motion sensor 2 old value. sensorBovenActive" int StairDelay = 250; // Delay for stairs int StairOn = 30000; // Delay to keep stair light on #define MY_NODE_ID 30 #define CHILD_ID_PIR00 31 // Id of the sensor child #define CHILD_ID_PIR01 32 // Id of the sensor child #define CHILD_ID_PIR02 33 // Id of the sensor child void presentation(){ // Send the sketch version information to the gateway and Controller sendSketchInfo("Trap Controller", "4.0"); // Register all sensors to gw (they will be created as child devices) present(CHILD_ID_PIR00, S_MOTION, "PIR Sensor Kelder"); present(CHILD_ID_PIR01, S_MOTION, "PIR Sensor Trap Onder"); present(CHILD_ID_PIR02, S_MOTION, "PIR Sensor Trap Boven"); } // Initialize motion message MyMessage msgPIR00(CHILD_ID_PIR00, V_TRIPPED); MyMessage msgPIR01(CHILD_ID_PIR01, V_TRIPPED); MyMessage msgPIR02(CHILD_ID_PIR02, V_TRIPPED); // the setup routine runs once when you press reset: void setup() { Wire.begin(); // wake up I2C bus // set I/O pins to outputs Wire.beginTransmission(0x20); // Start adress of mcp23017 Wire.write(0x00); // IODIRA register Wire.write(0x00); // set all of port A to outputs Wire.endTransmission(); Wire.beginTransmission(0x20); Wire.write(0x01); // IODIRB register Wire.write(0x00); // set all of port B to outputs Wire.endTransmission(); } // the loop routine runs over and over again forever: void loop() { Pir0lezen(); Pir1lezen(); Pir2lezen(); effneerop(); effopneer(); effKelder(); } void Pir0lezen() { int PIR0new = analogRead(A0); if (PIR0new >=900) { sensorKelderActive = true; // Send status to Domoticz send (msgPIR00.set(sensorKelderActive?"1":"0")); Serial.println("PIR0new----"); Serial.println(PIR0new); PIR0old = PIR0new; sensorKelderActive = false; send (msgPIR00.set(sensorKelderActive)); }} void Pir1lezen() { int PIR1new = analogRead(A1); if (PIR1new != PIR1old && PIR1new >=710) { sensorOnderActive = true ; sensorBovenActive = false ; // Send status to Domoticz send (msgPIR01.set(sensorOnderActive?"1":"0")); Serial.println("PIR1----"); Serial.println(PIR1new); PIR1old = PIR1new; }} void Pir2lezen() { int PIR2new = analogRead(A2); if (PIR2new != PIR2old && PIR2new >=710) { sensorBovenActive = true ; sensorOnderActive = false ; // Send status to Domoticz send (msgPIR02.set(sensorBovenActive?"1":"0")); Serial.println("PIR2----"); Serial.println(PIR2new); PIR2old = PIR2new; }} void effopneer() { if (sensorOnderActive==true && sensorBovenActive==false){ Serial.println("PIR1--aan"); sensorOnderActive = false ; setLEDA(B01111111); // Tree 1 delay(StairDelay); setLEDA(B00111111); // Tree 2 delay(StairDelay); setLEDA(B00011111); // Tree 3 delay(StairDelay); setLEDA(B00001111); // Tree 4 delay(StairDelay); setLEDA(B00000111); // Tree 5 delay(StairDelay); setLEDA(B00000011); // Tree 6 delay(StairDelay); setLEDA(B00000001); // Tree 7 delay(StairDelay); setLEDA(B00000000); // Tree 8 delay(StairDelay); setLEDB(B01111111); // Tree 9 delay(StairDelay); setLEDB(B00111111); // Tree 10 delay(StairDelay); setLEDB(B00011111); // Tree 11 delay(StairDelay); setLEDB(B00001111); // Tree 12 delay(StairDelay); setLEDB(B00000111); // Tree 13 delay(StairDelay); setLEDB(B00000011); // Tree 14 send (msgPIR01.set(sensorOnderActive)); // switch off before delay delay(StairOn); setLEDA(B11111111); // all off setLEDB(B11111111); // all off Serial.println("PIR1--uit"); }} void effneerop() { if (sensorOnderActive==false && sensorBovenActive==true){ Serial.println("PIR2--aan"); sensorBovenActive = false ; setLEDB(B11111011); // Tree 14 delay(StairDelay); setLEDB(B11110011); // Tree 13 delay(StairDelay); setLEDB(B11100011); // Tree 12 delay(StairDelay); setLEDB(B11000011); // Tree 11 delay(StairDelay); setLEDB(B10000111); // Tree 10 delay(StairDelay); setLEDB(B00000011); // Tree 9 delay(StairDelay); setLEDA(B11111110); // Tree 8 delay(StairDelay); setLEDA(B11111100); // Tree 7 delay(StairDelay); setLEDA(B11111000); // Tree 6 delay(StairDelay); setLEDA(B11110000); // Tree 5 delay(StairDelay); setLEDA(B11100000); // Tree 4 delay(StairDelay); setLEDA(B11000000); // Tree 3 delay(StairDelay); setLEDA(B10000000); // Tree 2 delay(StairDelay); setLEDA(B00000000); // Tree 1 send (msgPIR02.set(sensorBovenActive)); delay(StairOn); setLEDA(B11111111); // all off setLEDB(B11111111); // all off Serial.println("PIR2--uit"); }} void effKelder() { } void setLEDA(byte value) { Wire.beginTransmission(0x20); Wire.write(GPIOA); // gpioa Wire.write(byte(value)); // set LEDs volgens waarde 'value' Wire.endTransmission(); } void setLEDB(byte value) { Wire.beginTransmission(0x20); Wire.write(GPIOB); // gpiob Wire.write(byte(value)); // set LEDs volgens waarde 'value' Wire.endTransmission(); } void bonuseff() { setLEDB(B11111011); // Tree 14 delay(StairDelay); setLEDB(B11110111); // Tree 13 delay(StairDelay); setLEDB(B11101111); // Tree 12 delay(StairDelay); setLEDB(B11011111); // Tree 11 delay(StairDelay); setLEDB(B10111111); // Tree 10 delay(StairDelay); setLEDB(B01111111); // Tree 9 delay(StairDelay); setLEDA(B11111110); // Tree 8 delay(StairDelay); setLEDA(B11111101); // Tree 7 delay(StairDelay); ; setLEDA(B11111011); // Tree 6 delay(StairDelay); ; setLEDA(B11110111); // Tree 5 delay(StairDelay); setLEDA(B11101111); // Tree 4 delay(StairDelay); setLEDA(B11011111); // Tree 3 delay(StairDelay); setLEDB(B10111110); // Tree 2 delay(StairDelay); setLEDB(B01111111); // Tree 1 delay(StairDelay); setLEDA(B10111111); // Tree 2 delay(StairDelay); setLEDA(B11011111); // Tree 3 delay(StairDelay); setLEDA(B11101111); // Tree 4 delay(StairDelay); setLEDA(B11110111); // Tree 5 delay(StairDelay); setLEDA(B11111011); // Tree 6 delay(StairDelay); setLEDA(B11111101); // Tree 7 delay(StairDelay); setLEDA(B11111110); // Tree 8 delay(StairDelay); setLEDB(B01111111); // Tree 9 delay(StairDelay); setLEDB(B10111111); // Tree 10 delay(StairDelay); setLEDB(B11011111); // Tree 11 delay(StairDelay); setLEDB(B11101111); // Tree 12 delay(StairDelay); setLEDB(B11110111); // Tree 13 delay(StairDelay); setLEDB(B11111011); // Tree 14 }```
  • HELP !! cannot make Sensor work with RFM69

    25
    0 Votes
    25 Posts
    8k Views
    M
    I also have a problem with rfm69. NRF24 always works. RFM69 can operate for hours and then disconnect and can not connect to the gateway for a long time.
  • Pls help debug this...

    3
    0 Votes
    3 Posts
    899 Views
    siodS
    @tbowmo I removed the 100 uF cap, now it is working :thumbsup:
  • HomeAssistant > MySensors:MQTT relay actuator works but very slow

    1
    0 Votes
    1 Posts
    552 Views
    No one has replied

14

Online

11.7k

Users

11.2k

Topics

113.1k

Posts