Skip to content

Troubleshooting

Help! Everything just falls apart
2.7k Topics 21.5k Posts
  • rfm69 gateway freezing on rpi 4

    5
    0 Votes
    5 Posts
    66 Views
    mfalkviddM
    @kiesel the Pi gateway only supports the new driver. There is no way to compile it for the old driver.
  • Multiple BME280 sensor for Domoticz

    3
    0 Votes
    3 Posts
    50 Views
    P
    Thanks for the reply and spotting one of my many errors (now corrected amongst others!). Managed to get one of them showing up in Domoticz, lets see if i can get them both in there without the temp hum being crossed over between physical sensors. There seems to be a few posts about this problem.
  • Help: Some explanation requested regarding NACK

    26
    0 Votes
    26 Posts
    5k Views
    K
    @ricmail85 sorry for the late reply. I soldered it to a free pin on the pi and reconfigured the gateway. Use this as part of your configure --extra-cxxflags="-DMY_RFM69_RST_PIN=29" If you connected to pi pin 29.
  • Serial Monitor: Reversed question marks when on battery

    5
    0 Votes
    5 Posts
    51 Views
    YveauxY
    @kiesel said in Serial Monitor: Reversed question marks when on battery: @Yveaux thanks, what could be the reason for them? Baud rate could be slightly off, or crappy connections,or .... And by xomms you mean Serial, not the rfm69, right? Correct
  • ESP8266 Gateway with local sensors stuck in loop

    6
    0 Votes
    6 Posts
    72 Views
    K
    @ShadeX12 Hello, maybe these links will provide the necessary background information to solve your problem: Basics about ESP8266 sleep modes: https://www.losant.com/blog/making-the-esp8266-low-powered-with-deep-sleep Extensive discussion of this topic: https://github.com/esp8266/Arduino/issues/1488 Especially this citation might be interesting: "GPIO16 is connected to CH_DP for deepSleep. and pulled low during deepSleep. if CH_DP goes high the chip wakes up. for what reason the high signal comes from does not mater. can be the RTC timer or any other electrical stuff connected to CH_DP. so adding a pullup to CH_DP and a switch that is normally close to GPIO16 will work fine." Excellent summary, how to work with interrupts in general on the ESP8266: https://techtutorialsx.com/2016/12/11/esp8266-external-interrupts/ Good luck with your project. Karl-Heinz
  • Clock Sketch (RTC) modified for 1.8" LCD

    3
    1
    0 Votes
    3 Posts
    40 Views
    P
    Thanks for the speedy reply, I owe you a beer! works perfectly. [image: 1578420529887-utft-clockb-2.jpg]
  • example of using sleep

    5
    0 Votes
    5 Posts
    197 Views
    markjgabbM
    @Yveaux Cheers that's perfect.... unfortunately my FTDI programmer broke last night so now i have to wait for a new one to arrive so that i can do some more work on it :(
  • [SOLVED] rfm69-node <-> rpi 4 gateway: !TSM:FPAR:NO REPLY

    6
    0 Votes
    6 Posts
    114 Views
    mfalkviddM
    Great work @kiesel, thanks for reporting back.
  • RFM69HCW with ESP8266 Gateway and relay module

    10
    1
    0 Votes
    10 Posts
    308 Views
    zboblamontZ
    @pihome I wouldn't hold much store by claimed/calculated gain, it is a minefield... eg the 110mm whips referred to earlier are commonly referred to as 2dBi, quite a bit shorter than the theoretical 170mm quarter wave.... But crucially, they work flawlessly, on standard power modules, to 50+m, through structures.... Have not yet tested one in the below ground pump chamber, but would not be surprised if it worked. Although tempted to play with the auto-power facility on the RFMs when it was made available on the newer driver version, since the reduced erp would have limited impact on battery life, didn't pursue it. I would suggest seeking to increase power to overcome receive limitations MAY lift the signal out of the mush, but would not make for stable comms.. Others here are better able to advise, but I vaguely recall a portable RSSI test setup having been outlined. So going back to a question from my first post, perhaps a couple of pro-minis so set up with differnent antennae would yield clues toward a solution.
  • 0 Votes
    8 Posts
    124 Views
    Nca78N
    @esfnl said in RPi 3 with Domoticz and RF-link (RFXcom) 'TSP-fail': MySensors is supported MySensors is supported if you connect an NRF24 to the RFXCom as instructed in the link, did you ? As explained, it can only receive information, so as you seem to have no gateway to assign node ID you will need to define your nodes as passive nodes and hard code node id : #define MY_PASSIVE_NODE #define MY_NODE_ID 2 #define MY_PARENT_NODE_IS_STATIC #define MY_PARENT_NODE_ID 0
  • ISR not in IRAM error

    12
    0 Votes
    12 Posts
    2k Views
    K
    I had the same error and realized it was caused in combination with an interrupt routine . Having read the answers above I tried only to introduce this directive ICACHE_RAM_ATTR void Interrupt_routine() { ...code... } ... and it was all fine :)
  • Gateway not responding to I_ID_REQUEST from sensors

    4
    0 Votes
    4 Posts
    130 Views
    mfalkviddM
    Nice work @rody82! Thanks for reporting back.
  • MQ7 sensor (CO) + Arduino Mega 2560 + Expansion shield

    2
    1
    0 Votes
    2 Posts
    162 Views
    skywatchS
    TBH if I were you I'd skip the hassle with the MQ sensor and save up for a better more expensive one. The MQ range are sensitive to a variety of gasses and unless you have a known concentration of the gas to calibrate them to, then they are only indicative of rising or falling amounts of detectable gasses.
  • MQTT gateway issues nrf2401 +W5100 +Arduino Mega

    8
    0 Votes
    8 Posts
    252 Views
    L
    @Yveaux i try your advice to add pull up resistor in my code and it works immediately!!!!!! THANK YOU VERY MUCH !!!!!! i will never find the solution without your help. @MasMat @mfalkvidd thank you too i keep in mind th flowvhart and resistors on the ethernet connector for next issues......
  • MySensors external examples (Zip file contains No valid library)

    3
    0 Votes
    3 Posts
    175 Views
    urbanusU
    Hi, I have the same issue. Using 1.8.2. Downloaded the zip file. Tried to include it from the Arduino drop down but get the same message as above. If I manually open the xip file al the files seem to be there.
  • Arduino Due for SPI TFT screen

    1
    0 Votes
    1 Posts
    91 Views
    No one has replied
  • Multiple DHT22 in one sensor for greenhouse (newbee question)

    multiple dht22
    11
    0 Votes
    11 Posts
    5k Views
    P
    Is there a way i could display the temp and hum for each sensor on an lcd screen? I know how to do this for data that is not using pointers. below is my sketch that flips between 2 sensors on the LCD /* test modified from a v1 basic mutliple multi dht22 sketch Gives correct temp and humidity readings for each dht22 in domoticz (ie not crossed between 1 and 2) Not displaying properly on the LCD yet Domoticz ver 4.11558 beta Gateway 3.2.1 node 3.2.1 09/12/2019 Arduino Mega 1.8 inch TFT LCD Display 128x160 8/16Bit ST7735S x2 DHT22 NRF24 */ #define MY_DEBUG #define MY_RADIO_NRF24 //Mega Pins 49 CE, 53 CSN/CS, 52 SCK, 51 MOSI, 50 MISO #define MY_RF24_CE_PIN 49 #define MY_RF24_CS_PIN 53 #define MY_RF24_PA_LEVEL (RF24_PA_MIN) #define MY_NODE_ID 103 #include <UTFT.h> //LCD 1.8 #include <SPI.h> #include <MySensors.h> #include <DHT.h> #define RELAY1 44 #define RELAY2 45 //static const uint8_t FORCE_UPDATE_N_READS = 10; extern uint8_t BigFont[]; extern uint8_t SmallFont[]; #define NUM_SENSORS 2 unsigned long SLEEP_TIME = 6000; // Sleep time between reads (in milliseconds) //MySensor gw; MyMessage tempMssg(0, V_TEMP); MyMessage humMssg(NUM_SENSORS, V_HUM); byte tempID[NUM_SENSORS] = {0, 1}; byte humID[NUM_SENSORS] = {2, 3}; DHT* dht[NUM_SENSORS]; byte sensorPin[NUM_SENSORS] = {40, 42}; float lastTemp[NUM_SENSORS] = {0.0, 0.0}; float lastHum[NUM_SENSORS] = {0.0, 0.0}; boolean metric = true; //LCD setup UTFT myGLCD(ITDB18SP, 11, 12, 8, 9, 10); // lcd pins 3,2,6,5,4 void setup() { myGLCD.InitLCD(LANDSCAPE);// or PORTRAIT myGLCD.clrScr(); myGLCD.setColor(200, 255, 255); myGLCD.setBackColor(0, 0, 0); myGLCD.setFont(SmallFont); myGLCD.print("Version & Sketch", LEFT, 3); myGLCD.print("V.2 TEST5", LEFT, 16); delay(1000); myGLCD.clrScr(); myGLCD.setFont(SmallFont); myGLCD.setColor(255, 255, 255); myGLCD.print("TH1 OUTSIDE", 2, 2); myGLCD.print("o", 67, 12); myGLCD.print("C", 74, 15); myGLCD.print("%", 150, 15); myGLCD.print("TH2 INSIDE", 2, 36); myGLCD.print("o", 67, 46); myGLCD.print("C", 74, 49); myGLCD.print("%", 150, 49); Serial.begin(9600); // begin(); for (int i = 0; i < NUM_SENSORS; i++) { dht[i] = new DHT; dht[i]->setup(sensorPin[i]); } sendSketchInfo("DHT22 Humidity test5", "2.0"); for (int i = 0; i < NUM_SENSORS; i++) { present(tempID[i], S_TEMP); present(humID[i], S_HUM); } metric = getControllerConfig().isMetric; Serial.println(F("Setup Complete.")); } void loop() { for (int i = 0; i < NUM_SENSORS; i++) { delay(dht[i]->getMinimumSamplingPeriod()); float temperature = dht[i]->getTemperature(); if (isnan(temperature)) { Serial.print(F("Failed reading temperature from DHT")); Serial.println(i); } else if (temperature != lastTemp[i]) { lastTemp[i] = temperature; if (!metric) { temperature = dht[i]->toFahrenheit(temperature); } send(tempMssg.setSensor(i).set(temperature, false)); // no ack Serial.print(F("T")); Serial.print(i); Serial.print(F("= ")); Serial.println(temperature); } myGLCD.setFont(BigFont); myGLCD.setColor(100, 255, 255); myGLCD.printNumF(temperature, 1, 1, 15); // this where something needs to be changed to get it to display each temp separately float humidity = dht[i]->getHumidity(); if (isnan(humidity)) { Serial.print("Failed reading humidity from DHT"); Serial.println(i); } else if (humidity != lastHum[i]) { lastHum[i] = humidity; send(humMssg.setSensor(i).set(humidity, false)); // no ack Serial.print(F("H")); Serial.print(i); Serial.print(F("= ")); Serial.println(humidity); // this where something needs to be changed to get it to display each hum separately myGLCD.setFont(BigFont); myGLCD.setColor(100, 255, 255); myGLCD.printNumF(humidity, 1, 85, 15); } } sleep(SLEEP_TIME); //sleep a bit }```
  • Disable restarting arduino after connect to serial gateway.

    7
    0 Votes
    7 Posts
    287 Views
    YveauxY
    @dawidi great to hear you solved it! Glad I could help.
  • 0 Votes
    1 Posts
    94 Views
    No one has replied
  • Switching gateway issues

    4
    0 Votes
    4 Posts
    263 Views
    electrikE
    Are you sure the node can reach the gateway? So is the connection okay?

17

Online

11.7k

Users

11.2k

Topics

113.1k

Posts