Im trying to calibrate a rain gauge, but i’m a little confused.
I’ve measured that the rain gauge takes 15mL of water to tip.
On the rain gauge, is written M0.2.
Im assuming this is 0.2mm?
So, would be
- platform: pulse_counter
name: 'Rain'
# pin ADC1_1
pin:
number: 32
mode: INPUT_PULLUP
internal_filter: 13us
update_interval: 1s
count_mode:
rising_edge: DISABLE
falling_edge: INCREMENT
unit_of_measurement: 'pulses'
filters:
- multiply: 0.2000
Am I at least on the right track?
Thanks
Im a little confused how to test this.
If I pour 150mLs of rain in,
How much rainfall would it be in mm.
Im just wondering if I got the multiply value correct.
filters:
- multiply: 0.2000
Assuming that this guys has a rain gauge tip of 0.2800
filters:
# Each 0.011" (0.2794mm) of rain causes one momentary contact closure
- multiply: 0.2794
accuracy_decimals: 4
# ESPHome Weather Station
Read this in other language: [French](README.fr.md)
![Main photo of the weather station](images/station.jpg)
## Introduction
The electronic part of this weather station is based on the model described in an article in Elektor magazine published in May 2020 entitled [Remake Elektor weather station](https://www.elektormagazine.com/labs/remake-elektor-weather-station) (an evolution of ESP32 Weather Station described in an article in the same magazine in January 2019).
The article details the creation of a weather station based on a set of sensors referenced WH-SP-WS02 ([Datasheet](docs/Weather_Sensor_Assembly_Updated.pdf)) whose original electronics are removed to be replaced by a sensor daughter board relaying the information to a motherboard built around an ESP32 (ESP32 Pico Kit).
An OpenSource firmware [GitHub - ElektorLabs/191148-RemakeWeatherStation: RemakeWeatherStation](https://github.com/ElektorLabs/191148-RemakeWeatherStation) is available to run the whole system. Unfortunately, I did not find my happiness with it, it is not yet complete enough and suffers from some shortcomings that make it very difficult to use it as is.
I therefore decided to use ESPHome as a replacement for the original program in order to simplify the development of functionality but above all to greatly extend its capabilities.
The board detailed in Elektor's article is finally limited to a voltage converter and a 5V/3V voltage adaptation for the ESP32.
It is therefore quite simple to recreate this weather station independently of Elektor's PCB. For the connections, please use the data included in the YAML file.
This file has been truncated. show original
I would have thought it would be ok.
Lets pour 150ml in and find out
1 Like
150ml of water returns 2.5mm.
Might be a good idea to keep your original sensor as a straight pulse counter (remove filter).
Then create a “copy sensor” and add your filter to that.
Then you can check the number of tips recorded are as per actual.
But yeah, seems way off…
Also looks like you need to add total to get a cumulative count I think?
I have a daily rain total.
1 Like
JulianDH
(Julian Hall)
August 30, 2023, 10:45am
13
I went with electronic Hydreon RG15, BUT If you want a conversation about rain gauges this is the thread to take a look at… everything you need to know including how to set up the templates… I am using Utility Meter platform to count the rain …but some people have used custom scripts to read a rolling 7 days…
hello i tried al lot, but won´t get it…
both binary_sensor.rainfall_trend gradient and sensor.regensensor_flips_zero_reset are 0 at this moment (as Development/States show me)
TemplateEditor shows me the correct result = 0 for the following expression…
{% set rain_hour = ((state_attr('binary_sensor.rainfall_trend', 'gradient') | float(0)) * 3600) | round(1, 'floor') %}
{% if states('sensor.regensensor_flips_zero_reset')|int() > 0 %}
{{ max(rain_hour, 0) }}
…
2 Likes
If I set my multiplier to 1, I get 60 pules per tip.
Also, any idea why this does pulse count value does not increase, it resets after the update_interval times out.
- platform: pulse_counter
name: 'Rainfall'
id: rain_gauge
# pin ADC1_1
pin:
number: 32
mode: INPUT_PULLUP
internal_filter: 13us
update_interval: 60s
count_mode:
rising_edge: DISABLE
falling_edge: INCREMENT
unit_of_measurement: "ml"
icon: "mdi:water"
filters:
- multiply: 15.0000