Hello all,
as promised I revamped the schematic from that other guy, changing some things and improving stability.
I've made a prototype of a rain sensor where the sensor itself is AC driven.
The circuit gives an analog value back that very roughly says how much water is on the sensor surface.
The sensor plate is heated so it can melt snow and frost away and dry of quick.
Heating can be switched automatically if the sensor gets rain, sensivity is adjustable.
It can be switched on via a rule or from homecontroller too, for example if temperature goes below zero.
Heating on/off is reported to the home controller.
Additionally there are I²C connectors for a BMP180 and a luminosity sensor (BH1750 or TLS2561).
As it is I²C it can be used for other devices too.
Measuring temperature in the case is not possible as the voltage regulators heat up the case inside.
This influences humidity metering, so this won't work inside the case too.
To get this values if needed there are connectors for external DS18B20 and / or DHT1x.
These connectors can be used for other GPIO purposes too.
The sensor PCB itself is a bought one. It's a gold plated sensor with the leads for heating
at the backside. As it comes around 12€ it's cheaper to buy then DIY.
It showed the sensor is sensitive enough to work even through a 4mm thick plastic case,
just it isn't very sensitive then... I'll try that with a very thin glass plate if i can get one.
Now i'll put it into a case and place it outside. We'll see.
.

- Rainsensor-1.jpg (726.16 KiB) Viewed 25908 times
PCB and sensor - front side
.

- Rainsensor-2.jpg (374.93 KiB) Viewed 25908 times
PCB and Sensor - back side
.

- PCB_Annotated.jpg (323.67 KiB) Viewed 25908 times
More descriptive front view.
Of course the luminosity sensor should be placed at the case front side, not deep inside
the case - it's just plugged in here to show it.
.
The ESP is an ESP-07s (4 MB) allowing an external antenna or a PBC antenna inside the case,
giving better connectivity on long distance.
It should be mentioned: This device is not suitable for beginners in electronics.
It needs more knowledge (and measuring instruments) then just knowing what a soldering iron is
Regards
Shardan