Software Items

Software Repository Location

GitHub - jhughes1010/weather

NOTE: Rain tip gauge not functioning properly until ESP32 reboot issue is solved. This has nothing to do with software. The tip count gets destroyed during reboot.

Software Notes

Deep sleep is working

  1. RTC variables are used to store information that I do not want to lose during deep sleep

    1. rain tip gauge count for hour

    2. rain tip gauge count for last 24 hours (23 h actually)

Calibration of ADC measurement of battery

Measure battery while observing batteryADC

Calibration factor = voltageBattery/batteryADC

Setting parameters in secrets.h

 

Software Enhancements

TODO:

Create desired wind speed calculation method. Many ways to approach this.
True 24h rainfall accumulation
ULP support - New PCB layout needed for this
Easier selection of IOT destination
MQTT
Blynk
Thingspeak
Simple webserver front end for diagnostics
Power monitor: When battery <15% send MQTT message and sleep timer is multiplied by 4
AP mode to set SSID and password without hardcoding parameters in program

Removed - Legend for blinking LED diagnostics

I created a blinking LED indicator for the purpose of inducing what is going on when disconnected from serial UART pins.

  • 5 LED blinks initial boot

  • 3 LED blinks indicates passing WiFi connection

  • EXIT 1 blink (WAKE reason code). Not waking, but rather a RESET event. WAKE REASON returns 0, but added 1 to see something

  • EXIT 2 blink - tip gauge EXT0 WAKE

  • EXIT 4 blink - timer based WAKE

Â