Great work

Replies
9
Voices
2
Jim Miller

Hello I have been following your “updates” to the weather station project and I believe I will use your updated code and “purchase a new version of the PCB should you guys put it out there.

  • Edit
    admin

    Let's see if we can get you up and running! I see the watchdog is resetting (from your log file). Are you using MQTT? If not, did you comment out #MQTT in secrets.h?

    • Edit
      Jim Miller

      Hello , Ok I was going to use MQTT but cant get it into my HomeAssistant (however I can see everything in the MQTT Explorer you showed elsewhere) I can comment out in secrets as it could help troubleshoot and try it.

      • Edit
        Jim Miller

        This is the new serial Monitor log ...It seems to actually start to run and connect etc..gets through the initial readings then the "Guru Meditation Error" I am looking for a better serial debugger not sure Ill understand that output either lol.

        Wakeup reason: 0
        Wakeup was not caused by deep sleep: 0
        Connecting to WiFi
        Connecting to BLYNK
        Date:12 09 2021 Time: 05:36:19
        Time to next wake: 161 seconds
        No Wind dataWindSpeed: 0.000000
        Analog value: 4095 Wind direction: 0
        Requesting temperatures...
        DONETemperature for the device 1 (index 0) is: 26.6 C: 79.9 F
        LUX value: -3.00
        photoresistor value: 0 photoresistor
        BME barometric pressure: 29.31 BME temperature: 73.78 BME humidity: 41.36
        Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled.
        Core 1 register dump:
        PC : 0x400d53d3 PS : 0x00060e30 A0 : 0x800d5561 A1 : 0x3ffb1e40
        A2 : 0x00000000 A3 : 0x3ffb1e9e A4 : 0x00000001 A5 : 0x00000000
        A6 : 0x00000000 A7 : 0x3ffb1e40 A8 : 0x00000000 A9 : 0x3ffb1ca0
        A10 : 0x3ffcc4b0 A11 : 0x00000000 A12 : 0x3ffb8234 A13 : 0x00000000
        A14 : 0x00000000 A15 : 0x00000001 SAR : 0x00000006 EXCCAUSE: 0x0000001c
        EXCVADDR: 0x00000000 LBEG : 0x400014fd LEND : 0x4000150d LCOUNT : 0xffffffeb

        ELF file SHA256: 0000000000000000

        Backtrace: 0x400d53d3:0x3ffb1e40 0x400d555e:0x3ffb1e70 0x400d534e:0x3ffb1e90 0x400d5369:0x3ffb1ec0 0x400d0de8:0x3ffb1ee0 0x400d14bc:0x3ffb1f00 0x400d26ac:0x3ffb1f20 0x400d27c3:0x3ffb1f80 0x400d716a:0x3ffb1fb0 0x4008a612:0x3ffb1fd0

        Rebooting...
        ets Jun 8 2016 00:22:57

        rst:0xc (SW_CPU_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
        configsip: 0, SPIWP:0xee
        clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
        mode:DIO, clock div:1
        load:0x3fff0018,len:4
        load:0x3fff001c,len:1216
        ho 0 tail 12 room 4
        load:0x40078000,len:10944
        load:0x40080400,len:6388
        entry 0x400806b4

        Weather station - Deep sleep version.
        Version 1.20

  • Edit
    admin

    One more item. Can you ensure #SerialMonitor is enabled in secrets.h? There is more verbose output that might be useful in debugging.

    • Edit
      Jim Miller

      Not sure if this is it but I added..
      #define SerialMonitor

      to the bottom of secrets (wrong spot?)
      after I commented the last line which is ...
      //#define MQTT

  • Edit
    admin

    OK, now for some shotgun troubleshooting, LOL. It seems weird to me that you do not make it to the UV sensor readout function. Do you have a UV sensor? If not, try commenting out the function call in readSensors()

    • Edit
      Jim Miller

      Hello , I do have the UV sensor and when I took out the readUV(environment) line it seems to be working without rebooting ...OMG awesome , I'll see if maybe something wrong with sensor (maybe reversed wires UGH) I want get it all working before I explore the Home assistant MQTT stuff. I will hook it all back up and update you further. Thanks a bunch you truly are gifted.

  • Edit
    admin

    Glad it worked (or narrowed down the issue). You can uncomment the //const char* mqttServer = "test.mosquitto.org"; line and publish to a broker without having your own setup. It's great for debug efforts and getting familiar with MQTT.

    • Edit
      admin

      One note: I did have one sensor board that was rotated 180 deg, if you built it with the top of the board facing up. It was not laid out like the others.