Now that I got past the signup, I can move this from [Twitter to here
Setup
I’m trying to build a weather station with the Weather Station Carrier Board and the ESP32 MicroMod controller. The end goal is to have this station set up to send data via MQTT. I’m writing all my code using PlatformIO ( it lets me write and build from Emacs! ), which can be found [here. I’ve added support for the ESP32 MicroMod to PlatformIO with two different PRs – [one for PlatformIO here, and [one for the espressif/arduino-esp32 repo here. Everything compiles and runs on the board just fine – I can get readings from almost all the sensors and can send info over Wifi.
Except for the rain sensor.
Reset By Rain
I finally got around to testing the rain sensor this week, and ran into an interesting problem: every time the rain switch triggers, it resets the board. Same as if I had pressed the reset button. Kind of an issue here in Vancouver, BC ( well, usually, we’ve had an unusually dry summer this year ).
Is this an issue with the Weather Carrier Board + ESP32 MicroMod combo? Just the carrier board? Just the ESP32 MicroMod?
What I’ve Tried
When I initially started coding this I had set up PlatformIO to use the ESP32 Thing, which worked fine for compiling and uploading and reading the sensors. The pin definitions didn’t work but that was easy to work around. When I ran into the “rain reset” issue, that’s when I dived into trying to get PlatformIO set up to use the board config from [the SparkFun ESP32 v1.0.1 tarball.
However, I got that working ( hence the two PRs to add proper support for the ESP32 MicroMod to those two repos ), and even with PlatformIO using the (as far as I can tell) proper settings the board still resets when the rain switch is triggered.
I don’t have any other MicroMod controllers I could use to check, so that’s out for now. A visual inspection of both the carrier board and the ESP32 board don’t show any obvious defects or solder mistakes – but I’m not exactly an expert on either of these boards so I may have missed something.
Any suggestions on what I should do? Anything I can do to test the board, or figure out why the rain switch triggers the reset?](https://github.com/sparkfun/Arduino_Boards/raw/main/IDE_Board_Manager/sparkfun-esp32-1.0.1.tar.bz2)](Add SparkFun ESP32 MicroMod microcontroller by seanhagen · Pull Request #5556 · espressif/arduino-esp32 · GitHub)](Add SparkFun ESP32 MicroMod by seanhagen · Pull Request #605 · platformio/platform-espressif32 · GitHub)](https://github.com/seanhagen/weather_station)](x.com)